Added order to projects
This commit is contained in:
12
package-lock.json
generated
12
package-lock.json
generated
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@ztimson/momentum": "^1.1.9",
|
||||
"@ztimson/utils": "^0.29.4",
|
||||
"vue": "^3.3.11",
|
||||
"vue-router": "^4.2.5"
|
||||
},
|
||||
@@ -1359,7 +1360,7 @@
|
||||
"build-models": "bin/build-models.mjs"
|
||||
}
|
||||
},
|
||||
"node_modules/@ztimson/utils": {
|
||||
"node_modules/@ztimson/momentum/node_modules/@ztimson/utils": {
|
||||
"version": "0.29.0",
|
||||
"resolved": "https://registry.npmjs.org/@ztimson/utils/-/utils-0.29.0.tgz",
|
||||
"integrity": "sha512-qwI8xwJGsC7Lxk8WsEtvD8KYDIvagEa1AP8cjyQVZ3FUDHZlTocyuQYen4MU4keXzNAgfh9CcCsXweIyvjZt0Q==",
|
||||
@@ -1368,6 +1369,15 @@
|
||||
"var-persist": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ztimson/utils": {
|
||||
"version": "0.29.4",
|
||||
"resolved": "https://registry.npmjs.org/@ztimson/utils/-/utils-0.29.4.tgz",
|
||||
"integrity": "sha512-INIADSrstEfr9sN0xQkBrcfnUNG9cWqRjmk+q4IFq323jIe/xSHBMunpq8HIBumpIk5rYfPmdHxFhutpUxwEFg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"var-persist": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/ansi-styles": {
|
||||
"version": "6.2.3",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ztimson/momentum": "^1.1.9",
|
||||
"@ztimson/utils": "^0.29.4",
|
||||
"vue": "^3.3.11",
|
||||
"vue-router": "^4.2.5"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const devMode = location?.port == '5173';
|
||||
|
||||
export const environment = {
|
||||
apiUrl: devMode ? 'http://localhost' : location.origin,
|
||||
apiUrl: 'https://zakscode.com',
|
||||
devMode
|
||||
}
|
||||
|
||||
@@ -5,13 +5,15 @@ import Konsole from '@/components/konsole.vue';
|
||||
import Projects from '@/components/projects.vue';
|
||||
import Refrences from '@/components/refrences.vue';
|
||||
import {momentum} from '@/services/momentum.service';
|
||||
import {sortByProp} from '@ztimson/utils';
|
||||
import {ref} from 'vue';
|
||||
|
||||
// Get favorites
|
||||
const products = ref<any[]>([]);
|
||||
const openSource = ref<any[]>([]);
|
||||
momentum.data.read('Repos').then(resp =>
|
||||
resp.forEach((r: any) => (r.product ? products : openSource).value.push(r)));
|
||||
resp.toSorted(sortByProp('order'))
|
||||
.forEach((r: any) => (r.product ? products : openSource).value.push(r)));
|
||||
|
||||
// Get repository count
|
||||
let remainder = ref(0);
|
||||
|
||||
Reference in New Issue
Block a user