Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
cc9a524f
Commit
cc9a524f
authored
May 09, 2017
by
LE GAC Renaud
Browse files
Campaign to replace single by double quote.
parent
08ded6da
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
488 additions
and
488 deletions
+488
-488
controllers/reports.py
controllers/reports.py
+8
-8
modules/plugin_dbui/dbsvc.py
modules/plugin_dbui/dbsvc.py
+1
-1
static/plugin_dbui/locale/dbui-lang-fr.js
static/plugin_dbui/locale/dbui-lang-fr.js
+110
-110
static/plugin_dbui/src/Dbui.js
static/plugin_dbui/src/Dbui.js
+33
-33
static/plugin_dbui/src/button/Download.js
static/plugin_dbui/src/button/Download.js
+8
-8
static/plugin_dbui/src/container/Viewport.js
static/plugin_dbui/src/container/Viewport.js
+49
-49
static/plugin_dbui/src/container/plugin/Login.js
static/plugin_dbui/src/container/plugin/Login.js
+8
-8
static/plugin_dbui/src/data/DirectStore.js
static/plugin_dbui/src/data/DirectStore.js
+7
-7
static/plugin_dbui/src/data/proxy/Direct.js
static/plugin_dbui/src/data/proxy/Direct.js
+14
-14
static/plugin_dbui/src/form/Panel.js
static/plugin_dbui/src/form/Panel.js
+69
-69
static/plugin_dbui/src/form/field/AceEditor.js
static/plugin_dbui/src/form/field/AceEditor.js
+13
-13
static/plugin_dbui/src/form/field/ComboBox.js
static/plugin_dbui/src/form/field/ComboBox.js
+9
-9
static/plugin_dbui/src/form/field/ComboBoxMaster.js
static/plugin_dbui/src/form/field/ComboBoxMaster.js
+18
-18
static/plugin_dbui/src/form/field/ComboBoxSlave.js
static/plugin_dbui/src/form/field/ComboBoxSlave.js
+19
-19
static/plugin_dbui/src/form/field/ComboBoxUserReset.js
static/plugin_dbui/src/form/field/ComboBoxUserReset.js
+13
-13
static/plugin_dbui/src/form/field/Dict.js
static/plugin_dbui/src/form/field/Dict.js
+1
-1
static/plugin_dbui/src/form/field/List.js
static/plugin_dbui/src/form/field/List.js
+69
-69
static/plugin_dbui/src/form/field/Table.js
static/plugin_dbui/src/form/field/Table.js
+24
-24
static/plugin_dbui/src/form/field/TextPicker.js
static/plugin_dbui/src/form/field/TextPicker.js
+5
-5
static/plugin_dbui/src/form/plugin/Mapper.js
static/plugin_dbui/src/form/plugin/Mapper.js
+10
-10
No files found.
controllers/reports.py
View file @
cc9a524f
...
...
@@ -8,7 +8,7 @@ def index():
"""Main Controller handling report.
"""
return
'
Report section
'
return
"
Report section
"
def
report_1
():
...
...
@@ -38,7 +38,7 @@ def report_3():
"""
selector
=
Selector
(
virtdb
.
harvester_selector
)
response
.
view
=
'
reports/report_2.html
'
response
.
view
=
"
reports/report_2.html
"
return
dict
(
test
=
selector
.
as_dict
())
...
...
@@ -53,13 +53,13 @@ def report_4():
cfg
=
Store
()
cfg
.
fields
=
[
dict
(
name
=
'
controller
'
,
type
=
'
string
'
),
dict
(
name
=
'
host
'
,
type
=
'
string
'
),
dict
(
name
=
'
collections
'
,
type
=
'
string
'
),
dict
(
name
=
'
ratio
'
,
type
=
'
number
'
)]
cfg
.
fields
=
[
dict
(
name
=
"
controller
"
,
type
=
"
string
"
),
dict
(
name
=
"
host
"
,
type
=
"
string
"
),
dict
(
name
=
"
collections
"
,
type
=
"
string
"
),
dict
(
name
=
"
ratio
"
,
type
=
"
number
"
)]
if
selector
.
grouping
or
selector
.
grouping_summary
:
cfg
.
groupField
=
'
controller
'
cfg
.
groupField
=
"
controller
"
cfg
.
data
=
[]
...
...
@@ -70,7 +70,7 @@ def report_4():
collections
=
row
.
collections
,
ratio
=
row
.
ratio
)
cfg
[
'
data
'
].
append
(
di
)
cfg
[
"
data
"
].
append
(
di
)
return
dict
(
msg
=
"Hello world"
,
cfg_store
=
json
.
dumps
(
cfg
),
...
...
modules/plugin_dbui/dbsvc.py
View file @
cc9a524f
...
...
@@ -135,7 +135,7 @@ class DbSvc(BaseSvc):
"[table1.field1] == [table2.field2]"
"[table1, field1] == [table2, field2]"
"[table1.field1] > n"
"[table1.field1] like
"
m%'"
"[table1.field1] like
'
m%'"
"[table1.field1] contains 'm%'"
"[table1.field1] startswith 'm%'"
"[table1.field1].lower() like 'm%'"
...
...
static/plugin_dbui/locale/dbui-lang-fr.js
View file @
cc9a524f
...
...
@@ -3,176 +3,176 @@
*
*/
Ext
.
define
(
'
Dbui.local.fr.container.plugin.Login
'
,
{
override
:
'
Dbui.container.plugin.Login
'
,
textChangePwd
:
'
Changer votre mot de passe
'
,
Ext
.
define
(
"
Dbui.local.fr.container.plugin.Login
"
,
{
override
:
"
Dbui.container.plugin.Login
"
,
textChangePwd
:
"
Changer votre mot de passe
"
,
textLogin
:
"
S'identifier
"
,
textLogout
:
"
Quitter l'application
"
});
Ext
.
define
(
'
Dbui.local.fr.form.field.ComboBox
'
,
{
override
:
'
Dbui.form.field.ComboBox
'
,
textSelect
:
'
Sélectioner un(e)
'
Ext
.
define
(
"
Dbui.local.fr.form.field.ComboBox
"
,
{
override
:
"
Dbui.form.field.ComboBox
"
,
textSelect
:
"
Sélectioner un(e)
"
});
Ext
.
define
(
'
Dbui.local.fr.form.field.ComboBoxMaster
'
,
{
override
:
'
Dbui.form.field.ComboBoxMaster
'
,
textSelect
:
'
Sélectioner un(e)
'
Ext
.
define
(
"
Dbui.local.fr.form.field.ComboBoxMaster
"
,
{
override
:
"
Dbui.form.field.ComboBoxMaster
"
,
textSelect
:
"
Sélectioner un(e)
"
});
Ext
.
define
(
'
Dbui.local.fr.form.field.ComboBoxSlave
'
,
{
override
:
'
Dbui.form.field.ComboBoxSlave
'
,
textSelect
:
'
Sélectioner un(e)
'
Ext
.
define
(
"
Dbui.local.fr.form.field.ComboBoxSlave
"
,
{
override
:
"
Dbui.form.field.ComboBoxSlave
"
,
textSelect
:
"
Sélectioner un(e)
"
});
Ext
.
define
(
'
Dbui.local.fr.form.field.Dict
'
,
{
override
:
'
Dbui.form.field.Dict
'
,
textAddMenu
:
'
Ajouter
'
,
textAddTitle
:
'
Entrez le nom de la clé
'
,
textDestroyMenu
:
'
Détruire
'
,
textDestroyTitle
:
'
Voulez-vous vraiment détruire la clé
'
,
textErrorKey
:
'
Sélectioner une clé !
'
,
textErrorMsg
:
'
Cette clé existe déjà !
'
,
textErrorTitle
:
'
Erreur ...
'
,
textUpdateMenu
:
'
Modifier
'
,
textUpdateTitle
:
'
Modifier
la clé
'
Ext
.
define
(
"
Dbui.local.fr.form.field.Dict
"
,
{
override
:
"
Dbui.form.field.Dict
"
,
textAddMenu
:
"
Ajouter
"
,
textAddTitle
:
"
Entrez le nom de la clé
"
,
textDestroyMenu
:
"
Détruire
"
,
textDestroyTitle
:
"
Voulez-vous vraiment détruire la clé
"
,
textErrorKey
:
"
Sélectioner une clé !
"
,
textErrorMsg
:
"
Cette clé existe déjà !
"
,
textErrorTitle
:
"
Erreur ...
"
,
textUpdateMenu
:
"
Modifier
"
,
textUpdateTitle
:
"
Modifier la clé
"
});
Ext
.
define
(
'
Dbui.local.fr.form.field.List
'
,
{
override
:
'
Dbui.form.field.List
'
,
textAdd
:
'
Ajouter un élément
'
,
textDestroy
:
'
Détruire cet élément
'
,
textDestroytitle
:
'
Détruire ...
'
,
textDestroyMsg
:
'
Voulez-vous vraiment détruire cet élément
'
,
textGoDown
:
'
Déplacer vers le bas
'
,
textGoUp
:
'
Déplacer vers le haut
'
Ext
.
define
(
"
Dbui.local.fr.form.field.List
"
,
{
override
:
"
Dbui.form.field.List
"
,
textAdd
:
"
Ajouter un élément
"
,
textDestroy
:
"
Détruire cet élément
"
,
textDestroytitle
:
"
Détruire ...
"
,
textDestroyMsg
:
"
Voulez-vous vraiment détruire cet élément
"
,
textGoDown
:
"
Déplacer vers le bas
"
,
textGoUp
:
"
Déplacer vers le haut
"
});
Ext
.
define
(
'
Dbui.local.fr.form.Panel
'
,
{
override
:
'
Dbui.form.Panel
'
,
textCreate
:
'
Créer
'
,
textDestroy
:
'
Détruire
'
,
textDuplicate
:
'
Dupliquer
'
,
textReset
:
'
Annuler
'
,
textUpdate
:
'
Actualiser
'
,
Ext
.
define
(
"
Dbui.local.fr.form.Panel
"
,
{
override
:
"
Dbui.form.Panel
"
,
textCreate
:
"
Créer
"
,
textDestroy
:
"
Détruire
"
,
textDuplicate
:
"
Dupliquer
"
,
textReset
:
"
Annuler
"
,
textUpdate
:
"
Actualiser
"
,
textCreateErrorAction
:
"
L'enregistrement a été détruit.
"
,
textCreateFailed
:
'
La création a échoué...
'
,
textCreateFailed
:
"
La création a échoué...
"
,
textDbAction
:
"
La base de donnée n'a pas été modifiée.
"
,
textDeleteErrorAction
:
"
L'enregistrement a été gardé.
"
,
textDeleteFailed
:
'
La destruction a échouée...
'
,
textError
:
'
Erreur...
'
,
textServerError
:
'
Erreur coté serveur.
'
,
textDeleteFailed
:
"
La destruction a échouée...
"
,
textError
:
"
Erreur...
"
,
textServerError
:
"
Erreur coté serveur.
"
,
textStoreError
:
"
la zone de skoctage interne n'est pas défini !!!
"
,
textUpdateErrorAction
:
"
Les modifications ont été annulées.
"
,
textUpdateFailed
:
'
La mise à jour a échoué...
'
textUpdateFailed
:
"
La mise à jour a échoué...
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.button.ExpertMenu
'
,
{
override
:
'
Dbui.grid.button.ExpertMenu
'
,
textExport
:
'
Exporter dans un fichier CSV
'
,
textMathJax
:
'
Interpréter les équations
'
,
textReset
:
'
Reset
'
Ext
.
define
(
"
Dbui.local.fr.grid.button.ExpertMenu
"
,
{
override
:
"
Dbui.grid.button.ExpertMenu
"
,
textExport
:
"
Exporter dans un fichier CSV
"
,
textMathJax
:
"
Interpréter les équations
"
,
textReset
:
"
Reset
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.Export
'
,
{
override
:
'
Dbui.grid.plugin.Export
'
,
textToCSV
:
'
Exporter en CSV...
'
,
textToLaTeX
:
'
Exporter en LaTeX...
'
,
textToPDF
:
'
Exporter en PDF...
'
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.Export
"
,
{
override
:
"
Dbui.grid.plugin.Export
"
,
textToCSV
:
"
Exporter en CSV...
"
,
textToLaTeX
:
"
Exporter en LaTeX...
"
,
textToPDF
:
"
Exporter en PDF...
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.Paging
'
,
{
override
:
'
Dbui.grid.plugin.Paging
'
,
textPlus
:
'
Plus
'
,
textSlider
:
'
Entrées par page
'
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.Paging
"
,
{
override
:
"
Dbui.grid.plugin.Paging
"
,
textPlus
:
"
Plus
"
,
textSlider
:
"
Entrées par page
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.Toolbar
'
,
{
override
:
'
Dbui.grid.plugin.Toolbar
'
,
textEntries
:
'
Entrées
'
,
textPlus
:
'
Plus
'
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.Toolbar
"
,
{
override
:
"
Dbui.grid.plugin.Toolbar
"
,
textEntries
:
"
Entrées
"
,
textPlus
:
"
Plus
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.RowEditorAddWizard
'
,
{
override
:
'
Dbui.grid.plugin.RowEditorAddWizard
'
,
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.RowEditorAddWizard
"
,
{
override
:
"
Dbui.grid.plugin.RowEditorAddWizard
"
,
textExpert
:
'
mode expert
'
,
textSimplify
:
'
mode simplifié
'
,
textTitle
:
'
Assistant...
'
textExpert
:
"
mode expert
"
,
textSimplify
:
"
mode simplifié
"
,
textTitle
:
"
Assistant...
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.RowEditorBase
'
,
{
override
:
'
Dbui.grid.plugin.RowEditorBase
'
,
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.RowEditorBase
"
,
{
override
:
"
Dbui.grid.plugin.RowEditorBase
"
,
addTitle
:
"
Créer un enregistrement...
"
,
deleteTitle
:
"
Détruire un enregistrement...
"
,
duplicateTitle
:
"
Dupliquer un enregistrement..
"
,
editTitle
:
"
Actualiser un enregistrement...
"
,
viewTitle
:
"
Voir un enregistrement...
"
,
textMsg
:
'
Sélectioner un enregistrement !
'
textMsg
:
"
Sélectioner un enregistrement !
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.RowEditorConfirmDelete
'
,
{
override
:
'
Dbui.grid.plugin.RowEditorConfirmDelete
'
,
confirmMsg
:
'
Voulez-vous vraiment détruire cet élément ?
'
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.RowEditorConfirmDelete
"
,
{
override
:
"
Dbui.grid.plugin.RowEditorConfirmDelete
"
,
confirmMsg
:
"
Voulez-vous vraiment détruire cet élément ?
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.plugin.RowEditorContextMenu
'
,
{
override
:
'
Dbui.grid.plugin.RowEditorContextMenu
'
,
textAdd
:
'
Ajouter
'
,
textCreate
:
'
Créer
'
,
textDestroy
:
'
Détruire
'
,
textDuplicate
:
'
Dupliquer
'
,
textUpdate
:
'
Actualiser
'
,
textView
:
'
Voir
'
Ext
.
define
(
"
Dbui.local.fr.grid.plugin.RowEditorContextMenu
"
,
{
override
:
"
Dbui.grid.plugin.RowEditorContextMenu
"
,
textAdd
:
"
Ajouter
"
,
textCreate
:
"
Créer
"
,
textDestroy
:
"
Détruire
"
,
textDuplicate
:
"
Dupliquer
"
,
textUpdate
:
"
Actualiser
"
,
textView
:
"
Voir
"
});
Ext
.
define
(
'
Dbui.local.fr.grid.property.Preferences
'
,
{
override
:
'
Dbui.grid.property.Preferences
'
,
textDefinition
:
'
Définition
'
,
textReset
:
'
Annuler
'
,
textUpdate
:
'
Actualiser
'
Ext
.
define
(
"
Dbui.local.fr.grid.property.Preferences
"
,
{
override
:
"
Dbui.grid.property.Preferences
"
,
textDefinition
:
"
Définition
"
,
textReset
:
"
Annuler
"
,
textUpdate
:
"
Actualiser
"
});
Ext
.
define
(
'
Dbui.local.fr.panel.BaseWithSelector
'
,
{
override
:
'
Dbui.panel.BaseWithSelector
'
,
textGo
:
'
Go
'
,
textReset
:
'
Annuler
'
Ext
.
define
(
"
Dbui.local.fr.panel.BaseWithSelector
"
,
{
override
:
"
Dbui.panel.BaseWithSelector
"
,
textGo
:
"
Go
"
,
textReset
:
"
Annuler
"
});
Ext
.
define
(
'
Dbui.local.fr.panel.GridWithFilter
'
,
{
override
:
'
Dbui.panel.GridWithFilter
'
,
textLoad
:
'
chargement en cours...
'
Ext
.
define
(
"
Dbui.local.fr.panel.GridWithFilter
"
,
{
override
:
"
Dbui.panel.GridWithFilter
"
,
textLoad
:
"
chargement en cours...
"
});
Ext
.
define
(
'
Dbui.local.fr.panel.plugin.LoaderException
'
,
{
override
:
'
Dbui.panel.plugin.LoaderException
'
,
textError
:
'
Erreur ...
'
Ext
.
define
(
"
Dbui.local.fr.panel.plugin.LoaderException
"
,
{
override
:
"
Dbui.panel.plugin.LoaderException
"
,
textError
:
"
Erreur ...
"
});
Ext
.
define
(
'
Dbui.local.fr.panel.WithUrlSelector
'
,
{
override
:
'
Dbui.panel.WithUrlSelector
'
,
Ext
.
define
(
"
Dbui.local.fr.panel.WithUrlSelector
"
,
{
override
:
"
Dbui.panel.WithUrlSelector
"
,
textChrome
:
"
La taille du fichier est trôp grande pour Chrome.<br> Une solution est d'utilisée FireFox!
"
,
textLoad
:
'
Chargement en cours...
'
,
textProgressBar
:
'
Fichier en préparation. Soyez patient ...
'
,
textWarning
:
'
Attention
'
textLoad
:
"
Chargement en cours...
"
,
textProgressBar
:
"
Fichier en préparation. Soyez patient ...
"
,
textWarning
:
"
Attention
"
});
Ext
.
define
(
'
Dbui.local.fr.plugin.MathJax
'
,
{
override
:
'
Dbui.plugin.MathJax
'
,
textMask
:
'
Interprétation des équations ...
'
Ext
.
define
(
"
Dbui.local.fr.plugin.MathJax
"
,
{
override
:
"
Dbui.plugin.MathJax
"
,
textMask
:
"
Interprétation des équations ...
"
});
Ext
.
define
(
'
Dbui.local.fr.wizard.Wizard
'
,
{
override
:
'
Dbui.wizard.Wizard
'
,
Ext
.
define
(
"
Dbui.local.fr.wizard.Wizard
"
,
{
override
:
"
Dbui.wizard.Wizard
"
,
textAttention
:
"
Attention
"
,
textClose
:
[
"
<p>L'assistant va être fermé.<br>
"
,
"
Toutes les données vont être perdues.</p><br>
"
,
"
Voulez-vous continuer ?
"
],
textError
:
'
Erreur
'
,
textFinish
:
'
Fin
'
,
textLoading
:
'
Traitement des données...
'
,
textNext
:
'
Suivant
'
,
textPrevious
:
'
Précédent
'
textError
:
"
Erreur
"
,
textFinish
:
"
Fin
"
,
textLoading
:
"
Traitement des données...
"
,
textNext
:
"
Suivant
"
,
textPrevious
:
"
Précédent
"
});
static/plugin_dbui/src/Dbui.js
View file @
cc9a524f
/**
* Core utilities and functions.
*/
Ext
.
define
(
'
Dbui
'
,
{
Ext
.
define
(
"
Dbui
"
,
{
singleton
:
true
,
uses
:
[
'
Ext.data.ArrayStore
'
,
'
Ext.data.DirectStore
'
,
'
Ext.data.JsonPStore
'
,
'
Ext.data.JsonStore
'
,
'
Dbui.data.DirectStore
'
,
'
Ext.data.XmlStore
'
],
uses
:
[
"
Ext.data.ArrayStore
"
,
"
Ext.data.DirectStore
"
,
"
Ext.data.JsonPStore
"
,
"
Ext.data.JsonStore
"
,
"
Dbui.data.DirectStore
"
,
"
Ext.data.XmlStore
"
],
/**
* The version of the plugin
* @property {String}
*/
version
:
'
0.9.8.1
'
,
version
:
"
0.9.8.1
"
,
/**
* The name of the application
...
...
@@ -72,14 +72,14 @@ Ext.define('Dbui', {
*/
extToURI
:
{
csv
:
'
data:text/csv;charset=utf-8
'
,
html
:
'
data:text/html;charset=utf-8
'
,
ods
:
'
data:application/vnd.oasis.opendocument.spreadsheet;base64
'
,
odt
:
'
data:application/vnd.oasis.opendocument.text;base64
'
,
pdf
:
'
data:application/pdf;base64
'
,
png
:
'
data:image/png;base64
'
,
svg
:
'
data:image/svg+xml;charset=utf-8
'
,
tex
:
'
data:application/x-latex;charset=utf-8
'
csv
:
"
data:text/csv;charset=utf-8
"
,
html
:
"
data:text/html;charset=utf-8
"
,
ods
:
"
data:application/vnd.oasis.opendocument.spreadsheet;base64
"
,
odt
:
"
data:application/vnd.oasis.opendocument.text;base64
"
,
pdf
:
"
data:application/pdf;base64
"
,
png
:
"
data:image/png;base64
"
,
svg
:
"
data:image/svg+xml;charset=utf-8
"
,
tex
:
"
data:application/x-latex;charset=utf-8
"
},
/**
...
...
@@ -291,7 +291,7 @@ Ext.define('Dbui', {
fields
;
// list of field which inherite from Ext.form.field.Base
fields
=
cmp
.
query
(
'
field
'
);
fields
=
cmp
.
query
(
"
field
"
);
// list of field which do not inherited form Ext.form.field.Base
me
.
extraTypesForField
.
forEach
(
function
(
type
)
{
...
...
@@ -344,28 +344,28 @@ Ext.define('Dbui', {
// instantiate the store
switch
(
cfg
.
xtype
)
{
case
'
array
'
:
className
=
'
Ext.data.ArrayStore
'
;
case
"
array
"
:
className
=
"
Ext.data.ArrayStore
"
;
break
;
case
'
direct
'
:
className
=
'
Ext.data.DirectStore
'
;
case
"
direct
"
:
className
=
"
Ext.data.DirectStore
"
;
break
;
case
'
jsonpstore
'
:
className
=
'
Ext.data.JsonPStore
'
;
case
"
jsonpstore
"
:
className
=
"
Ext.data.JsonPStore
"
;
break
;
case
'
json
'
:
className
=
'
Ext.data.JsonStore
'
;
case
"
json
"
:
className
=
"
Ext.data.JsonStore
"
;
break
;
case
'
xdirectstore
'
:
className
=
'
Dbui.data.DirectStore
'
;
case
"
xdirectstore
"
:
className
=
"
Dbui.data.DirectStore
"
;
break
;
case
'
xml
'
:
className
=
'
Ext.data.XmlStore
'
;
case
"
xml
"
:
className
=
"
Ext.data.XmlStore
"
;
break
;
default
:
...
...
@@ -401,7 +401,7 @@ Ext.define('Dbui', {
var
i
,
plugin
;
if
(
!
component
.
hasOwnProperty
(
'
plugins
'
))
{
if
(
!
component
.
hasOwnProperty
(
"
plugins
"
))
{
return
false
;
}
...
...
@@ -417,7 +417,7 @@ Ext.define('Dbui', {
return
true
;
}
if
((
typeof
plugin
===
'
object
'
)
&&
(
plugin
.
ptype
===
ptype
))
{
if
((
typeof
plugin
===
"
object
"
)
&&
(
plugin
.
ptype
===
ptype
))
{
return
true
;
}
}
...
...
@@ -550,8 +550,8 @@ Ext.define('Dbui', {
disableCaching
:
false
,
enabled
:
true
,
paths
:
{
'
Dbui
'
:
'
../static/plugin_dbui/src
'
,
'
Ext
'
:
'
../static/plugin_extjs/src
'
"
Dbui
"
:
"
../static/plugin_dbui/src
"
,
"
Ext
"
:
"
../static/plugin_extjs/src
"
}
});
}
...
...
static/plugin_dbui/src/button/Download.js
View file @
cc9a524f
...
...
@@ -2,10 +2,10 @@
* A button to download a file from the server
*
*/
Ext
.
define
(
'
Dbui.button.Download
'
,
{
Ext
.
define
(
"
Dbui.button.Download
"
,
{
extend
:
'
Ext.button.Button
'
,
alias
:
'
widget.xbuttondownload
'
,
extend
:
"
Ext.button.Button
"
,
alias
:
"
widget.xbuttondownload
"
,
/**
* @cfg{String}
...
...
@@ -24,7 +24,7 @@ Ext.define('Dbui.button.Download', {
me
.
callParent
(
arguments
);
// download when the button is pressed
me
.
on
(
'
click
'
,
me
.
onDownload
,
me
);
me
.
on
(
"
click
"
,
me
.
onDownload
,
me
);
},
// jshint strict: true
...
...
@@ -48,17 +48,17 @@ Ext.define('Dbui.button.Download', {
// remove existing iframe
try
{
Ext
.
destroy
(
Ext
.
get
(
'
downloadIframe
'
));
Ext
.
destroy
(
Ext
.
get
(
"
downloadIframe
"
));
}
catch
(
ignore
)
{}
// create a fresh iframe
Ext
.
DomHelper
.
append
(
document
.
body
,
{
tag
:
'
iframe
'
,
id
:
'
downloadIframe
'
,
tag
:
"
iframe
"
,
id
:
"
downloadIframe
"
,
frameBorder
:
0
,
width
:
0
,
height
:
0
,
css
:
'
display:none;visibility:hidden;height:0px;
'
,
css
:
"
display:none;visibility:hidden;height:0px;
"
,
src
:
me
.
url
});
}
...
...
static/plugin_dbui/src/container/Viewport.js
View file @
cc9a524f
...
...
@@ -15,26 +15,26 @@
* In the first case the xtype is *panel* while in the second one is *window*.
*
*/
Ext
.
define
(
'
Dbui.container.Viewport
'
,
{
Ext
.
define
(
"
Dbui.container.Viewport
"
,
{
extend
:
'
Ext.container.Viewport
'
,
alias
:
'
widget.xviewport
'
,
extend
:
"
Ext.container.Viewport
"
,
alias
:
"
widget.xviewport
"
,
requires
:
[
'
Dbui.container.plugin.Login
'
,
'
Ext.layout.container.Border
'
,
'
Ext.layout.container.Fit
'
,
'
Ext.tab.Panel
'
,
'
Ext.Template
'
,
'
Ext.tree.Panel
'
"
Dbui.container.plugin.Login
"
,
"
Ext.layout.container.Border
"
,
"
Ext.layout.container.Fit
"
,
"
Ext.tab.Panel
"
,
"
Ext.Template
"
,
"
Ext.tree.Panel
"
],
uses
:
[
'
Dbui.form.Panel
'
,
'
Dbui.grid.Panel
'
,
'
Dbui.grid.property.Preferences
'
,
'
Dbui.panel.GridWithFilter
'
,
'
Dbui.panel.WithUrlSelector
'
,
'
Ext.panel.Panel
'
,
'
Ext.window.Window
'
"
Dbui.form.Panel
"
,
"
Dbui.grid.Panel
"
,
"
Dbui.grid.property.Preferences
"
,
"
Dbui.panel.GridWithFilter
"
,
"
Dbui.panel.WithUrlSelector
"
,
"
Ext.panel.Panel
"
,
"
Ext.window.Window
"
],
/**
* @property {String[]}
...
...
@@ -84,8 +84,8 @@ Ext.define('Dbui.container.Viewport', {
// contains the field cfg in addition to the tree node fields
treeStoreCfg
=
{
fields
:
[{
name
:
'
cfg
'
,
type
:
'
string
'
,
name
:
"
cfg
"
,
type
:
"
string
"
,
convert
:
function
(
value
)
{
return
Ext
.
JSON
.
decode
(
value
);
}
...
...
@@ -95,7 +95,7 @@ Ext.define('Dbui.container.Viewport', {
children
:
Dbui
.
config
.
treeNodes
,
text
:
Dbui
.
name
},
xtype
:
'
tree
'
xtype
:
"
tree
"
};
// title of the tree panel
...
...
@@ -105,41 +105,41 @@ Ext.define('Dbui.container.Viewport', {
// predefined configuration of the view port
viewportCfg
=
{
layout
:
'
border
'
,
title
:
'
Ext Layout Browser
'
,
layout
:
"
border
"
,
title
:
"
Ext Layout Browser
"
,
<