Skip to content

Commit

Permalink
Merge branch 'master' into taiyme_original
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-TENSHI authored Nov 12, 2024
2 parents 704634f + 00d14ba commit f8533b0
Show file tree
Hide file tree
Showing 77 changed files with 5,002 additions and 2,649 deletions.
123 changes: 40 additions & 83 deletions .github/workflows/check-spdx-license-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,115 +4,72 @@ on:
push:
branches:
- taiyme
- develop
- release
paths:
- .github/workflows/check-spdx-license-id.yaml
- cypress/e2e/**/*
- packages/**/*
- scripts/**/*

pull_request_target:
branches:
- taiyme
- release
paths:
- cypress/e2e/**/*
- packages/**/*
- scripts/**/*

permissions:
contents: read
- master
pull_request:

jobs:
pre-checkout:
name: Pre checkout
uses: ./.github/workflows/pre-checkout.yaml

check-spdx-license-id:
name: Check SPDX-License-Identifier
runs-on: ubuntu-22.04
needs:
- pre-checkout
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ needs.pre-checkout.outputs.sha }}
fetch-depth: 1

- name: Check SPDX-License-Identifier
uses: actions/[email protected]
- name: Check
run: |
counter=0
search() {
local directory="$1"
if [[ ! -d "$directory" ]]; then
return 0
fi
find "$directory" -type f \
\( \
-name '*.html' -or \
-name '*.scss' -or \
-name '*.css' -or \
-name '*.vue' \
\) -or \
\( \
\( \
-name '*.ts' -or \
-name '*.js' -or \
-name '*.mjs' -or \
-name '*.cjs' \
\) -and \( \
-not -name '*.config.*' \
\) \
\)
'(' \
-name "*.cjs" -and -not -name '*.config.cjs' -o \
-name "*.html" -o \
-name "*.js" -and -not -name '*.config.js' -o \
-name "*.mjs" -and -not -name '*.config.mjs' -o \
-name "*.scss" -o \
-name "*.ts" -and -not -name '*.config.ts' -o \
-name "*.vue" \
')' -and \
-not -name '*eslint*'
}
check() {
local file="$1"
if ! (
grep -q 'SPDX-FileCopyrightText: ' "$file" &&
grep -q 'SPDX-License-Identifier: ' "$file"
grep -q "SPDX-FileCopyrightText: syuilo and misskey-project" "$file" ||
grep -q "SPDX-License-Identifier: AGPL-3.0-only" "$file"
); then
echo "::error file=${file},line=0::Missing SPDX-License-Identifier"
echo "Missing: $file"
((counter++))
fi
}
directories=(
'cypress/e2e'
'packages/backend/migration'
'packages/backend/src'
'packages/backend/test'
'packages/backend/test-federation'
'packages/backend/test-server'
'packages/frontend/.storybook'
'packages/frontend/@types'
'packages/frontend/lib'
'packages/frontend/public'
'packages/frontend/src'
'packages/frontend/test'
'packages/frontend-embed/@types'
'packages/frontend-embed/src'
'packages/frontend-shared/@types'
'packages/frontend-shared/js'
'packages/misskey-bubble-game/src'
'packages/misskey-reversi/src'
'packages/sw/src'
'scripts'
"cypress/e2e"
"packages/backend/migration"
"packages/backend/src"
"packages/backend/test"
"packages/frontend-shared/@types"
"packages/frontend-shared/js"
"packages/frontend/.storybook"
"packages/frontend/@types"
"packages/frontend/lib"
"packages/frontend/public"
"packages/frontend/src"
"packages/frontend/test"
"packages/frontend-embed/@types"
"packages/frontend-embed/src"
"packages/misskey-bubble-game/src"
"packages/sw/src"
"scripts"
)
for directory in "${directories[@]}"; do
for file in $(search "$directory"); do
for file in $(search $directory); do
check "$file"
done
done
if [ "$counter" -gt 0 ]; then
echo "::error::SPDX-License-Identifier is missing in ${counter} file(s)."
if [ $counter -gt 0 ]; then
echo "SPDX-License-Identifier is missing in $counter files."
exit 1
else
echo '::notice::SPDX-License-Identifier is certainly described in all target file(s)!'
echo "SPDX-License-Identifier is certainly described in all target files!"
exit 0
fi
53 changes: 53 additions & 0 deletions .github/workflows/vrtl-docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Push VRTL Misskey Docker Image

