Compare commits

...

18 commits

Author SHA1 Message Date
8f513ee7d1 Merge upstream release 2022-08-16 06:08:32 +00:00
d56c0f3708 Merge pull request 'develop' (#9031) from develop into main
Reviewed-on: https://codeberg.org/thatonecalculator/calckey/pulls/9031
2022-08-16 00:31:09 +02:00
665524b622 feat: 🔖 .1 2022-08-15 15:25:58 -07:00
d604f79cbf yarn lock 2022-08-15 15:25:15 -07:00
c80577c709 Merge remote-tracking branch 'misskey/develop' into develop 2022-08-15 15:21:46 -07:00
syuilo
dddc076d01 update deps 2022-08-13 18:45:29 +09:00
あずき⪥™
c97dc7fe93
feat: show header with current user avatar on TL (#9051)
* feat: show header with current user avatar on TL

* refactor(client): use displayMyAvatar prop instead of metadata

* refactor(client): prefer v-if to `display: none;`
2022-08-13 17:41:17 +09:00
nvisser
8a09de6b28
Add following badge to user preview popup (#9048) 2022-08-13 14:26:51 +09:00
563280abe1 fix: 📦 Fix yarn.lock 2022-08-12 21:43:11 -07:00
546f4a4b44 Avoid adding instance's custom CSS to git patches :) (#9023) 2022-08-10 23:26:15 +02:00
erisdisqordia
bed7fe6a4e Avoid adding custom CSS to git patches :) 2022-08-10 10:18:10 +02:00
e1b9406b95 docs: 📝 warning for node 18.6.0 2022-08-10 00:50:50 -07:00
31729a28d6 docs: 📝 planning join reasons 2022-08-10 00:04:32 -07:00
ea97c9f5d2 docs: 📝 emojis! 2022-08-09 23:40:36 -07:00
72b7a33d3b docs: 📝 checksum behavior note 2022-08-09 23:28:41 -07:00
fb0765ba76 docs: 📝 Customize instructions 2022-08-09 23:18:00 -07:00
0e7c01d56f docs: 📝 Notable differences 2022-08-09 23:16:12 -07:00
a7600dff54 docs: 📝 Add links 2022-08-09 23:14:51 -07:00
10 changed files with 1212 additions and 971 deletions

View file

@ -15,6 +15,7 @@
- Non-nyaify cat mode
- Timeline filters
- Filter notifications by user
- Join Reason system like Mastodon/Pleroma
- Build flag to remove NSFW/AI stuff
- [Rat mode?](https://stop.voring.me/notes/933fx97bmd)

View file

@ -9,6 +9,11 @@
You should also include the user name that made the change.
-->
## 12.x.x (unreleased)
### Improvements
- Client: Add following badge to user preview popup @nvisser
## 12.118.1 (2022/08/08)
### Bugfixes

View file

@ -28,23 +28,33 @@
- Calckey adds many quality of life changes and bug fixes for users and instance admins alike.
- Read **[this document](./CALCKEY.md)** all for current and future differences.
- Notable differences:
- Improved UI/UX, notifications, security, and more
- Recommended Instances timeline
- Improved notifications
- Many more user and admin settings
</div>
<div style="clear: both;"></div>
# 🥂 Links
- 💸 Liberapay: https://liberapay.com/ThatOneCalculator
- 💁 Matrix support room: https://matrix.to/#/#calckey:matrix.fedibird.com
- 📜 Instance list: https://calckey.fediverse.observer/list
- 📖 JoinFediverse Wiki: https://joinfediverse.wiki/What_is_Calckey%3F
# 📝 Documentation
- Misskey documentation can be found on [Misskey Hub](https://misskey-hub.net/)
- To make a new Calckey instance, read their documentation for building from source or using Docker, but replace their repo link (`https://github.com/misskey-dev/misskey.git`) with `https://codeberg.org/thatonecalculator/calckey.git`.
- API reference can be found on any Calckey instance's [API doc page](https://stop.voring.me/api-doc)
# 🚚 Migrating from Misskey to Calckey
You need at least 🐢 NodeJS v16.15.0 (v18.4.0 recommended!) and *exactly* 🧶 Yarn v3.2.2!
> ⚠️ Please don't use NodeJS v18.6.0, as it's known to cause problems.
## 📩 Install dependencies
```sh
@ -65,8 +75,8 @@ cp ../misskey/.config/default.yml ./.config/default.yml # replace `../misskey/`
## 💅 Customize
- To add custom CSS for all users, edit `/custom/instance.css`.
- To add static assets (such as images for the splash screen), place them in the `/custom/` folder. They'll then be avaliable on `https://yourinstance.tld/static-assets/filename.png`.
- To add custom CSS for all users, edit `./custom/instance.css`.
- To add static assets (such as images for the splash screen), place them in the `./custom/` directory. They'll then be avaliable on `https://yourinstance.tld/static-assets/filename.ext`.
## 🚀 Build and launch!
@ -74,7 +84,7 @@ cp ../misskey/.config/default.yml ./.config/default.yml # replace `../misskey/`
```sh
# git pull
yarn install
yarn install # prepend `YARN_CHECKSUM_BEHAVIOR=update` if it doesn't work
NODE_ENV=production yarn run build && yarn run migrate
# Edit service to point to calckey folder and restart!
```
@ -86,7 +96,3 @@ NODE_ENV=production yarn run build && yarn run migrate
sudo docker-compose build
sudo docker-compose stop && sudo docker-compose up -d
```
# 💸 Patrons
None yet! You can support of the development of this fork here, every little bit counts: https://liberapay.com/ThatOneCalculator/

View file

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.118.1-eris",
"version": "12.118.1-calc.1",
"codename": "aqua",
"repository": {
"type": "git",
@ -56,9 +56,9 @@
"devDependencies": {
"@types/gulp": "4.0.9",
"@types/gulp-rename": "2.0.1",
"@typescript-eslint/parser": "5.31.0",
"@typescript-eslint/parser": "5.33.0",
"cross-env": "7.0.3",
"cypress": "10.3.1",
"cypress": "10.4.0",
"start-server-and-test": "1.14.0",
"typescript": "4.7.4",
"vue-eslint-parser": "^9.0.2"

View file

@ -17,24 +17,24 @@
"@tensorflow/tfjs-node": "3.19.0"
},
"dependencies": {
"@bull-board/koa": "4.1.1",
"@bull-board/koa": "4.2.2",
"@discordapp/twemoji": "14.0.2",
"@elastic/elasticsearch": "7.17.0",
"@koa/cors": "3.3.0",
"@koa/multer": "3.0.0",
"@koa/router": "9.4.0",
"@peertube/http-signature": "1.6.0",
"@koa/router": "9.0.1",
"@peertube/http-signature": "1.7.0",
"@sinonjs/fake-timers": "9.1.2",
"@syuilo/aiscript": "0.11.1",
"ajv": "8.11.0",
"archiver": "5.3.1",
"autobind-decorator": "2.4.0",
"autwh": "0.1.0",
"aws-sdk": "2.1185.0",
"aws-sdk": "2.1194.0",
"bcryptjs": "2.4.3",
"blurhash": "1.1.5",
"bull": "4.8.5",
"cacheable-lookup": "6.0.4",
"cacheable-lookup": "6.1.0",
"cbor": "8.1.0",
"chalk": "5.0.1",
"chalk-template": "0.4.0",
@ -46,9 +46,9 @@
"deep-email-validator": "0.1.21",
"escape-regexp": "0.0.1",
"feed": "4.2.2",
"file-type": "17.1.4",
"file-type": "17.1.6",
"fluent-ffmpeg": "2.1.2",
"got": "12.3.0",
"got": "12.3.1",
"hpagent": "0.1.2",
"ioredis": "4.28.5",
"ip-cidr": "3.0.10",
@ -75,13 +75,13 @@
"multer": "1.4.4",
"nested-property": "4.0.0",
"node-fetch": "3.2.10",
"nodemailer": "6.7.7",
"nodemailer": "6.7.8",
"nsfwjs": "2.4.1",
"oauth": "^0.9.15",
"os-utils": "0.0.14",
"parse5": "7.0.0",
"pg": "8.7.3",
"private-ip": "2.3.3",
"private-ip": "2.3.4",
"probe-image-size": "7.2.3",
"promise-limit": "2.7.0",
"pug": "3.0.2",
@ -105,13 +105,13 @@
"stringz": "2.1.0",
"summaly": "2.7.0",
"syslog-pro": "1.0.0",
"systeminformation": "5.12.1",
"systeminformation": "5.12.5",
"tinycolor2": "1.4.2",
"tmp": "0.2.1",
"ts-loader": "9.3.1",
"ts-node": "10.9.1",
"tsc-alias": "1.7.0",
"tsconfig-paths": "4.0.0",
"tsconfig-paths": "4.1.0",
"twemoji-parser": "14.0.0",
"typeorm": "0.3.7",
"ulid": "2.3.0",
@ -123,14 +123,14 @@
"xev": "3.0.2"
},
"devDependencies": {
"@redocly/openapi-core": "1.0.0-beta.105",
"@redocly/openapi-core": "1.0.0-beta.106",
"@types/bcryptjs": "2.4.2",
"@types/bull": "3.15.9",
"@types/cbor": "6.0.0",
"@types/escape-regexp": "0.0.1",
"@types/fluent-ffmpeg": "2.1.20",
"@types/js-yaml": "4.0.5",
"@types/jsdom": "16.2.14",
"@types/jsdom": "20.0.0",
"@types/jsonld": "1.5.6",
"@types/jsrsasign": "10.5.2",
"@types/koa": "2.13.5",
@ -145,9 +145,9 @@
"@types/koa__multer": "2.0.4",
"@types/koa__router": "8.0.11",
"@types/mocha": "9.1.1",
"@types/node": "18.6.3",
"@types/node": "18.7.2",
"@types/node-fetch": "3.0.3",
"@types/nodemailer": "6.4.4",
"@types/nodemailer": "6.4.5",
"@types/oauth": "0.9.1",
"@types/pug": "2.0.6",
"@types/punycode": "2.1.0",
@ -157,8 +157,8 @@
"@types/redis": "4.0.11",
"@types/rename": "1.0.4",
"@types/sanitize-html": "2.6.2",
"@types/semver": "7.3.10",
"@types/sharp": "0.30.4",
"@types/semver": "7.3.12",
"@types/sharp": "0.30.5",
"@types/sinonjs__fake-timers": "8.1.2",
"@types/speakeasy": "2.0.7",
"@types/tinycolor2": "1.4.3",
@ -167,10 +167,10 @@
"@types/web-push": "3.3.2",
"@types/websocket": "1.0.5",
"@types/ws": "8.5.3",
"@typescript-eslint/eslint-plugin": "5.31.0",
"@typescript-eslint/parser": "5.31.0",
"@typescript-eslint/eslint-plugin": "5.33.0",
"@typescript-eslint/parser": "5.33.0",
"cross-env": "7.0.3",
"eslint": "8.20.0",
"eslint": "8.21.0",
"eslint-plugin-import": "2.26.0",
"execa": "6.1.0",
"form-data": "^4.0.0",

View file

@ -13,14 +13,14 @@
"@rollup/plugin-json": "4.1.0",
"@rollup/pluginutils": "^4.2.1",
"@syuilo/aiscript": "0.11.1",
"@vitejs/plugin-vue": "3.0.1",
"@vitejs/plugin-vue": "3.0.3",
"@vue/compiler-sfc": "3.2.37",
"autobind-decorator": "2.4.0",
"autosize": "5.0.1",
"blurhash": "1.1.5",
"broadcast-channel": "4.14.0",
"browser-image-resizer": "git+https://github.com/misskey-dev/browser-image-resizer#v2.2.1-misskey.2",
"chart.js": "3.8.2",
"chart.js": "3.9.1",
"chartjs-adapter-date-fns": "2.0.0",
"chartjs-plugin-gradient": "0.5.0",
"chartjs-plugin-zoom": "1.2.1",
@ -42,7 +42,7 @@
"querystring": "0.2.1",
"rndstr": "1.0.0",
"s-age": "1.1.2",
"sass": "1.54.0",
"sass": "1.54.4",
"seedrandom": "3.0.5",
"strict-event-emitter-types": "2.0.0",
"stringz": "2.1.0",
@ -53,12 +53,12 @@
"throttle-debounce": "5.0.0",
"tinycolor2": "1.4.2",
"tsc-alias": "1.7.0",
"tsconfig-paths": "4.0.0",
"tsconfig-paths": "4.1.0",
"twemoji-parser": "14.0.0",
"typescript": "4.7.4",
"uuid": "8.3.2",
"vanilla-tilt": "1.7.2",
"vite": "3.0.4",
"vite": "3.0.7",
"vue": "3.2.37",
"vue-prism-editor": "2.0.0-alpha.2",
"vuedraggable": "4.0.1"
@ -69,20 +69,20 @@
"@types/gulp": "4.0.9",
"@types/gulp-rename": "2.0.1",
"@types/katex": "0.14.0",
"@types/matter-js": "0.17.7",
"@types/matter-js": "0.18.1",
"@types/punycode": "2.1.0",
"@types/seedrandom": "3.0.2",
"@types/throttle-debounce": "5.0.0",
"@types/tinycolor2": "1.4.3",
"@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.31.0",
"@typescript-eslint/parser": "5.31.0",
"@typescript-eslint/eslint-plugin": "5.33.0",
"@typescript-eslint/parser": "5.33.0",
"cross-env": "7.0.3",
"cypress": "10.3.1",
"eslint": "8.20.0",
"cypress": "10.4.0",
"eslint": "8.21.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-vue": "9.3.0",
"rollup": "2.77.2",
"rollup": "2.77.3",
"start-server-and-test": "1.14.0"
}
}

View file

@ -1,5 +1,8 @@
<template>
<div v-if="show" ref="el" class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick">
<div v-if="narrow" class="buttons left">
<MkAvatar v-if="props.displayMyAvatar && $i" class="avatar" :user="$i" :disable-preview="true"/>
</div>
<template v-if="metadata">
<div v-if="!hideTitle" class="titleContainer" @click="showTabsPopup">
<MkAvatar v-if="metadata.avatar" class="avatar" :user="metadata.avatar" :disable-preview="true" :show-indicator="true"/>
@ -41,6 +44,7 @@ import { scrollToTop } from '@/scripts/scroll';
import { i18n } from '@/i18n';
import { globalEvents } from '@/events';
import { injectPageMetadata } from '@/scripts/page-metadata';
import { $i } from '@/account';
type Tab = {
key?: string | null;
@ -59,6 +63,7 @@ const props = defineProps<{
handler: (ev: MouseEvent) => void;
}[];
thin?: boolean;
displayMyAvatar?: boolean;
}>();
const emit = defineEmits<{
@ -197,7 +202,6 @@ onUnmounted(() => {
> .titleContainer {
flex: 1;
margin: 0 auto;
margin-left: var(--height);
> *:first-child {
margin-left: auto;
@ -213,9 +217,24 @@ onUnmounted(() => {
--margin: 8px;
display: flex;
align-items: center;
min-width: var(--height);
height: var(--height);
margin: 0 var(--margin);
&.left {
margin-right: auto;
> .avatar {
$size: 32px;
display: inline-block;
width: $size;
height: $size;
vertical-align: bottom;
margin: 0 8px;
pointer-events: none;
}
}
&.right {
margin-left: auto;
}

View file

@ -2,7 +2,9 @@
<transition :name="$store.state.animation ? 'popup' : ''" appear @after-leave="$emit('closed')">
<div v-if="showing" class="fxxzrfni _popup _shadow" :style="{ zIndex, top: top + 'px', left: left + 'px' }" @mouseover="() => { $emit('mouseover'); }" @mouseleave="() => { $emit('mouseleave'); }">
<div v-if="fetched" class="info">
<div class="banner" :style="user.bannerUrl ? `background-image: url(${user.bannerUrl})` : ''"></div>
<div class="banner" :style="user.bannerUrl ? `background-image: url(${user.bannerUrl})` : ''">
<span v-if="$i && $i.id != user.id && user.isFollowed" class="followed">{{ $ts.followsYou }}</span>
</div>
<MkAvatar class="avatar" :user="user" :disable-preview="true" :show-indicator="true"/>
<div class="title">
<MkA class="name" :to="userPage(user)"><MkUserName :user="user" :nowrap="false"/></MkA>
@ -120,6 +122,16 @@ export default defineComponent({
background-color: rgba(0, 0, 0, 0.1);
background-size: cover;
background-position: center;
> .followed {
position: absolute;
top: 12px;
left: 12px;
padding: 4px 8px;
color: #fff;
background: rgba(0, 0, 0, 0.7);
font-size: 0.7em;
border-radius: 6px;
}
&::after {
content: "";

View file

@ -1,6 +1,6 @@
<template>
<MkStickyContainer>
<template #header><MkPageHeader v-model:tab="src" :actions="headerActions" :tabs="$i ? headerTabs : headerTabsWhenNotLogin"/></template>
<template #header><MkPageHeader v-model:tab="src" :actions="headerActions" :tabs="headerTabs" :display-my-avatar="true"/></template>
<MkSpacer :content-max="800">
<div ref="rootEl" v-hotkey.global="keymap" class="cmuxhskf">
<XTutorial v-if="$store.reactiveState.tutorial.value != -1" class="tutorial _block"/>

2050
yarn.lock

File diff suppressed because it is too large Load diff