-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-branch 'misskey/develop'
- Loading branch information
Showing
279 changed files
with
9,870 additions
and
873 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/cherrypick-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/cherrypick-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 | ||
- cherrypick-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] | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"packages/frontend-shared", | ||
"packages/frontend", | ||
"packages/frontend-embed", | ||
"packages/backend", | ||
"packages/sw", | ||
"packages/cherrypick-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
Oops, something went wrong.