no message
This commit is contained in:
parent
c55ff4f17f
commit
9e1dd940b8
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
||||
/public/.user.ini
|
||||
/storage/*.key
|
||||
/vendor
|
||||
/build
|
||||
/tmp
|
||||
._*
|
||||
.env
|
||||
|
25
nativefier.js
vendored
Normal file
25
nativefier.js
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
const nativefier = require('nativefier').default;
|
||||
const config = require('./package.json');
|
||||
|
||||
const options = {
|
||||
name: config.name,
|
||||
version: config.version,
|
||||
targetUrl: 'http://127.0.0.1:2222',
|
||||
arch: 'arm64',
|
||||
out: './build',
|
||||
icon: './resources/assets/statics/public/images/logo-app.png',
|
||||
clearCache: false,
|
||||
disableDevTools: false,
|
||||
disableContextMenu: false,
|
||||
fileDownloadOptions: {
|
||||
saveAs: true,
|
||||
},
|
||||
};
|
||||
|
||||
nativefier(options, function (error, appPath) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('App has been nativefied to', appPath);
|
||||
}
|
||||
});
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "DooTask",
|
||||
"version": "0.0.2",
|
||||
"description": "DooTask is task management system",
|
||||
"scripts": {
|
||||
"dev": "npm run development",
|
||||
"development": "mix",
|
||||
@ -19,6 +21,7 @@
|
||||
"laravel-mix": "^6.0.6",
|
||||
"lodash": "^4.17.19",
|
||||
"moment": "^2.29.1",
|
||||
"nativefier": "^44.0.4",
|
||||
"node-sass": "^4.11.0",
|
||||
"postcss": "^8.1.14",
|
||||
"resolve-url-loader": "^4.0.0",
|
||||
|
4
resources/assets/js/store/actions.js
vendored
4
resources/assets/js/store/actions.js
vendored
@ -1412,7 +1412,9 @@ export default {
|
||||
// 更新对话列表
|
||||
if (dialog) {
|
||||
// 新增未读数
|
||||
if (data.userid !== state.userId) dialog.unread++;
|
||||
if (data.userid !== state.userId && state.dialogMsgs.findIndex(({id}) => id == data.id) === -1) {
|
||||
dialog.unread++;
|
||||
}
|
||||
// 移动到首位
|
||||
dispatch("moveDialogTop", dialog_id);
|
||||
}
|
||||
|
BIN
resources/assets/statics/public/images/logo-app.icns
Normal file
BIN
resources/assets/statics/public/images/logo-app.icns
Normal file
Binary file not shown.
BIN
resources/assets/statics/public/images/logo-app.png
Normal file
BIN
resources/assets/statics/public/images/logo-app.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Loading…
x
Reference in New Issue
Block a user