on:
push:
tags:
- 'v*-vrtl.*'

env:
DOCKER_REGISTRY_NAME: ghcr.io
DOCKER_IMAGE_NAME: anatawa12/vrtl-misskey

jobs:
build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker hub
uses: docker/login-action@v1
with:
registry: ${{ env.DOCKER_REGISTRY_NAME }}
username: ${{ github.repository_owner }}
password: ${{ github.token }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.DOCKER_REGISTRY_NAME }}/${{ env.DOCKER_IMAGE_NAME }}

- name: Build & Push
uses: docker/build-push-action@v2
env:
DOCKER_BUILDKIT: 1
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ env.DOCKER_REGISTRY_NAME }}/${{ env.DOCKER_IMAGE_NAME }}:latest
build-args: BUILDKIT_INLINE_CACHE=1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ run.bat
api-docs.json
*.log
/redis

.DS_Store
/files
ormconfig.json
Expand Down
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
"github.vscode-github-actions",
"redhat.vscode-yaml",
],

}

1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
],
},
}

25 changes: 25 additions & 0 deletions CHANGELOG-VRTL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CHANGELOG about VRTL

VRTLのブランチで行われた変更点をまとめています

<!-- VV Please add changelog here VV -->

--- 2024.9.0-vrtl.1 released at this time ---

--- 2024.8.0-vrtl.1 released at this time ---

