コード例 #1
0
from __future__ import unicode_literals

from mayan.apps.dependencies.classes import JavaScriptDependency

JavaScriptDependency(module=__name__, name='jstree', version_string='=3.3.3')
コード例 #2
0
from mayan.apps.dependencies.classes import (JavaScriptDependency,
                                             PythonDependency)

JavaScriptDependency(module=__name__,
                     name='chart.js',
                     static_folder='statistics',
                     version_string='=2.7.3')

PythonDependency(copyright_text='''
        Copyright (c) 2010, Matt Croydon, Mikhail Korobov
        All rights reserved.

        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        * Redistributions of source code must retain the above copyright
        notice, this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright
        notice, this list of conditions and the following disclaimer in the
        documentation and/or other materials provided with the distribution.
        * Neither the name of the tastypie nor the
        names of its contributors may be used to endorse or promote products
        derived from this software without specific prior written permission.

        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
        ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL MATT CROYDON BE LIABLE FOR ANY
        DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
        LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
        ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
コード例 #3
0
ファイル: dependencies.py プロジェクト: addaxagent/agent96
from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import (BinaryDependency,
                                             JavaScriptDependency,
                                             PythonDependency)

from .settings import setting_scanimage_path

BinaryDependency(
    label='SANE scanimage',
    help_text=_(
        'Utility provided by the SANE package. Used to control the scanner '
        'and obtained the scanned document image.'),
    module=__name__,
    name='scanimage',
    path=setting_scanimage_path.value)
JavaScriptDependency(module=__name__, name='dropzone', version_string='=5.4.0')
PythonDependency(module=__name__, name='flanker', version_string='==0.9.11')
コード例 #4
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import (GoogleFontDependency,
                                             JavaScriptDependency)

GoogleFontDependency(
    label=_('Lato font'),
    module=__name__,
    name='lato',
    url='https://fonts.googleapis.com/css?family=Lato:400,700,400italic')
JavaScriptDependency(label=_('Bootstrap'),
                     module=__name__,
                     name='bootstrap',
                     version_string='=3.4.1')
JavaScriptDependency(
    label=_('Bootswatch'),
    module=__name__,
    name='bootswatch',
    replace_list=[{
        'filename_pattern':
        'bootstrap.*.css',
        'content_patterns': [{
            'search':
            '"https://fonts.googleapis.com/css?family=Lato:400,700,400italic"',
            'replace':
            '../../../google_fonts/lato/import.css',
        }]
    }],
    version_string='=3.4.1')
コード例 #5
0
from django.utils.translation import ugettext_lazy as _

from mayan.apps.dependencies.classes import JavaScriptDependency

JavaScriptDependency(
    label=_('JavaScript image cropper'), module=__name__, name='cropperjs',
    version_string='=1.4.1'
)
JavaScriptDependency(
    module=__name__, name='jquery-cropper', version_string='=1.0.0'
)