1
0
forked from mirror/misskey
🌎 A completely free and open interplanetary microblogging platform 🚀
Go to file
Johann150 804fa33535
refactor: improve code quality (#8751)
* remove unnecessary if

`Array.prototype.some` already returns a boolean so an if to return
true or false is completely unnecessary in this case.

* perf: use count instead of find

When using `count` instead of `findOneBy`, the data is not
unnecessarily loaded.

* remove duplicate null check

The variable is checked for null in the lines above and the function
returns if so. Therefore, it can not be null at this point.

* simplify `getJsonSchema`

Because the assigned value is `null` and the used keys are only
shallow, use of `nestedProperty.set` seems inappropriate. Because the
value is not read, the initial for loop can be replaced by a `for..in`
loop.

Since all keys will be assigned `null`, the condition of the ternary
expression in the nested function will always be true. Therefore the
recursion case will never happen. With this the nested function can be
eliminated.

* remove duplicate condition

The code above already checks `dragging` and returns if it is truthy.
Checking it again later is therefore unnecessary.

To make this more obvious the `return` is removed in favour of using
an if...else construct.

* remove impossible "unknown" time

The `ago` variable will always be a number and all non-negative numbers
are already covered by other cases, the negative case is handled with
`future` so there is no case when `unkown` could be achieved.
2022-05-29 15:15:52 +09:00
.config remove HTTPS handling (#8380) 2022-03-08 23:23:18 +09:00
.github feat(dev): highlight editing of wrong locales 2022-05-24 11:14:00 +02:00
.vscode Update extensions.json 2022-05-14 18:50:16 +09:00
assets Improve README (#8645) 2022-05-18 01:12:00 +09:00
chart chore(dev): use .yaml for prevent okteto error 2022-05-15 22:32:50 +09:00
cypress feat(tests): add e2e tests for widgets (#8735) 2022-05-28 14:28:12 +09:00
docs ドキュメントをmisskey-hubに移管 2021-10-21 23:24:23 +09:00
locales refactor: improve code quality (#8751) 2022-05-29 15:15:52 +09:00
misskey-assets@0179793ec8 藍モード (#7687) 2021-09-04 17:54:24 +09:00
packages refactor: improve code quality (#8751) 2022-05-29 15:15:52 +09:00
scripts feat: Improve Push Notification (#7667) 2022-04-30 21:52:07 +09:00
.dockerignore chore: .configをdockerイメージに入れないように (#7625) 2021-09-13 20:07:39 +09:00
.editorconfig
.gitattributes
.gitignore refactoring 2021-11-12 02:02:25 +09:00
.gitmodules 藍モード (#7687) 2021-09-04 17:54:24 +09:00
.node-version update node to 18 2022-04-23 12:37:44 +09:00
.npmrc
.vsls.json
.yarnrc
CHANGELOG.md Remove require captcha from signin from CHANGELOG (#8748) 2022-05-28 05:49:34 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md chore(dev): tweak text 2022-05-22 14:49:53 +09:00
COPYING Supports Emoji 13.1 (#7539) 2021-05-30 20:52:39 +09:00
crowdin.yml ドキュメントをmisskey-hubに移行 2021-11-05 16:18:52 +09:00
cypress.json fix e2e test 2021-10-28 17:12:57 +09:00
docker-compose.yml feat(dev): okteto integration 2022-05-15 16:39:23 +09:00
Dockerfile Power up (#8684) 2022-05-15 22:22:06 +09:00
gulpfile.js refactor: use Vite to build instead of webpack (#8575) 2022-05-01 22:51:07 +09:00
LICENSE
okteto.yml Power up (#8684) 2022-05-15 22:22:06 +09:00
package.json test: Nodeのカスタムローダーを直してテストが動くように (#8625) 2022-05-14 16:10:20 +09:00
Procfile
README.md enhance: clearly link documentation 2022-05-27 23:21:12 +02:00
ROADMAP.md Update ROADMAP.md 2022-03-28 13:38:05 +09:00
SECURITY.md Create SECURITY.md 2021-05-24 05:50:45 +09:00
yarn.lock chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#8708) 2022-05-21 16:45:42 +09:00

Misskey logo

🌎 Misskey is an open source, decentralized social media platform that's free forever! 🚀


find an instance create an instance become a contributor join the community become a patron

Features

  • ActivityPub support
    Not on Misskey? No problem! Not only can Misskey instances talk to each other, but you can make friends with people on other networks like Mastodon and Pixelfed!
  • Reactions
    You can add emoji reactions to any post! No longer are you bound by a like button, show everyone exactly how you feel with the tap of a button.
  • Drive
    With Misskey's built in drive, you get cloud storage right in your social media, where you can upload any files, make folders, and find media from posts you've made!
  • Rich Web UI
    Misskey has a rich and easy to use Web UI! It is highly customizable, from changing the layout and adding widgets to making custom themes. Furthermore, plugins can be created using AiScript, an original programming language.
  • And much more...

Documentation

Misskey Documentation can be found at Misskey Hub, some of the links and graphics above also lead to specific portions of it.

Sponsors

RSS3