Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1ccb2235
Commit
1ccb2235
authored
Apr 01, 2020
by
Enrique Alcántara
Committed by
Martin Wortschack
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create static site editor Vue app skeleton
Create basic Vue structure for the static site editor application
parent
ac577f01
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
0 deletions
+47
-0
app/assets/javascripts/pages/static_site_editor/index.js
app/assets/javascripts/pages/static_site_editor/index.js
+5
-0
app/assets/javascripts/static_site_editor/components/static_site_editor.vue
...ipts/static_site_editor/components/static_site_editor.vue
+3
-0
app/assets/javascripts/static_site_editor/index.js
app/assets/javascripts/static_site_editor/index.js
+20
-0
app/assets/javascripts/static_site_editor/store/index.js
app/assets/javascripts/static_site_editor/store/index.js
+13
-0
app/assets/javascripts/static_site_editor/store/state.js
app/assets/javascripts/static_site_editor/store/state.js
+6
-0
No files found.
app/assets/javascripts/pages/static_site_editor/index.js
0 → 100644
View file @
1ccb2235
import
initStaticSiteEditor
from
'
~/static_site_editor
'
;
window
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initStaticSiteEditor
(
document
.
querySelector
(
'
#static-site-editor
'
));
});
app/assets/javascripts/static_site_editor/components/static_site_editor.vue
0 → 100644
View file @
1ccb2235
<
template
>
<div></div>
</
template
>
app/assets/javascripts/static_site_editor/index.js
0 → 100644
View file @
1ccb2235
import
Vue
from
'
vue
'
;
import
StaticSiteEditor
from
'
./components/static_site_editor.vue
'
;
import
createStore
from
'
./store
'
;
const
initStaticSiteEditor
=
el
=>
{
const
store
=
createStore
();
return
new
Vue
({
el
,
store
,
components
:
{
StaticSiteEditor
,
},
render
(
createElement
)
{
return
createElement
(
'
static-site-editor
'
,
StaticSiteEditor
);
},
});
};
export
default
initStaticSiteEditor
;
app/assets/javascripts/static_site_editor/store/index.js
0 → 100644
View file @
1ccb2235
import
Vuex
from
'
vuex
'
;
import
Vue
from
'
vue
'
;
import
createState
from
'
./state
'
;
Vue
.
use
(
Vuex
);
const
createStore
=
({
initialState
}
=
{})
=>
{
return
new
Vuex
.
Store
({
state
:
createState
(
initialState
),
});
};
export
default
createStore
;
app/assets/javascripts/static_site_editor/store/state.js
0 → 100644
View file @
1ccb2235
const
createState
=
(
initialState
=
{})
=>
({
content
:
''
,
...
initialState
,
});
export
default
createState
;
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