Browse Source

update

master
Dailer 6 years ago
parent
commit
565f86d4c3
  1. 69
      src/com/fr/plugin/decision/theme/original/web/js/config.js
  2. 2
      src/com/fr/plugin/theme/original/OriginalComponent.java
  3. 8
      src/com/fr/plugin/theme/original/OriginalTheme.java
  4. 53
      src/com/fr/plugin/theme/original/web/js/config.js
  5. 0
      src/com/fr/plugin/theme/original/web/js/modules.js
  6. 0
      src/com/fr/plugin/theme/original/web/js/modules.model.js
  7. 0
      src/com/fr/plugin/theme/original/web/style.css
  8. 43
      src/com/fr/plugin/theme/original/web/theme.js

69
src/com/fr/plugin/decision/theme/original/web/js/config.js

@ -1,69 +0,0 @@
!(function () {
BI.module("my.theme", {
version: 1.0,
components: ["dec.menu"],
constants: ["dec.constant.config"],
services: ["dec.service.tabs"],
models: [""]
});
BI.config("dec.constant.config", function (config) {
config.theme.config4Frame.west.width = 240;
config.theme.config4EntryPane.pinable = false;
return config;
});
Dec.injection.injectLayoutStrategy({
layout: function (config, header, footer, menu, body) {
return {
type: "bi.absolute",
items: [
{
el: {
type: "bi.absolute",
items: [
{
el: body,
top: 0, bottom: 0, right: 0,
left: config.west.invisible ? 0 : config.west.width
}, {
el: menu,
top: 0, bottom: 0,
left: 0
}
]
},
top: 40, left: 0, right: 0, bottom: 0
}, {
el: header,
height: 40,
top: 0, left: 0, right: 0
}
]
};
}
});
Dec.injection.injectMenu({
widget: function (config) {
return {
type: "dec.workbench.panel",
width: 240
};
}
});
Dec.injection.injectBody({
widget: function () {
return {
type: "dec.workbench.tabs"
};
}
});
BI.config("dec.workbench.directory", function (ob) {
return BI.extend(ob, {type: "dec.theme.modules"});
});
}());

2
src/com/fr/plugin/decision/theme/original/OriginalComponent.java → src/com/fr/plugin/theme/original/OriginalComponent.java

@ -1,4 +1,4 @@
package com.fr.plugin.decision.theme.original; package com.fr.plugin.theme.original;
import com.fr.decision.config.AppearanceConfig; import com.fr.decision.config.AppearanceConfig;
import com.fr.web.struct.Component; import com.fr.web.struct.Component;

8
src/com/fr/plugin/decision/theme/original/OriginalTheme.java → src/com/fr/plugin/theme/original/OriginalTheme.java

@ -1,15 +1,14 @@
package com.fr.plugin.decision.theme.original; package com.fr.plugin.theme.original;
import com.fr.decision.fun.impl.AbstractThemeVariousProvider; import com.fr.decision.fun.impl.AbstractThemeVariousProvider;
import com.fr.decision.web.MainComponent; import com.fr.decision.web.MainComponent;
import com.fr.plugin.transform.ExecuteFunctionRecord; import com.fr.record.analyzer.EnableMetrics;
import com.fr.plugin.transform.FunctionRecorder;
import com.fr.web.struct.Atom; import com.fr.web.struct.Atom;
/** /**
* Created by dailer on 18/10/10. * Created by dailer on 18/10/10.
*/ */
@FunctionRecorder(localeKey = "OriginalTheme") @EnableMetrics
public class OriginalTheme extends AbstractThemeVariousProvider { public class OriginalTheme extends AbstractThemeVariousProvider {
@ -24,7 +23,6 @@ public class OriginalTheme extends AbstractThemeVariousProvider {
} }
@Override @Override
@ExecuteFunctionRecord
public String name() { public String name() {
return "OriginalTheme"; return "OriginalTheme";
} }

53
src/com/fr/plugin/theme/original/web/js/config.js

@ -0,0 +1,53 @@
!(function () {
BI.config("dec.constant.config", function (config) {
config.theme.config4Frame.west.width = 240;
config.theme.config4EntryPane.pinable = false;
return config;
});
BI.config("dec.provider.layout", function (provider) {
provider.setConfig({
type: "bi.absolute",
items: [
{
el: {
type: "bi.absolute",
items: [
{
el: {
type: "dec.workbench.tabs"
},
top: 0, bottom: 0, right: 0,
left: 240
}, {
el: {
type: "dec.workbench.panel",
width: 240
},
top: 0, bottom: 0,
left: 0
}
]
},
top: 40, left: 0, right: 0, bottom: 0
}, {
el: {
type: "dec.header"
},
height: 40,
top: 0, left: 0, right: 0
}
]
});
return provider;
});
BI.config("dec.workbench.directory", function (config) {
config.type = "my.theme.directory";
return config;
});
}());

0
src/com/fr/plugin/decision/theme/original/web/js/modules.js → src/com/fr/plugin/theme/original/web/js/modules.js

0
src/com/fr/plugin/decision/theme/original/web/js/modules.model.js → src/com/fr/plugin/theme/original/web/js/modules.model.js

0
src/com/fr/plugin/decision/theme/original/web/style.css → src/com/fr/plugin/theme/original/web/style.css

43
src/com/fr/plugin/decision/theme/original/web/theme.js → src/com/fr/plugin/theme/original/web/theme.js

@ -8,9 +8,8 @@
}); });
Dec.injection.injectLayoutStrategy({ BI.config("dec.provider.layout", function (provider) {
layout: function (config, header, footer, menu, body) { provider.setConfig({
return {
type: "bi.absolute", type: "bi.absolute",
items: [ items: [
{ {
@ -18,11 +17,16 @@
type: "bi.absolute", type: "bi.absolute",
items: [ items: [
{ {
el: body, el: {
type: "dec.workbench.tabs"
},
top: 0, bottom: 0, right: 0, top: 0, bottom: 0, right: 0,
left: config.west.invisible ? 0 : config.west.width left: 240
}, { }, {
el: menu, el: {
type: "dec.workbench.panel",
width: 240
},
top: 0, bottom: 0, top: 0, bottom: 0,
left: 0 left: 0
} }
@ -30,33 +34,20 @@
}, },
top: 40, left: 0, right: 0, bottom: 0 top: 40, left: 0, right: 0, bottom: 0
}, { }, {
el: header, el: {
type: "dec.header"
},
height: 40, height: 40,
top: 0, left: 0, right: 0 top: 0, left: 0, right: 0
} }
] ]
};
}
}); });
return provider;
Dec.injection.injectMenu({
widget: function (config) {
return {
type: "dec.workbench.panel",
width: 240
};
}
});
Dec.injection.injectBody({
widget: function () {
return {
type: "dec.workbench.tabs"
};
}
}); });
BI.Plugin.registerWidget("dec.workbench.directory", function (ob) { BI.config("dec.workbench.directory", function (config) {
return BI.extend(ob, {type: "dec.theme.modules"}); config.type = "my.theme.directory";
return config;
}); });
}()); }());
!(function () { !(function () {
Loading…
Cancel
Save