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
f42f3f53
Commit
f42f3f53
authored
Feb 06, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move file panel styles to its own file
parent
740f9b59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
105 deletions
+112
-105
file-panel.js
src/app/panels/file-panel.js
+3
-105
file-panel-styles.js
src/app/panels/styles/file-panel-styles.js
+109
-0
No files found.
src/app/panels/file-panel.js
View file @
f42f3f53
var
async
=
require
(
'async'
)
var
async
=
require
(
'async'
)
var
$
=
require
(
'jquery'
)
var
$
=
require
(
'jquery'
)
var
csjs
=
require
(
'csjs-inject'
)
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
minixhr
=
require
(
'minixhr'
)
// simple and small cross-browser XMLHttpRequest (XHR)
var
minixhr
=
require
(
'minixhr'
)
// simple and small cross-browser XMLHttpRequest (XHR)
var
remixLib
=
require
(
'remix-lib'
)
var
remixLib
=
require
(
'remix-lib'
)
...
@@ -15,110 +14,7 @@ var helper = require('../../lib/helper')
...
@@ -15,110 +14,7 @@ var helper = require('../../lib/helper')
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
styles
=
styleGuide
.
chooser
()
module
.
exports
=
filepanel
var
css
=
require
(
'./styles/file-panel-styles'
)
var
css
=
csjs
`
.container {
display : flex;
flex-direction : row;
width : 100%;
height : 100%;
box-sizing : border-box;
}
.fileexplorer {
display : flex;
flex-direction : column;
position : relative;
width : 100%;
}
.menu {
margin-top : -0.2em;
flex-shrink : 0;
display : flex;
flex-direction : row;
min-width : 160px;
}
.newFile {
padding : 10px;
}
.newFile i {
cursor : pointer;
}
.newFile i:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.gist {
padding : 10px;
}
.gist i {
cursor : pointer;
}
.gist i:hover {
color : orange;
}
.copyFiles {
padding : 10px;
}
.copyFiles i {
cursor : pointer;
}
.copyFiles i:hover {
color : orange;
}
.connectToLocalhost {
padding : 10px;
}
.connectToLocalhost i {
cursor : pointer;
}
.connectToLocalhost i:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.uploadFile {
padding : 10px;
}
.uploadFile label:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.uploadFile label {
cursor : pointer;
}
.treeview {
background-color :
${
styles
.
colors
.
general_BackgroundColor
}
;
}
.treeviews {
overflow-y : auto;
}
.dragbar {
position : absolute;
top : 37px;
width : 0.5em;
right : 0;
bottom : 0;
cursor : col-resize;
z-index : 999;
border-right : 2px solid hsla(215, 81%, 79%, .3);
}
.ghostbar {
width : 3px;
background-color :
${
styles
.
colors
.
lightBlue
}
;
opacity : 0.5;
position : absolute;
cursor : col-resize;
z-index : 9999;
top : 0;
bottom : 0;
}
.dialog {
display: flex;
flex-direction: column;
}
.dialogParagraph {
${
styles
.
infoTextBox
}
margin-bottom: 2em;
word-break: break-word;
}
`
var
limit
=
60
var
limit
=
60
var
canUpload
=
window
.
File
||
window
.
FileReader
||
window
.
FileList
||
window
.
Blob
var
canUpload
=
window
.
File
||
window
.
FileReader
||
window
.
FileList
||
window
.
Blob
...
@@ -403,3 +299,5 @@ function packageFiles (files, callback) {
...
@@ -403,3 +299,5 @@ function packageFiles (files, callback) {
callback
(
null
,
ret
)
callback
(
null
,
ret
)
})
})
}
}
module
.
exports
=
filepanel
src/app/panels/styles/file-panel-styles.js
0 → 100644
View file @
f42f3f53
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
themeChooser
var
styles
=
styleGuide
.
chooser
()
var
css
=
csjs
`
.container {
display : flex;
flex-direction : row;
width : 100%;
height : 100%;
box-sizing : border-box;
}
.fileexplorer {
display : flex;
flex-direction : column;
position : relative;
width : 100%;
}
.menu {
margin-top : -0.2em;
flex-shrink : 0;
display : flex;
flex-direction : row;
min-width : 160px;
}
.newFile {
padding : 10px;
}
.newFile i {
cursor : pointer;
}
.newFile i:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.gist {
padding : 10px;
}
.gist i {
cursor : pointer;
}
.gist i:hover {
color : orange;
}
.copyFiles {
padding : 10px;
}
.copyFiles i {
cursor : pointer;
}
.copyFiles i:hover {
color : orange;
}
.connectToLocalhost {
padding : 10px;
}
.connectToLocalhost i {
cursor : pointer;
}
.connectToLocalhost i:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.uploadFile {
padding : 10px;
}
.uploadFile label:hover {
color :
${
styles
.
colors
.
orange
}
;
}
.uploadFile label {
cursor : pointer;
}
.treeview {
background-color :
${
styles
.
colors
.
general_BackgroundColor
}
;
}
.treeviews {
overflow-y : auto;
}
.dragbar {
position : absolute;
top : 37px;
width : 0.5em;
right : 0;
bottom : 0;
cursor : col-resize;
z-index : 999;
border-right : 2px solid hsla(215, 81%, 79%, .3);
}
.ghostbar {
width : 3px;
background-color :
${
styles
.
colors
.
lightBlue
}
;
opacity : 0.5;
position : absolute;
cursor : col-resize;
z-index : 9999;
top : 0;
bottom : 0;
}
.dialog {
display: flex;
flex-direction: column;
}
.dialogParagraph {
${
styles
.
infoTextBox
}
margin-bottom: 2em;
word-break: break-word;
}
`
module
.
exports
=
css
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