mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fixes
This commit is contained in:
parent
31cfe3fb73
commit
bb8319a397
4 changed files with 10 additions and 15 deletions
|
@ -14,6 +14,8 @@ if (is.windows) {
|
|||
app.setAppUserModelId(app.name);
|
||||
};
|
||||
|
||||
storage.setDataPath(app.getPath('userData'));
|
||||
|
||||
const Api = require('./electron/js/api.js');
|
||||
const ConfigManager = require('./electron/js/config.js');
|
||||
const UpdateManager = require('./electron/js/update.js');
|
||||
|
@ -70,16 +72,11 @@ Util.setAppPath(path.join(__dirname));
|
|||
function waitForLibraryAndCreateWindows () {
|
||||
let userDataPath = ConfigManager.config.userDataPath || app.getPath('userData');
|
||||
|
||||
console.log('userDataPath1', userDataPath);
|
||||
|
||||
if (is.development) {
|
||||
userDataPath = path.join(userDataPath, '_dev');
|
||||
};
|
||||
|
||||
console.log('userDataPath2', userDataPath);
|
||||
|
||||
app.setPath('userData', userDataPath);
|
||||
storage.setDataPath(userDataPath);
|
||||
|
||||
if (process.env.ANYTYPE_USE_SIDE_SERVER) {
|
||||
// use the grpc server started from the outside
|
||||
|
|
|
@ -40,6 +40,8 @@ class ConfigManager {
|
|||
this.checkChannel();
|
||||
this.checkTheme();
|
||||
|
||||
console.log(storage);
|
||||
|
||||
console.log('[ConfigManager].set:', this.config);
|
||||
|
||||
storage.set(CONFIG_NAME, this.config, (error) => {
|
||||
|
|
|
@ -84,21 +84,17 @@ class Util {
|
|||
|
||||
dataPath () {
|
||||
const { channel } = ConfigManager.config;
|
||||
const envPath = process.env.DATA_PATH;
|
||||
const dataPath = [];
|
||||
|
||||
if (process.env.DATA_PATH) {
|
||||
this.mkDir(process.env.DATA_PATH);
|
||||
dataPath.push(process.env.DATA_PATH);
|
||||
if (envPath) {
|
||||
this.mkDir(envPath);
|
||||
dataPath.push(envPath);
|
||||
} else {
|
||||
dataPath.push(this.userPath());
|
||||
|
||||
if (is.development) {
|
||||
dataPath.push('dev');
|
||||
} else
|
||||
if ([ 'alpha', 'beta' ].includes(channel)) {
|
||||
if (!is.development && [ 'alpha', 'beta' ].includes(channel)) {
|
||||
dataPath.push(channel);
|
||||
};
|
||||
|
||||
dataPath.push('data');
|
||||
};
|
||||
|
||||
|
|
|
@ -49,9 +49,9 @@ html.bodyIndexIndex, html.bodyAuthOnboard, html.bodyAuthLogin, html.bodyAuthDele
|
|||
#popupSettingsOnboarding-innerWrap {
|
||||
.actionItems, .actionItems .item { border-color: $colorButtonStroke; }
|
||||
.label.small { color: var(--color-text-tertiary); }
|
||||
|
||||
.select { background: $colorButtonStroke; border-color: $colorButtonStroke; }
|
||||
.select {
|
||||
.name { color: var(--color-text-inversion) !important; }
|
||||
.icon.arrow { background-image: url('~img/theme/dark/arrow/select/dark.svg') !important; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue