Added order to projects
All checks were successful
Build Website / Build NPM Project (push) Successful in 16s
Build Website / Build Container (push) Successful in 24s
Build Website / Tag Version (push) Successful in 14s

This commit is contained in:
2026-05-01 15:22:20 -04:00
parent b7895487e2
commit 54af98ed3d
4 changed files with 16 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
const devMode = location?.port == '5173';
export const environment = {
apiUrl: devMode ? 'http://localhost' : location.origin,
apiUrl: 'https://zakscode.com',
devMode
}

View File

@@ -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);