Skip to content

Commit

Permalink
fix: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
loingtan committed Apr 13, 2024
1 parent 95df38e commit f33aba3
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 51 deletions.
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

62 changes: 31 additions & 31 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"version": "0.2.0",
"compounds": [
{
"name": "Main + renderer",
"configurations": ["Main", "Renderer"],
"stopAll": true
}
],
"configurations": [
{
"name": "Renderer",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "QuanLyDangKyMonHocVaThuPhiSV-Desktop"
},
{
"name": "Main",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "QuanLyDangKyMonHocVaThuPhiSV-Desktop/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "QuanLyDangKyMonHocVaThuPhiSV-Desktop/node_modules/.bin/electron.cmd"
},
"args": [".", "--remote-debugging-port=9222"],
"outputCapture": "std",
"console": "integratedTerminal"
}
]
{
"version": "0.2.0",
"compounds": [
{
"name": "Main + renderer",
"configurations": ["Main", "Renderer"],
"stopAll": true
}
],
"configurations": [
{
"name": "Renderer",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "QuanLyDangKyMonHocVaThuPhiSV-Desktop"
},
{
"name": "Main",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "QuanLyDangKyMonHocVaThuPhiSV-Desktop/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "QuanLyDangKyMonHocVaThuPhiSV-Desktop/node_modules/.bin/electron.cmd"
},
"args": [".", "--remote-debugging-port=9222"],
"outputCapture": "std",
"console": "integratedTerminal"
}
]
}
1 change: 1 addition & 0 deletions forge.env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

export {}; // Make this a module

declare global {
Expand Down
2 changes: 0 additions & 2 deletions src/preload.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// See the Electron documentation for details on how to use preload scripts:
// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts
import { contextBridge, ipcRenderer } from 'electron';
contextBridge.exposeInMainWorld('electron', {
store: {
Expand Down
24 changes: 12 additions & 12 deletions src/renderer/store/store.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineStore } from 'pinia';
import { computed, ref } from 'vue';
export const useCounterStore = defineStore('counter', () => {
const count = ref(0);
const name = ref('Eduardo');
const doubleCount = computed(() => count.value * 2);
function increment() {
count.value++;
}

return { count, name, doubleCount, increment };
});
import { defineStore } from 'pinia';
import { computed, ref } from 'vue';
export const useCounterStore = defineStore('counter', () => {
const count = ref(0);
const name = ref('Eduardo');
const doubleCount = computed(() => count.value * 2);
function increment() {
count.value++;
}

return { count, name, doubleCount, increment };
});
1 change: 0 additions & 1 deletion src/renderer/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ async function login(e) {
console.log('Login successful', data);
authError.value = false;
} catch (error) {
authError.value = true;
}
Expand Down

0 comments on commit f33aba3

Please sign in to comment.