NET 8 Upgrade (#687)

* Initial .NET8 Upgrade

* Initial GitHub Actions Cleanup

* Fix Desktop Notifications

* Fix throw warning

* Upgrade vunerable transative nuget packages

* Fix warnings with registry overflow

* Adjust async/await usage for configRepository

* Fix TTS voice name and app auto start

* Install .NET 8 with setup

I regret NSIS

* Remove no longer needed System/MS references (included in dotnet sdk)

* Surpress stackalloc in loop warning, that code scares me.

* Removed unused SharpDX packages

* Ignore WebClient warning, hopefully this project doesn't move past NET 8

* Fixed terrifying code

* GenerateAssemblyInfo

* Trimmed editor config to only silence warning.

* Fix open webpage

* Fix updater

---------

Co-authored-by: DubyaDude <ushafiq141@gmail.com>
Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
Ethan Cordray
2023-11-21 07:41:57 -05:00
committed by GitHub
parent 7bb5c8ea45
commit 2e9db3153d
26 changed files with 796 additions and 736 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1677,7 +1677,7 @@ html
el-tooltip(placement="right" :content="$t('dialog.launch.copy_tooltip')" :disabled="hideTooltips")
el-button(@click="copyInstanceMessage(launchDialog.location)" size="mini" icon="el-icon-s-order" style="margin-right:5px" circle)
template(#footer)
el-checkbox(v-model="launchDialog.desktop" style="float:left;margin-top:5px") {{ $t('dialog.launch.start_as_desktop') }}
el-checkbox(v-model="launchDialog.desktop" @change="saveLaunchDialog" style="float:left;margin-top:5px") {{ $t('dialog.launch.start_as_desktop') }}
el-button(size="small" @click="showPreviousInstanceInfoDialog(launchDialog.location)") {{ $t('dialog.launch.info') }}
el-button(size="small" @click="showInviteDialog(launchDialog.location)" :disabled="!checkCanInvite(launchDialog.location)") {{ $t('dialog.launch.invite') }}
el-button(type="primary" size="small" @click="launchGame(launchDialog.location, launchDialog.shortName, launchDialog.desktop)" :disabled="!launchDialog.secureOrShortName") {{ $t('dialog.launch.launch') }}

View File

@@ -823,7 +823,7 @@
"role_updated_at": "更新日:",
"role_created_at": "作成日:",
"role_permissions": "権限:"
},
},
"posts": {
"header": "アナウンス",
"visibility": "表示範囲:",

View File

@@ -801,7 +801,7 @@
"invite_to_group": "邀请好友加入群组",
"visibility_everyone": "可见性:所有人",
"visibility_friends": "可见性:好友",
"visibility_hidden": "可见性:隐藏",
"visibility_hidden": "可见性:隐藏",
"moderation_tools": "成员管理",
"leave": "离开群组"
},

View File

@@ -13,7 +13,7 @@ async function syncLoop() {
await sqliteService.executeNonQuery('BEGIN');
try {
for (var key of dirtyKeySet) {
var value = sharedRepository.getString(key);
var value = await sharedRepository.getString(key);
if (value === null) {
await sqliteService.executeNonQuery(
'DELETE FROM configs WHERE `key` = @key',
@@ -54,9 +54,9 @@ class ConfigRepository extends SharedRepository {
syncLoop();
}
remove(key) {
async remove(key) {
var _key = transformKey(key);
sharedRepository.remove(_key);
await sharedRepository.remove(_key);
dirtyKeySet.add(_key);
}
@@ -65,10 +65,10 @@ class ConfigRepository extends SharedRepository {
return sharedRepository.getString(_key, defaultValue);
}
setString(key, value) {
async setString(key, value) {
var _key = transformKey(key);
var _value = String(value);
sharedRepository.setString(_key, _value);
await sharedRepository.setString(_key, _value);
dirtyKeySet.add(_key);
}
}

View File

@@ -10,35 +10,35 @@ class SharedRepository {
return SharedVariable.Remove(_key);
}
getString(key, defaultValue = null) {
async getString(key, defaultValue = null) {
var _key = transformKey(key);
var value = SharedVariable.Get(_key);
var value = await SharedVariable.Get(_key);
if (value === null) {
return defaultValue;
}
return value;
}
setString(key, value) {
async setString(key, value) {
var _key = transformKey(key);
var _value = String(value);
SharedVariable.Set(_key, _value);
await SharedVariable.Set(_key, _value);
}
getBool(key, defaultValue = null) {
var value = this.getString(key, null);
async getBool(key, defaultValue = null) {
var value = await this.getString(key, null);
if (value === null) {
return defaultValue;
}
return value === 'true';
}
setBool(key, value) {
this.setString(key, value ? 'true' : 'false');
async setBool(key, value) {
await this.setString(key, value ? 'true' : 'false');
}
getInt(key, defaultValue = null) {
var value = this.getString(key, null);
async getInt(key, defaultValue = null) {
var value = await this.getString(key, null);
if (value === null) {
return defaultValue;
}
@@ -49,12 +49,12 @@ class SharedRepository {
return value;
}
setInt(key, value) {
this.setString(key, value);
async setInt(key, value) {
await this.setString(key, value);
}
getFloat(key, defaultValue = null) {
var value = this.getString(key, null);
async getFloat(key, defaultValue = null) {
var value = await this.getString(key, null);
if (value === null) {
return defaultValue;
}
@@ -65,12 +65,12 @@ class SharedRepository {
return value;
}
setFloat(key, value) {
this.setString(key, value);
async setFloat(key, value) {
await this.setString(key, value);
}
getObject(key, defaultValue = null) {
var value = this.getString(key, null);
async getObject(key, defaultValue = null) {
var value = await this.getString(key, null);
if (value === null) {
return defaultValue;
}
@@ -83,20 +83,20 @@ class SharedRepository {
return value;
}
setObject(key, value) {
this.setString(key, JSON.stringify(value));
async setObject(key, value) {
await this.setString(key, JSON.stringify(value));
}
getArray(key, defaultValue = null) {
var value = this.getObject(key, null);
async getArray(key, defaultValue = null) {
var value = await this.getObject(key, null);
if (Array.isArray(value) === false) {
return defaultValue;
}
return value;
}
setArray(key, value) {
this.setObject(key, value);
async setArray(key, value) {
await this.setObject(key, value);
}
}