Skip to content

Commit

Permalink
18+ tag, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Dec 4, 2024
1 parent 068ba47 commit 32a16eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7036,7 +7036,7 @@ speechSynthesis.getVoices();
};

$app.methods.addFriendship = function (id) {
if (!this.friendLogInitStatus || this.friendLog.has(id)) {
if (!this.friendLogInitStatus || this.friendLog.has(id) || id === API.currentUser.id) {
return;
}
var ref = API.cachedUsers.get(id);
Expand Down
5 changes: 5 additions & 0 deletions html/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,11 @@ i.x-user-status.busy {
border-color: #ff4177 !important;
}

.x-tag-age-verification {
color: #ff4177 !important;
border-color: #ff4177 !important;
}

.x-grey {
color: #909399;
}
Expand Down
3 changes: 2 additions & 1 deletion html/src/mixins/dialogs/userDialog.pug
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ mixin userDialog()
el-tag.x-tag-troll(v-if="userDialog.ref.$isTroll" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") Nuisance
el-tag.x-tag-troll(v-if="userDialog.ref.$isProbableTroll" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") Almost Nuisance
el-tag.x-tag-vip(v-if="userDialog.ref.$isModerator" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ $t('dialog.user.tags.vrchat_team') }}
el-tag.x-tag-vrcplus(v-if="userDialog.ref.$isVRCPlus" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") VRC+
el-tag.x-tag-platform-pc(v-if="userDialog.ref.last_platform === 'standalonewindows'" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") PC
el-tag.x-tag-platform-quest(v-else-if="userDialog.ref.last_platform === 'android'" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") Android
el-tag.x-tag-platform-ios(v-else-if="userDialog.ref.last_platform === 'ios'" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") iOS
el-tag.x-tag-platform-other(v-else-if="userDialog.ref.last_platform" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ userDialog.ref.last_platform }}
el-tag.x-tag-age-verification(v-if="userDialog.ref.ageVerificationStatus && userDialog.ref.ageVerificationStatus !== 'hidden'" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") {{ userDialog.ref.ageVerificationStatus }}
el-tag.x-tag-vrcplus(v-if="userDialog.ref.$isVRCPlus" type="info" effect="plain" size="mini" style="margin-right:5px;margin-top:5px") VRC+
el-tag.name(v-if="userDialog.ref.$customTag" type="info" effect="plain" size="mini" v-text="userDialog.ref.$customTag" :style="{'color':userDialog.ref.$customTagColour, 'border-color':userDialog.ref.$customTagColour}" style="margin-right:5px;margin-top:5px")
div(style="margin-top:5px")
span(v-text="userDialog.ref.statusDescription" style="font-size:12px")
Expand Down
4 changes: 4 additions & 0 deletions html/src/repository/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class Database {
async initUserTables(userId) {
Database.userId = userId;
Database.userPrefix = userId.replaceAll('-', '').replaceAll('_', '');
// Fix escape, add underscore if prefix starts with a number
if (Database.userPrefix.match(/^\d/)) {
Database.userPrefix = '_' + Database.userPrefix;
}
await sqliteService.executeNonQuery(
`CREATE TABLE IF NOT EXISTS ${Database.userPrefix}_feed_gps (id INTEGER PRIMARY KEY, created_at TEXT, user_id TEXT, display_name TEXT, location TEXT, world_name TEXT, previous_location TEXT, time INTEGER, group_name TEXT)`
);
Expand Down

0 comments on commit 32a16eb

Please sign in to comment.