Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
af6e9a71
Commit
af6e9a71
authored
Sep 02, 2019
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initproject
parent
be493d59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
43 deletions
+3
-43
.gitignore
.gitignore
+1
-0
stocks.js
client/store/modules/stocks.js
+0
-41
store.js
client/store/store.js
+2
-2
No files found.
.gitignore
View file @
af6e9a71
node_modules/
node_modules/
.meteor/
client/store/modules/stocks.js
deleted
100644 → 0
View file @
be493d59
const
state
=
{
stocks
:
[]
}
const
mutations
=
{
'SET_STOCKS'
(
state
,
stocks
)
{
state
.
stocks
=
stocks
;
},
'RND_STOCKS'
(
state
)
{
}
}
const
actions
=
{
buyStock
({
commit
},
order
)
{
commit
(
'BUY_STOCK'
,
order
);
},
initStocks
:
({
commit
})
=>
{
commit
(
'SET_STOCKS'
);
},
randomizeStocks
:
({
commit
})
=>
{
commit
(
'RND_STOCKS'
);
}
}
const
getters
=
{
stocks
:
state
=>
{
return
state
.
stocks
;
}
}
export
default
{
state
,
mutations
,
getters
,
actions
};
\ No newline at end of file
client/store/store.js
View file @
af6e9a71
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
Vuex
from
'vuex'
;
import
Vuex
from
'vuex'
;
import
stocks
from
'./modules/stocks'
;
import
appSettings
from
'./modules/appSetting'
;
import
appSettings
from
'./modules/appSetting'
;
...
@@ -10,7 +9,7 @@ Vue.use(Vuex);
...
@@ -10,7 +9,7 @@ Vue.use(Vuex);
export
const
store
=
new
Vuex
.
Store
({
export
const
store
=
new
Vuex
.
Store
({
modules
:
{
modules
:
{
stocks
,
appSettings
appSettings
}
}
});
});
\ No newline at end of file
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