Merge pull request #62 from transfem-org/develop
fix: background overlaying
This commit is contained in:
commit
89d1da5bcf
11 changed files with 186 additions and 54 deletions
96
.github/workflows/package.yml
vendored
Normal file
96
.github/workflows/package.yml
vendored
Normal file
|
@ -0,0 +1,96 @@
|
|||
name: Publish prebuild
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- stable
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_binaries:
|
||||
name: Build & ship binaries
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
python-version: [3.11.x]
|
||||
if: github.repository == 'transfem-org/Sharkey'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v4.1.0
|
||||
with:
|
||||
lfs: true
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4.7.1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Cache APT Packages
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.3.0
|
||||
with:
|
||||
packages: "build-essential binfmt-support qemu-user-static ffmpeg tini curl libjemalloc-dev libjemalloc2 uuid-dev libx11-dev libxkbfile-dev execstack libgconf-2-4 libsecret-1-dev"
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: v1-npm-deps-
|
||||
|
||||
- uses: MOZGIII/install-ldid-action@v1
|
||||
with:
|
||||
tag: v2.1.5-procursus2
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
pnpm install
|
||||
npm install -g pkg
|
||||
npm install -g rollup
|
||||
npm install -g @rollup/plugin-node-resolve
|
||||
pnpm run build
|
||||
cd packages/backend
|
||||
mkdir dist
|
||||
rollup ./built/boot/entry.js --file ./dist/bundle.js --format cjs -p @rollup/plugin-node-resolve
|
||||
pkg --debug --public ./dist/bundle.js --targets latest-linuxstatic-x64,latest-linuxstatic-arm64,latest-macos-x64,latest-macos-arm64,latest-win-x64
|
||||
ls
|
||||
- name: Upload linux x64
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: sharkey-linux-x64
|
||||
path: packages/backend/bundle-linuxstatic-x64
|
||||
- name: Upload linux arm64
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: sharkey-linux-arm64
|
||||
path: packages/backend/bundle-linuxstatic-arm64
|
||||
- name: Upload mac arm64
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: sharkey-macos-arm64
|
||||
path: packages/backend/bundle-macos-arm64
|
||||
- name: Upload mac x64
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: sharkey-macos-arm64
|
||||
path: packages/backend/bundle-macos-x64
|
||||
- name: Upload Windows
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: sharkey-win-x64.exe
|
||||
path: packages/backend/bundle-win-x64.exe
|
||||
|
6
.github/workflows/pr-preview-deploy.yml
vendored
6
.github/workflows/pr-preview-deploy.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
|||
github.event.client_payload.slash_command.sha != '' &&
|
||||
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha)
|
||||
steps:
|
||||
- uses: actions/github-script@v6.3.3
|
||||
- uses: actions/github-script@v6.4.1
|
||||
id: check-id
|
||||
env:
|
||||
number: ${{ github.event.client_payload.pull_request.number }}
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
|
||||
return check[0].id;
|
||||
|
||||
- uses: actions/github-script@v6.3.3
|
||||
- uses: actions/github-script@v6.4.1
|
||||
env:
|
||||
check_id: ${{ steps.check-id.outputs.result }}
|
||||
details_url: ${{ github.server_url }}/${{ github.repository }}/runs/${{ github.run_id }}
|
||||
|
@ -72,7 +72,7 @@ jobs:
|
|||
timeout: 15m
|
||||
|
||||
# Update check run called "integration-fork"
|
||||
- uses: actions/github-script@v6.3.3
|
||||
- uses: actions/github-script@v6.4.1
|
||||
id: update-check-run
|
||||
if: ${{ always() }}
|
||||
env:
|
||||
|
|
2
.github/workflows/pr-preview-destroy.yml
vendored
2
.github/workflows/pr-preview-destroy.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
destroy-preview-environment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v6.3.3
|
||||
- uses: actions/github-script@v6.4.1
|
||||
id: check-conclusion
|
||||
env:
|
||||
number: ${{ github.event.number }}
|
||||
|
|
4
.github/workflows/test-frontend.yml
vendored
4
.github/workflows/test-frontend.yml
vendored
|
@ -108,12 +108,12 @@ jobs:
|
|||
wait-on: 'http://localhost:61812'
|
||||
headed: true
|
||||
browser: ${{ matrix.browser }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: ${{ matrix.browser }}-cypress-screenshots
|
||||
path: cypress/screenshots
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
name: ${{ matrix.browser }}-cypress-videos
|
||||
|
|
25
.github/workflows/welcome.yml
vendored
Normal file
25
.github/workflows/welcome.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Welcome
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened]
|
||||
issues:
|
||||
types: [opened]
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1.2.0
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: |
|
||||
👋 @{{ author }}
|
||||
Thanks for opening your first issue here! If you are reporting a bug, please make sure to include steps on how to reproduce it! :D
|
||||
|
||||
pr-message: |
|
||||
👋 @{{ author }}
|
||||
Thanks for opening this pull request! We will review it as soon as we can :3
|
||||
Please check out our contributing guidelines in the meantime.
|
||||
|
||||
# FIRST_PR_MERGED: |
|
||||
# 🎉 @{{ author }}
|
||||
# Congrats on getting your first pull request merged! We are proud of you :3 ❤️
|
|
@ -61,6 +61,7 @@ services:
|
|||
# volumes:
|
||||
# - ./meili_data:/meili_data
|
||||
|
||||
|
||||
networks:
|
||||
shonk:
|
||||
web:
|
||||
|
|
|
@ -164,6 +164,8 @@ flagAsBot: "Botとして設定"
|
|||
flagAsBotDescription: "このアカウントがプログラムによって運用される場合は、このフラグをオンにします。オンにすると、反応の連鎖を防ぐためのフラグとして他の開発者に役立ったり、Sharkeyのシステム上での扱いがBotに合ったものになります。"
|
||||
flagAsCat: "にゃああああああああああああああ!!!!!!!!!!!!"
|
||||
flagAsCatDescription: "にゃにゃにゃ??"
|
||||
flagSpeakAsCat: "猫語で話す"
|
||||
flagSpeakAsCatDescription: "有効にすると、あなたの投稿の 「な」を「にゃ」にします。"
|
||||
flagShowTimelineReplies: "タイムラインにノートへの返信を表示する"
|
||||
flagShowTimelineRepliesDescription: "オンにすると、タイムラインにユーザーのノート以外にもそのユーザーの他のノートへの返信を表示します。"
|
||||
autoAcceptFollowed: "フォロー中ユーザーからのフォロリクを自動承認"
|
||||
|
|
|
@ -163,6 +163,8 @@ flagAsBot: "Botにするで"
|
|||
flagAsBotDescription: "もしこのアカウントをプログラム使うて運用するんやったら、このフラグをオンにしてや。オンにすれば、反応がバーッて連鎖せんように開発者が使うたり、Sharkeyのシステム上での扱いがBotに合ったもんになるからな。"
|
||||
flagAsCat: "Catやで"
|
||||
flagAsCatDescription: "ワレ、猫ちゃんならこのフラグをつけてみ?"
|
||||
flagSpeakAsCat: "猫語で話すで"
|
||||
flagSpeakAsCatDescription: "有効にすると、あなたの投稿の 「な」を「にゃ」にするでー。"
|
||||
flagShowTimelineReplies: "タイムラインにノートへの返信を表示するで"
|
||||
flagShowTimelineRepliesDescription: "オンにしたら、タイムラインにユーザーのノートの他にもそのユーザーの他のノートへの返信を表示するで。"
|
||||
autoAcceptFollowed: "フォローしとるユーザーからのフォローリクエストを勝手に許可しとく"
|
||||
|
|
|
@ -27,8 +27,11 @@ const logger = new Logger('core', 'cyan');
|
|||
const clusterLogger = logger.createSubLogger('cluster', 'orange', false);
|
||||
const ev = new Xev();
|
||||
|
||||
//#region Events
|
||||
// We wrap this in a main function, that gets called,
|
||||
// because not all platforms support top level await :/
|
||||
|
||||
async function main() {
|
||||
//#region Events
|
||||
// Listen new workers
|
||||
cluster.on('fork', worker => {
|
||||
clusterLogger.debug(`Process forked: [${worker.id}]`);
|
||||
|
@ -64,17 +67,14 @@ process.on('uncaughtException', err => {
|
|||
process.on('exit', code => {
|
||||
logger.info(`The process is going to exit with code ${code}`);
|
||||
});
|
||||
|
||||
//#endregion
|
||||
|
||||
if (cluster.isPrimary || envOption.disableClustering) {
|
||||
await masterMain();
|
||||
|
||||
if (cluster.isPrimary) {
|
||||
ev.mount();
|
||||
}
|
||||
}
|
||||
|
||||
if (cluster.isWorker || envOption.disableClustering) {
|
||||
await workerMain();
|
||||
}
|
||||
|
@ -84,3 +84,6 @@ if (cluster.isWorker || envOption.disableClustering) {
|
|||
if (process.send) {
|
||||
process.send('ok');
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
|
@ -355,8 +355,8 @@ onUnmounted(() => {
|
|||
pointer-events: none;
|
||||
filter: blur(8px) opacity(0.6);
|
||||
// Funny CSS schenanigans to make background escape container
|
||||
top: -100%;
|
||||
left: -100%;
|
||||
top: -100%;
|
||||
right: -100%;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
|
|
@ -185,6 +185,7 @@ defineExpose({
|
|||
width: 500px;
|
||||
height: 100vh;
|
||||
background: var(--accent);
|
||||
z-index: 1;
|
||||
|
||||
> .banner {
|
||||
position: absolute;
|
||||
|
@ -213,6 +214,8 @@ defineExpose({
|
|||
|
||||
> .header {
|
||||
background: var(--panel);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
> .wide {
|
||||
line-height: 50px;
|
||||
|
|
Loading…
Reference in a new issue