Skip to content

Commit e6eb6b2

Browse files
committed
restructures
1 parent a703312 commit e6eb6b2

File tree

180 files changed

+132
-26
lines changed

Some content is hidden

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

180 files changed

+132
-26
lines changed

.gitignore

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
51

6-
# local env files
7-
.env.local
8-
.env.*.local
2+
# ---------------- Neutralino JS-----------------------
93

10-
# Log files
11-
npm-debug.log*
12-
yarn-debug.log*
13-
yarn-error.log*
14-
pnpm-debug.log*
4+
# Developer tools' files
5+
.lite_workspace.lua
156

16-
# Editor directories and files
17-
.idea
18-
.vscode
19-
*.suo
20-
*.ntvs*
21-
*.njsproj
22-
*.sln
23-
*.sw?
7+
# Neutralinojs binaries and builds
8+
/bin
9+
/dist
2410

25-
# ---------------------------------------
11+
# Neutralinojs client (minified)
12+
neutralino.js
2613

27-
.tmp
28-
bin
14+
# Neutralinojs related files
15+
.storage
16+
*.log

.tmp/auth_info.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"accessToken":"qZCvEnoqQDtNvTW0WU--IZj5eVrq51gycutshhi7xbXs43uc","port":33777}

neutralino.config.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"applicationId": "js.neutralino.sample",
3+
"version": "1.0.0",
4+
"defaultMode": "window",
5+
"port": 0,
6+
"documentRoot": "/dist/",
7+
"url": "/#/login",
8+
"enableServer": true,
9+
"enableNativeAPI": true,
10+
"tokenSecurity": "one-time",
11+
"logging": {
12+
"enabled": true,
13+
"writeToLogFile": true
14+
},
15+
"nativeAllowList": [
16+
"app.*",
17+
"os.*",
18+
"debug.log"
19+
],
20+
"globalVariables": {
21+
"TEST1": "Hello",
22+
"TEST2": [
23+
2,
24+
4,
25+
5
26+
],
27+
"TEST3": {
28+
"value1": 10,
29+
"value2": {}
30+
}
31+
},
32+
"modes": {
33+
"window": {
34+
"title": "vue-desktop-app",
35+
"width": 800,
36+
"height": 500,
37+
"minWidth": 400,
38+
"minHeight": 200,
39+
"fullScreen": false,
40+
"alwaysOnTop": false,
41+
"icon": "/src/assets/logo.png",
42+
"enableInspector": true,
43+
"borderless": true,
44+
"maximize": false,
45+
"hidden": false,
46+
"center": true,
47+
"resizable": true,
48+
"exitProcessOnClose": true
49+
},
50+
"browser": {
51+
"globalVariables": {
52+
"TEST": "Test value browser"
53+
},
54+
"nativeBlockList": [
55+
"filesystem.*"
56+
]
57+
},
58+
"cloud": {
59+
"url": "/resources/#cloud",
60+
"nativeAllowList": [
61+
"app.*"
62+
]
63+
},
64+
"chrome": {
65+
"width": 800,
66+
"height": 500,
67+
"args": "--user-agent=\"Neutralinojs chrome mode\"",
68+
"nativeBlockList": [
69+
"filesystem.*",
70+
"os.*"
71+
]
72+
}
73+
},
74+
"cli": {
75+
"binaryName": "vue-desktop-app",
76+
"resourcesPath": "/dist/",
77+
"extensionsPath": "/extensions/",
78+
"clientLibrary": "/public/neutralino.js",
79+
"binaryVersion": "4.6.0",
80+
"clientVersion": "3.5.0",
81+
"frontendLibrary": {
82+
"patchFile": "/public/index.html",
83+
"devUrl": "http://localhost:8081/#/app"
84+
}
85+
}
86+
}

public/neutralino.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.

resources/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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?
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

public/index.html renamed to resources/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1818
</noscript>
1919
<div id="app"></div>
20-
<script src="<%= BASE_URL %>neutralino.js"></script>
20+
<script src="http://localhost:33777/neutralino.js"></script>
2121
<!-- built files will be auto injected -->
2222
</body>
2323
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/main.js renamed to resources/src/main.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@ app.use(router);
1818
app.mount("#app");
1919

2020
if (window.Neutralino != undefined) {
21-
window.Neutralino.init();
21+
// eslint-disable-next-line no-inner-declarations
22+
23+
// window.Neutralino.init();
24+
// window.Neutralino.events.on("ready", async () => {
25+
// window.Neutralino.os.showMessageBox("Welcome", "Hello Neutralinojs");
26+
// await window.Neutralino.window.setDraggableRegion(
27+
// document.querySelector(".drag")
28+
// )
29+
// });
30+
2231
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)