Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
a613c829
Commit
a613c829
authored
Jan 10, 2019
by
jeremiG
Committed by
yann300
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Works well with incognito browser!
parent
49d41462
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
settings-tab.js
src/app/tabs/settings-tab.js
+10
-1
styleGuideClean.js
src/app/ui/styles-guide/styleGuideClean.js
+2
-2
theme-chooser.js
src/app/ui/styles-guide/theme-chooser.js
+5
-0
No files found.
src/app/tabs/settings-tab.js
View file @
a613c829
...
@@ -26,7 +26,7 @@ module.exports = class SettingsTab {
...
@@ -26,7 +26,7 @@ module.exports = class SettingsTab {
el
:
null
,
el
:
null
,
optionVM
:
null
,
personal
:
null
,
warnPersonalMode
:
null
,
generateContractMetadata
:
null
,
optionVM
:
null
,
personal
:
null
,
warnPersonalMode
:
null
,
generateContractMetadata
:
null
,
pluginInput
:
null
,
versionSelector
:
null
,
version
:
null
,
pluginInput
:
null
,
versionSelector
:
null
,
version
:
null
,
theme
:
{
dark
:
null
,
light
:
null
},
theme
:
{
dark
:
null
,
light
:
null
,
clean
:
null
},
plugins
:
{},
plugins
:
{},
config
:
{
config
:
{
general
:
null
,
themes
:
null
,
general
:
null
,
themes
:
null
,
...
@@ -74,6 +74,7 @@ module.exports = class SettingsTab {
...
@@ -74,6 +74,7 @@ module.exports = class SettingsTab {
self
.
_view
.
theme
.
light
=
yo
`<input onchange=
${
onswitch2lightTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeLight" type="radio">`
self
.
_view
.
theme
.
light
=
yo
`<input onchange=
${
onswitch2lightTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeLight" type="radio">`
self
.
_view
.
theme
.
dark
=
yo
`<input onchange=
${
onswitch2darkTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeDark" type="radio">`
self
.
_view
.
theme
.
dark
=
yo
`<input onchange=
${
onswitch2darkTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeDark" type="radio">`
self
.
_view
.
theme
.
clean
=
yo
`<input onchange=
${
onswitch2cleanTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeClean" type="radio">`
self
.
_view
.
theme
[
self
.
data
.
currentTheme
].
setAttribute
(
'checked'
,
'checked'
)
self
.
_view
.
theme
[
self
.
data
.
currentTheme
].
setAttribute
(
'checked'
,
'checked'
)
self
.
_view
.
config
.
general
=
yo
`
self
.
_view
.
config
.
general
=
yo
`
...
@@ -120,6 +121,10 @@ module.exports = class SettingsTab {
...
@@ -120,6 +121,10 @@ module.exports = class SettingsTab {
${
self
.
_view
.
theme
.
dark
}
${
self
.
_view
.
theme
.
dark
}
<label for="themeDark">Dark Theme</label>
<label for="themeDark">Dark Theme</label>
</div>
</div>
<div class="
${
css
.
crow
}
">
${
self
.
_view
.
theme
.
clean
}
<label for="themeClean">Clean Theme</label>
</div>
</div>`
</div>`
self
.
_view
.
config
.
plugins
=
yo
`<div></div>`
self
.
_view
.
config
.
plugins
=
yo
`<div></div>`
self
.
_view
.
config
.
plugin
=
yo
`
self
.
_view
.
config
.
plugin
=
yo
`
...
@@ -203,6 +208,10 @@ module.exports = class SettingsTab {
...
@@ -203,6 +208,10 @@ module.exports = class SettingsTab {
styleGuide.switchTheme('light')
styleGuide.switchTheme('light')
window.location.reload()
window.location.reload()
}
}
function onswitch2cleanTheme (event) {
styleGuide.switchTheme('clean')
window.location.reload()
}
function onchangePersonal (event) {
function onchangePersonal (event) {
self._deps.config.set('settings/personal-mode', !self._deps.config.get('settings/personal-mode'))
self._deps.config.set('settings/personal-mode', !self._deps.config.get('settings/personal-mode'))
}
}
...
...
src/app/ui/styles-guide/styleGuide
David
.js
→
src/app/ui/styles-guide/styleGuide
Clean
.js
View file @
a613c829
// var csjs = require('csjs-inject')
// var csjs = require('csjs-inject')
module
.
exports
=
styleGuide
David
module
.
exports
=
styleGuide
Clean
function
styleGuide
David
()
{
function
styleGuide
Clean
()
{
/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
CSS PROPERTIES
CSS PROPERTIES
...
...
src/app/ui/styles-guide/theme-chooser.js
View file @
a613c829
var
styleGuideLight
=
require
(
'./style-guide'
)
var
styleGuideLight
=
require
(
'./style-guide'
)
var
styleGuideDark
=
require
(
'./styleGuideDark'
)
var
styleGuideDark
=
require
(
'./styleGuideDark'
)
var
styleGuideClean
=
require
(
'./styleGuideClean'
)
var
Storage
=
require
(
'remix-lib'
).
Storage
var
Storage
=
require
(
'remix-lib'
).
Storage
module
.
exports
=
{
module
.
exports
=
{
...
@@ -8,6 +9,8 @@ module.exports = {
...
@@ -8,6 +9,8 @@ module.exports = {
if
(
themeStorage
.
exists
(
'theme'
))
{
if
(
themeStorage
.
exists
(
'theme'
))
{
if
(
themeStorage
.
get
(
'theme'
)
===
'dark'
)
{
if
(
themeStorage
.
get
(
'theme'
)
===
'dark'
)
{
return
styleGuideDark
()
return
styleGuideDark
()
}
else
if
(
themeStorage
.
get
(
'theme'
)
===
'clean'
)
{
return
styleGuideClean
()
}
else
{
}
else
{
return
styleGuideLight
()
return
styleGuideLight
()
}
}
...
@@ -23,6 +26,8 @@ module.exports = {
...
@@ -23,6 +26,8 @@ module.exports = {
return
styleGuideDark
()
return
styleGuideDark
()
}
else
if
(
theme
===
'light'
)
{
}
else
if
(
theme
===
'light'
)
{
return
styleGuideLight
()
return
styleGuideLight
()
}
else
if
(
theme
===
'clean'
)
{
return
styleGuideClean
()
}
else
{
}
else
{
return
styleGuideLight
()
return
styleGuideLight
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment