Developer window in Electron app, remove edit/delete options in Admin panel (currently not completed)
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"i18n-ally.localesPaths": "software/src/locales",
|
"i18n-ally.localesPaths": "src/locales",
|
||||||
"i18n-ally.regex.key": ".*?",
|
"i18n-ally.regex.key": ".*?",
|
||||||
"i18n-ally.sourceLanguage": "en",
|
"i18n-ally.sourceLanguage": "en",
|
||||||
"i18n-ally.keysInUse": [
|
"i18n-ally.keysInUse": [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { app, BrowserWindow } = require("electron");
|
const { app, BrowserWindow, globalShortcut } = require("electron");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const backend = require('./../backend/server')
|
const backend = require('./../backend/server')
|
||||||
|
|
||||||
@@ -19,6 +19,10 @@ function createWindow() {
|
|||||||
// Load HTML entry point
|
// Load HTML entry point
|
||||||
win.loadFile("build/src/vite/index.html");
|
win.loadFile("build/src/vite/index.html");
|
||||||
|
|
||||||
|
globalShortcut.register('Ctrl+D', () => {
|
||||||
|
win.webContents.openDevTools();
|
||||||
|
})
|
||||||
|
|
||||||
// Maximize window
|
// Maximize window
|
||||||
win.maximize()
|
win.maximize()
|
||||||
|
|
||||||
|
|||||||
10
package-lock.json
generated
10
package-lock.json
generated
@@ -42,7 +42,7 @@
|
|||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/jsonwebtoken": "^9.0.7",
|
"@types/jsonwebtoken": "^9.0.7",
|
||||||
"@types/node": "^22.7.6",
|
"@types/node": "^22.9.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.4",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"concurrently": "^9.0.1",
|
"concurrently": "^9.0.1",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
@@ -2156,12 +2156,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.7.6",
|
"version": "22.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.6.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz",
|
||||||
"integrity": "sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==",
|
"integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.19.2"
|
"undici-types": "~6.19.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/plist": {
|
"node_modules/@types/plist": {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/jsonwebtoken": "^9.0.7",
|
"@types/jsonwebtoken": "^9.0.7",
|
||||||
"@types/node": "^22.7.6",
|
"@types/node": "^22.9.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.4",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"concurrently": "^9.0.1",
|
"concurrently": "^9.0.1",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
|
|||||||
@@ -29,19 +29,19 @@ accountStore.getAllAccounts()
|
|||||||
:headers="headers"
|
:headers="headers"
|
||||||
>
|
>
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-pencil"
|
icon="mdi-pencil"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="orange"
|
color="orange"
|
||||||
@click="accountStore.editAccount(item)"
|
@click="accountStore.editAccount(item)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="accountStore.deleteAccount(item)"
|
@click="accountStore.deleteAccount(item)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</admin-data-layout>
|
</admin-data-layout>
|
||||||
|
|||||||
@@ -57,19 +57,19 @@ bandStore.getBands()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-pencil"
|
icon="mdi-pencil"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="orange"
|
color="orange"
|
||||||
@click="bandStore.editBand(item.name)"
|
@click="bandStore.editBand(item.name)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="bandStore.deleteBand(item.id)"
|
@click="bandStore.deleteBand(item.id)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</admin-data-layout>
|
</admin-data-layout>
|
||||||
|
|||||||
@@ -58,19 +58,19 @@ concertStore.getConcerts()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-pencil"
|
icon="mdi-pencil"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="orange"
|
color="orange"
|
||||||
@click="concertStore.editConcert(item)"
|
@click="concertStore.editConcert(item)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="concertStore.deleteConcert(item)"
|
@click="concertStore.deleteConcert(item)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</admin-data-layout>
|
</admin-data-layout>
|
||||||
|
|||||||
@@ -33,19 +33,19 @@ genreStore.getGenres()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-pencil"
|
icon="mdi-pencil"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="orange"
|
color="orange"
|
||||||
@click="genreStore.editGenre(item)"
|
@click="genreStore.editGenre(item)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="genreStore.deleteGenre(item)"
|
@click="genreStore.deleteGenre(item)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</admin-data-layout>
|
</admin-data-layout>
|
||||||
|
|||||||
@@ -51,19 +51,19 @@ locationStore.getLocations()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-pencil"
|
icon="mdi-pencil"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="orange"
|
color="orange"
|
||||||
@click="locationStore.editLocation(item)"
|
@click="locationStore.editLocation(item)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="locationStore.deleteLocation(item)"
|
@click="locationStore.deleteLocation(item)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</admin-data-layout>
|
</admin-data-layout>
|
||||||
|
|||||||
@@ -51,18 +51,18 @@ orderStore.getAllOrders()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #item.edit="{ item }">
|
<template #item.edit="{ item }">
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-eye"
|
icon="mdi-eye"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
@click="orderStore.openDetails(item)"
|
@click="orderStore.openDetails(item)"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
<v-btn
|
<!-- todo <v-btn
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
color="red"
|
color="red"
|
||||||
@click="orderStore.deleteOrder(item)"
|
@click="orderStore.deleteOrder(item)"
|
||||||
/>
|
/> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
|
|||||||
Reference in New Issue
Block a user