-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * Update maps.ts * wip * wip * wip * wip * Update base.vue * wip * wip * wip * wip * Update link.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update privacy.vue * wip * wip * wip * wip * Update range.vue * wip * wip * wip * wip * Update profile.vue * wip * Update a.vue * Update index.vue * wip * Update sidebar.vue * wip * wip * Update account-info.vue * Update a.vue * wip * wip * Update sounds.vue * wip * wip * wip * wip * wip * wip * wip * wip * Update account-info.vue * Update account-info.vue * wip * wip * wip * Update d-persimmon.json5 * wip
- Loading branch information
Showing
106 changed files
with
4,472 additions
and
1,717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {MigrationInterface, QueryRunner} from "typeorm"; | ||
|
||
export class instanceImages1605965516823 implements MigrationInterface { | ||
name = 'instanceImages1605965516823' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "meta" ADD "backgroundImageUrl" character varying(512)`); | ||
await queryRunner.query(`ALTER TABLE "meta" ADD "logoImageUrl" character varying(512)`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "logoImageUrl"`); | ||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "backgroundImageUrl"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {MigrationInterface, QueryRunner} from "typeorm"; | ||
|
||
export class noCrawle1606191203881 implements MigrationInterface { | ||
name = 'noCrawle1606191203881' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "user_profile" ADD "noCrawle" boolean NOT NULL DEFAULT false`); | ||
await queryRunner.query(`COMMENT ON COLUMN "user_profile"."noCrawle" IS 'Whether reject index by crawler.'`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`COMMENT ON COLUMN "user_profile"."noCrawle" IS 'Whether reject index by crawler.'`); | ||
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "noCrawle"`); | ||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// 常にメモリにロードしておく必要がないような設定情報を保管するストレージ | ||
|
||
const PREFIX = 'miux:'; | ||
|
||
export const defaultDeviceSettings = { | ||
sound_masterVolume: 0.3, | ||
sound_note: { type: 'syuilo/down', volume: 1 }, | ||
sound_noteMy: { type: 'syuilo/up', volume: 1 }, | ||
sound_notification: { type: 'syuilo/pope2', volume: 1 }, | ||
sound_chat: { type: 'syuilo/pope1', volume: 1 }, | ||
sound_chatBg: { type: 'syuilo/waon', volume: 1 }, | ||
sound_antenna: { type: 'syuilo/triple', volume: 1 }, | ||
sound_channel: { type: 'syuilo/square-pico', volume: 1 }, | ||
sound_reversiPutBlack: { type: 'syuilo/kick', volume: 0.3 }, | ||
sound_reversiPutWhite: { type: 'syuilo/snare', volume: 0.3 }, | ||
}; | ||
|
||
export const device = { | ||
get<T extends keyof typeof defaultDeviceSettings>(key: T): typeof defaultDeviceSettings[T] { | ||
// TODO: indexedDBにする | ||
// ただしその際はnullチェックではなくキー存在チェックにしないとダメ | ||
// (indexedDBはnullを保存できるため、ユーザーが意図してnullを格納した可能性がある) | ||
const value = localStorage.getItem(PREFIX + key); | ||
if (value == null) { | ||
return defaultDeviceSettings[key]; | ||
} else { | ||
return JSON.parse(value); | ||
} | ||
}, | ||
|
||
set(key: keyof typeof defaultDeviceSettings, value: any): any { | ||
localStorage.setItem(PREFIX + key, JSON.stringify(value)); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<div class="rbusrurv" :class="{ wide: forceWide }" v-size="{ max: [400] }"> | ||
<slot></slot> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
props: { | ||
forceWide: { | ||
type: Boolean, | ||
required: false, | ||
default: false, | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.rbusrurv { | ||
line-height: 1.4em; | ||
background: var(--bg); | ||
padding: 32px; | ||
&:not(.wide).max-width_400px { | ||
padding: 32px 0; | ||
> ::v-deep(*) { | ||
._formPanel { | ||
border: solid 0.5px var(--divider); | ||
border-radius: 0; | ||
border-left: none; | ||
border-right: none; | ||
} | ||
._form_group { | ||
> * { | ||
&:not(:first-child) { | ||
&._formPanel, ._formPanel { | ||
border-top: none; | ||
} | ||
} | ||
&:not(:last-child) { | ||
&._formPanel, ._formPanel { | ||
border-bottom: solid 0.5px var(--divider); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.