Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Langmans committed May 25, 2024
0 parents commit bf83d6f
Show file tree
Hide file tree
Showing 65 changed files with 3,205 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store

node_modules
dist
dist-electron
release
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/LooksmenuBodyslideCombine.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
45 changes: 45 additions & 0 deletions .idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
45 changes: 45 additions & 0 deletions .idea/sonarlint/securityhotspotstore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions electron-builder.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* @see https://www.electron.build/configuration/configuration
*/
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "io.github.langmans.looksmenu-bodyslide-combine",
"productName": "Looksmenu Bodyslide Combine",
"directories": {
"output": "release/${version}"
},
"files": [
"dist",
"dist-electron"
],
"mac": {
"target": [
"dmg"
],
"artifactName": "${productName}-Mac-${version}-Installer.${ext}"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "${productName}-Windows-${version}-Setup.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
},
"linux": {
"target": [
"AppImage"
],
"artifactName": "${productName}-Linux-${version}.${ext}"
}
}
26 changes: 26 additions & 0 deletions electron/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import path from 'path';
import { app, BrowserWindow } from 'electron';
let win;
async function createWindow() {
win = new BrowserWindow({
webPreferences: {
preload: path.join(__dirname, './preload.js'),
},
});
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
if (process.env.VITE_DEV_SERVER_URL) {
await win.loadURL(process.env.VITE_DEV_SERVER_URL);
win.webContents.openDevTools();
}
else {
// Load your file
await win.loadFile('dist/index.html');
}
win.maximize();
win.show();
}
app.on('window-all-closed', () => {
app.quit();
win = null;
});
app.whenReady().then(createWindow);
41 changes: 41 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import path from 'path'
import {app, BrowserWindow} from 'electron'
import Remote from "@electron/remote/main";

Remote.initialize();

let win: BrowserWindow | null = null

async function createWindow() {
win = new BrowserWindow({
autoHideMenuBar: true,
webPreferences: {
preload: path.join(__dirname, './preload.js'),
nodeIntegration: true,
// enableRemoteModule: true,
contextIsolation: false,
},
})

Remote.enable(win.webContents);

// win.setMenu(null)
// win.maximize()
win.show()

// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
if (process.env.VITE_DEV_SERVER_URL) {
await win.loadURL(process.env.VITE_DEV_SERVER_URL)
win.webContents.openDevTools()
} else {
// Load your file
await win.loadFile('dist/index.html');
}
}

app.on('window-all-closed', () => {
app.quit()
win = null
})

app.whenReady().then(createWindow)
Empty file added electron/preload.js
Empty file.
Empty file added electron/preload.ts
Empty file.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://localhost:8098"></script>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>BodySlide + LooksMenu Combine</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "looksmenu-bodyslide-combine",
"description": "Combines Looksmenu and Bodyslide presets into new Looksmenu presets",
"author": "langmans",
"version": "1.0.0",
"private": true,
"license": "MIT",
"main": "dist-electron/main.js",
"scripts": {
"devtools": "./node_modules/.bin/vue-devtools",
"dev": "vite",
"build": "vite build && electron-builder"
},
"dependencies": {},
"devDependencies": {
"@electron/remote": "^2.1.2",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/devtools": "^7.1.3",
"@vueuse/core": "^10.9.0",
"client-zip": "^2.4.5",
"electron": "^30.0.2",
"electron-builder": "^24.13.3",
"file-saver": "^2.0.5",
"primevue": "^3.52.0",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-electron": "^0.28.7",
"vite-plugin-electron-renderer": "^0.14.5",
"vue": "^3.4.27"
}
}
Loading

0 comments on commit bf83d6f

Please sign in to comment.