Skip to content

Commit 9d4f5b3

Browse files
committed
added the ui
1 parent bae594e commit 9d4f5b3

File tree

81 files changed

+45937
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+45937
-7
lines changed

.DS_Store

2 KB
Binary file not shown.

electron_app/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?
24+
25+
#Electron-builder output
26+
/dist_electron

electron_app/.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "third_party/vue-toast-notification"]
2+
url = https://github.com/divamgupta/vue-toast-notification
3+
path = third_party/vue-toast-notification
4+
[submodule "liner_core"]
5+
path = liner_core
6+
url = https://github.com/divamgupta/liner-core
7+
[submodule "third_party/annotate2d"]
8+
path = third_party/annotate2d
9+
url = https://github.com/repalash/annotate2d

electron_app/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Liner Electron App
2+
3+
## Project setup
4+
```
5+
git submodule update --init --recursive
6+
cd third_party/vue-toast-notification
7+
npm install
8+
npm run build
9+
cd ../..
10+
npm install
11+
12+
```
13+
14+
### Compiles and hot-reloads for development
15+
```
16+
npm run serve:ui # running the UI elements
17+
npm run electron:serve # run via electron
18+
```
19+
20+
### Compiles and minifies for production
21+
```
22+
npm run build
23+
npm run electron:build
24+
```
25+
26+
for building for production set env `APPLE_ID` and `APPLE_ID_PASSWORD`
27+
28+
### Lints and fixes files
29+
30+
```
31+
npm run lint
32+
```
33+
34+
### Customize configuration
35+
See [Configuration Reference](https://cli.vuejs.org/config/).

electron_app/afterSignHook.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
require('dotenv').config();
2+
const fs = require('fs');
3+
const path = require('path');
4+
var electron_notarize = require('electron-notarize');
5+
6+
module.exports = async function (params) {
7+
if (process.platform !== 'darwin') {
8+
return;
9+
}
10+
11+
console.log('afterSign hook triggered', params);
12+
13+
let appId = 'com.linerai.liner'
14+
15+
let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
16+
if (!fs.existsSync(appPath)) {
17+
console.log('skip');
18+
return;
19+
}
20+
21+
console.log(`Notarizing ${appId} found at ${appPath}`);
22+
23+
try {
24+
await electron_notarize.notarize({
25+
appBundleId: appId,
26+
appPath: appPath,
27+
appleId: process.env.APPLE_ID,
28+
appleIdPassword: process.env.APPLE_ID_PASSWORD,
29+
});
30+
} catch (error) {
31+
console.error(error);
32+
}
33+
34+
console.log(`Done notarizing ${appId}`);
35+
};

electron_app/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

electron_app/build/Icon-1024.png

257 KB
Loading

electron_app/build/Icon-128.png

8.4 KB
Loading

electron_app/build/Icon-256.png

25.9 KB
Loading

electron_app/build/Icon-32.png

1.14 KB
Loading

0 commit comments

Comments
 (0)