- fix(frontend): VRTL VSTLの名前が表示されないところがある問題 (anatawa12#97) - 2024/08/07
- fic(frontend): VRTL VSTLでリプライのトグルが表示されない問題 (anatawa12#92) - 2024/08/04

--- 2024.7.0-vrtl.1 released at this time ---

--- 2024.5.0-vrtl.2 released at this time ---

- chore(backend): VRTL参加サーバーの取得に失敗したときのリトライの間隔を短く
- feat: VRTL/VSTLに連合なし投稿を含めるかを選択可能に
- もともとのVRTL/VSTLでは連合なし投稿が常に含まれていましたが、正しくVRTL/VSTLのノートを表現するために含めないようにできるようになりました
- VSTLの場合、連合なし投稿を含めないようにしてもフォローしている人の連合なし投稿は表示されます
- fix(frontend): ウィジェットでVRTL/VSTLが使用できない問題を修正
- fix(backend): 自分自身に対するリプライがwithReplies = falseなVRTL/VSTLにて含まれていない問題を修正
- feat(backend): `vmimiRelayTimelineImplemented``disableVmimiRelayTimeline` nodeinfo に追加しました
- これによりサードパーティクライアントがVRTLの有無を認知できるようになりました。
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# taiyme (taiy fork)
# 信濃式taiyme改 (SHINANO taiyme fork)

[taiyme](https://github.com/taiyme/misskey)は、[Misskey](https://github.com/misskey-dev/misskey)から派生したオープンソースのソフトウェアです
[信濃式taiyme改](https://github.com/DA-TENSHI/VRTL_with_taiyme)[taiyme](https://github.com/taiyme/misskey)より派生したフォークです

## 機能のリクエスト・問題の報告

GitHubのアカウントをお持ちの方は [Issue](https://github.com/taiyme/misskey/issues) を、それ以外の方は [リクエストフォーム](https://forms.gle/pwBVN29KnJbbs7Gk9) をご利用ください
なんかIssueとかよくわからんので[しなのあれぐれっどのアカウント](https://misskey.shinanomai.xyz/@SHINANOMAI)または[mail(mailtoリンク)]([email protected])

## 支援について

[Patreon](https://www.patreon.com/taiy) もしくは <https://u.taiy.me/donate> を参照してください。
いつか自分で鯖弄れるようになったら解禁するかも
11 changes: 7 additions & 4 deletions idea/MkDisableSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<div :class="[$style.root]">
<div :inert="disabled" :class="[{ [$style.disabled]: disabled }]">
<slot></slot>
<div :class="[$style.root]">
<div :inert="disabled" :class="[{ [$style.disabled]: disabled }]">
<slot></slot>
</div>
<div v-if="disabled" :class="[$style.cover]"></div>
</div>

<div v-if="disabled" :class="[$style.cover]"></div>
</div>
</template>
Expand Down Expand Up @@ -41,4 +44,4 @@ defineProps<{
);
--c: rgb(from var(--MI_THEME-error) r g b / 0.25);
}
</style>
</style>
3 changes: 3 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,7 @@ _initialTutorial:
local: "You can view notes from all users on this server."
social: "Notes from the Home and Local timelines will be displayed."
global: "You can view notes from all connected servers."
vmimi: "Notes from Virtual Kemomimi Relay and local will be displayed."
description2: "You can switch between timelines at the top of the screen at any time."
description3: "Additionally, there are list timelines and channel timelines. For more details, please refer to {link}."
_postNote:
Expand Down Expand Up @@ -1414,6 +1415,7 @@ _timelineDescription:
local: "In the Local timeline, you can see notes from all users on this server."
social: "The Social timeline displays notes from both the Home and Local timelines."
global: "In the Global timeline, you can see notes from all connected servers."
vmimi: "In the Vmimi Timeline, you can see notes from the Virtual Kemomimi Relay and local timelines."
_serverRules:
description: "A set of rules to be displayed before registration. Setting a summary of the Terms of Service is recommended."
_serverSettings:
Expand Down Expand Up @@ -2305,6 +2307,7 @@ _timelines:
local: "Local"
social: "Social"
global: "Global"
vmimi: "Vmimi"
_play:
new: "Create Play"
edit: "Edit Play"
Expand Down
32 changes: 32 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4826,6 +4826,10 @@ export interface Locale extends ILocale {
* TLに現在フォロー中の人全員の返信を含めないようにする
*/
readonly "hideRepliesToOthersInTimelineAll": string;
/**
* TLに連合なし投稿を含める
*/
readonly "showLocalOnlyInTimeline": string;
/**
* この操作は元に戻せません。本当にTLに現在フォロー中の人全員の返信を含めるようにしますか?
*/
Expand Down Expand Up @@ -5519,6 +5523,14 @@ export interface Locale extends ILocale {
* 接続している他のすべてのサーバーからの投稿を見られます。
*/
readonly "global": string;
/**
* VirtualKemomimiリレーに参加しているサーバーからの投稿を見られます。
*/
readonly "vmimi": string;
/**
* Vみみタイムラインの投稿とホームタイムラインの投稿が両方表示されます。
*/
readonly "vmimiHybrid": string;
/**
* それぞれのタイムラインは、画面上部でいつでも切り替えられます。
*/
Expand Down Expand Up @@ -5656,6 +5668,14 @@ export interface Locale extends ILocale {
* グローバルタイムラインでは、接続している他のすべてのサーバーからの投稿を見られます。
*/
readonly "global": string;
/**
* ぶいみみリレータイムラインでは、バーチャルケモミミリレーサーバーに参加しているサーバーのユーザー全員の投稿を見られます。
*/
readonly "vmimi-relay": string;
/**
* ぶいみみソーシャルタイムラインには、ホームタイムラインとぶいみみリレータイムラインの投稿が両方表示されます。
*/
readonly "vmimi-relay-social": string;
};
readonly "_serverRules": {
/**
Expand Down Expand Up @@ -6795,6 +6815,10 @@ export interface Locale extends ILocale {
* ローカルタイムラインの閲覧
*/
readonly "ltlAvailable": string;
/**
* ぶいみみリレータイムラインの閲覧
*/
readonly "vrtlAvailable": string;
/**
* パブリック投稿の許可
*/
Expand Down Expand Up @@ -8974,6 +8998,14 @@ export interface Locale extends ILocale {
* グローバル
*/
readonly "global": string;
/**
* ぶいみみリレー
*/
readonly "vmimi-relay": string;
/**
* ぶいみみソーシャル
*/
readonly "vmimi-relay-social": string;
};
readonly "_play": {
/**
Expand Down
Loading

0 comments on commit f8533b0

Please sign in to comment.