This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Lyduz/feature/new-project-structure
Feature/new project structure
- Loading branch information
Showing
55 changed files
with
1,511 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
APP_TITLE='Lyduz | Free Stock Trading Platform' | ||
APP_URL=http://localhost:6969 | ||
API_URL=https://dev-api.lyduz.com/api | ||
API_URL_BROWSER=https://dev-api.lyduz.com/api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
hooks | ||
platforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"root": true, | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser", | ||
"ecmaFeatures": { | ||
"legacyDecorators": true | ||
} | ||
}, | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"prettier/vue", | ||
"plugin:vue/base" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"semi": 0, | ||
"space-before-function-paren": ["error", "never"], | ||
"no-unused-vars": "off", // disable default | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"vars": "all", | ||
"args": "after-used", | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
"@typescript-eslint/indent": ["error", 2], | ||
"@typescript-eslint/member-delimiter-style": 0, | ||
"@typescript-eslint/ban-ts-ignore": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# JetBrains project files | ||
.idea | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# NPM | ||
node_modules | ||
|
||
# NativeScript application | ||
hooks | ||
platforms | ||
|
||
# Root Variables | ||
.env | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": false, | ||
"arrowParens": "always", | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
} |
176 changes: 0 additions & 176 deletions
176
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-160 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
Binary file not shown.
Binary file removed
BIN
-62.2 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-112 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-180 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-165 KB
...p_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
Binary file not shown.
Binary file removed
BIN
-60.9 KB
...App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
Binary file not shown.
Binary file removed
BIN
-187 KB
..._Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-198 KB
..._Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-59.5 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
Binary file not shown.
Binary file removed
BIN
-182 KB
...p_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
Binary file removed
BIN
-20.3 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
Binary file not shown.
Binary file removed
BIN
-61.4 KB
app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import Vue from "nativescript-vue"; | ||
import VueDevtools from "nativescript-vue-devtools"; | ||
import Navigator from "nativescript-vue-navigator"; | ||
import Vue from 'nativescript-vue' | ||
// FIXME: run vue dev tools and enable | ||
//import VueDevtools from 'nativescript-vue-devtools' | ||
import Navigator from 'nativescript-vue-navigator' | ||
|
||
import { routes } from "./router"; | ||
import store from "./store"; | ||
import routes from './router' | ||
import store from './store' | ||
|
||
import App from "./App.vue"; | ||
import "./styles.scss"; | ||
import App from './App.vue' | ||
import './styles.scss' | ||
|
||
Vue.use(Navigator, { routes }); | ||
Vue.use(Navigator, { routes }) | ||
|
||
if (TNS_ENV !== "production") { | ||
if (TNS_ENV !== 'production') { | ||
//Vue.use(VueDevtools); | ||
} | ||
|
||
// Prints Vue logs when --env.production is *NOT* set while building | ||
Vue.config.silent = TNS_ENV === "production"; | ||
Vue.config.silent = TNS_ENV === 'production' | ||
|
||
new Vue({ | ||
store, | ||
render: h => h(App) | ||
}).$start(); | ||
render: (h) => h(App), | ||
}).$start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ActionTree } from 'vuex' | ||
import { State } from './state' | ||
|
||
export const Actions: ActionTree<typeof State, any> = { | ||
setTitle(context, payload: string) { | ||
context.commit('SET_TITLE', payload) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { GetterTree } from 'vuex' | ||
import { State } from './state' | ||
|
||
export const Getters: GetterTree<typeof State, any> = { | ||
getTitle(State): string { | ||
return State.title | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { State } from './state' | ||
import { Getters } from './getters' | ||
import { Mutations } from './mutations' | ||
import { Actions } from './actions' | ||
|
||
export default { | ||
namespaced: true, | ||
state: State, | ||
getters: Getters, | ||
mutations: Mutations, | ||
actions: Actions, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { MutationTree } from 'vuex' | ||
import { State } from './state' | ||
|
||
export const Mutations: MutationTree<typeof State> = { | ||
SET_TITLE(State, data: string) { | ||
State.title = data | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface StateInterface { | ||
title: string | ||
} | ||
|
||
export const State: StateInterface = { | ||
title: '', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Chart } from '@/modules/chart/views' | ||
|
||
export const ChartRoutes: object = { | ||
'/chart': { | ||
component: Chart, | ||
meta: { | ||
title: 'chart', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ActionTree } from 'vuex' | ||
import { State } from './state' | ||
|
||
export const Actions: ActionTree<typeof State, any> = { | ||
setTitle(context, payload: string) { | ||
context.commit('SET_TITLE', payload) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { GetterTree } from 'vuex' | ||
import { State } from './state' | ||
|
||
export const Getters: GetterTree<typeof State, any> = { | ||
getTitle(State): string { | ||
return State.title | ||
}, | ||
} |
Oops, something went wrong.