forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into re-ed25519
- Loading branch information
Showing
288 changed files
with
9,945 additions
and
1,218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
paths: | ||
- packages/backend/** | ||
- packages/frontend/** | ||
- packages/frontend-shared/** | ||
- packages/frontend-embed/** | ||
- packages/sw/** | ||
- packages/misskey-js/** | ||
- packages/shared/eslint.config.js | ||
|
@@ -16,6 +18,8 @@ on: | |
paths: | ||
- packages/backend/** | ||
- packages/frontend/** | ||
- packages/frontend-shared/** | ||
- packages/frontend-embed/** | ||
- packages/sw/** | ||
- packages/misskey-js/** | ||
- packages/shared/eslint.config.js | ||
|
@@ -40,15 +44,18 @@ jobs: | |
needs: [pnpm_install] | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
env: | ||
eslint-cache-version: v1 | ||
strategy: | ||
matrix: | ||
workspace: | ||
- backend | ||
- frontend | ||
- frontend-shared | ||
- frontend-embed | ||
- sw | ||
- misskey-js | ||
env: | ||
eslint-cache-version: v1 | ||
eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint-${{ matrix.workspace }} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -64,11 +71,10 @@ jobs: | |
- name: Restore eslint cache | ||
uses: actions/[email protected] | ||
with: | ||
path: node_modules/.cache/eslint | ||
key: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}- | ||
- run: pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content | ||
path: ${{ env.eslint-cache-path }} | ||
key: eslint-${{ env.eslint-cache-version }}-${{ matrix.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: eslint-${{ env.eslint-cache-version }}-${{ matrix.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}- | ||
- run: pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location ${{ env.eslint-cache-path }} --cache-strategy content | ||
|
||
typecheck: | ||
needs: [pnpm_install] | ||
|
@@ -78,6 +84,7 @@ jobs: | |
matrix: | ||
workspace: | ||
- backend | ||
- sw | ||
- misskey-js | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -92,7 +99,7 @@ jobs: | |
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- run: pnpm --filter misskey-js run build | ||
if: ${{ matrix.workspace == 'backend' }} | ||
if: ${{ matrix.workspace == 'backend' || matrix.workspace == 'sw' }} | ||
- run: pnpm --filter misskey-reversi run build | ||
if: ${{ matrix.workspace == 'backend' }} | ||
- run: pnpm --filter ${{ matrix.workspace }} run typecheck |
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 |
---|---|---|
|
@@ -44,6 +44,7 @@ compose.yml | |
/build | ||
built | ||
built-test | ||
js-built | ||
/data | ||
/.cache-loader | ||
/db | ||
|
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
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 |
---|---|---|
|
@@ -8,7 +8,9 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"packages/frontend-shared", | ||
"packages/frontend", | ||
"packages/frontend-embed", | ||
"packages/backend", | ||
"packages/sw", | ||
"packages/misskey-js", | ||
|
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,31 @@ | ||
/* | ||
* SPDX-FileCopyrightText: syuilo and misskey-project | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
//@ts-check | ||
(() => { | ||
/** @type {NodeListOf<HTMLIFrameElement>} */ | ||
const els = document.querySelectorAll('iframe[data-misskey-embed-id]'); | ||
|
||
window.addEventListener('message', function (event) { | ||
els.forEach((el) => { | ||
if (event.source !== el.contentWindow) { | ||
return; | ||
} | ||
|
||
const id = el.dataset.misskeyEmbedId; | ||
|
||
if (event.data.type === 'misskey:embed:ready') { | ||
el.contentWindow?.postMessage({ | ||
type: 'misskey:embedParent:registerIframeId', | ||
payload: { | ||
iframeId: id, | ||
} | ||
}, '*'); | ||
} | ||
if (event.data.type === 'misskey:embed:changeHeight' && event.data.iframeId === id) { | ||
el.style.height = event.data.payload.height + 'px'; | ||
} | ||
}); | ||
}); | ||
})(); |
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
Oops, something went wrong.