This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0
master
yutent 2022-08-29 00:43:21 +08:00
parent cabfa462a4
commit 55bdea11bb
3 changed files with 4 additions and 8 deletions

View File

@ -19,10 +19,6 @@
"music-metadata": "^7.5.0", "music-metadata": "^7.5.0",
"sqlite3": "^5.0.0" "sqlite3": "^5.0.0"
}, },
"devDependencies": {
"electron": "^10.0.0",
"electron-builder": "^22.1.0"
},
"build": { "build": {
"appId": "top.yutent.sonist", "appId": "top.yutent.sonist",
"productName": "Sonist", "productName": "Sonist",

View File

@ -8,13 +8,13 @@ import Anot from '/js/lib/anot.js'
import '/js/lib/scroll/index.js' import '/js/lib/scroll/index.js'
import Keyboard from '/js/lib/keyboard/index.js' import Keyboard from '/js/lib/keyboard/index.js'
import app from '/js/lib/socket.js' // import app from '/js/lib/socket.js'
import fetch from '/js/lib/fetch/index.js' import fetch from '/js/lib/fetch/index.js'
import Api from '/js/api.js' import Api from '/js/api.js'
import Player from '/js/lib/audio/index.js' import Player from '/js/lib/audio/index.js'
const id3 = require('music-metadata') // const id3 = require('music-metadata')
const MODE_DICT = { 1: 'all', 2: 'single', 3: 'random' } const MODE_DICT = { 1: 'all', 2: 'single', 3: 'random' }

View File

@ -23,13 +23,13 @@ exports.createMainWindow = function(icon) {
resizable: false, resizable: false,
maximizable: false, maximizable: false,
icon, icon,
transparent: true, // transparent: true,
vibrancy: 'dark', vibrancy: 'dark',
visualEffectState: 'active', visualEffectState: 'active',
webPreferences: { webPreferences: {
webSecurity: false, webSecurity: false,
experimentalFeatures: true, experimentalFeatures: true,
nodeIntegration: true preload: '../js/lib/socket.js'
}, },
show: false show: false
}) })