Files
danbooru/package.json
evazion b3a4c7aa43 posts: rewrite tag counter widget in React.
Rewrite the tag counter widget (the one above the tag edit box) to use
React. This is a trial run for using React elsewhere.

We actually use Preact instead of React because it's lighter weight.
We use Mobx for state management because it's cleaner than React's
setState or useState.

This incidentally fixes a couple bugs:

* The tag counter wasn't updated when deleting tags with backspace
* The tag counter wasn't updated when pasting in new tags.
2020-08-02 16:48:45 -05:00

50 lines
1.5 KiB
JSON

{
"license": "MIT",
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@fortawesome/fontawesome-free": "^5.11.2",
"@rails/ujs": "^6.0.2-1",
"@rails/webpacker": "^5.0.0",
"dropzone": "^5.5.1",
"hammerjs": "^2.0.8",
"jquery": "3.5.1",
"jquery-hotkeys": "^0.2.2",
"jquery-ui": "^1.12.1",
"mobx": "^5.15.4",
"mobx-react": "^6.2.5",
"preact": "^10.4.6",
"rails-erb-loader": "^5.5.0",
"spark-md5": "^3.0.0",
"tippy.js": "^6.2.3",
"typeface-anton": "^0.0.72",
"typeface-archivo-narrow": "^1.0.0",
"typeface-ibm-plex-mono": "^0.0.61",
"typeface-indie-flower": "^0.0.72",
"typeface-lora": "^0.0.72",
"typeface-petit-formal-script": "^0.0.72",
"typeface-rokkitt": "^1.0.0",
"typeface-unifrakturmaguntia": "^0.0.72",
"typopro-web": "^4.2.2",
"webpack-cli": "^3.3.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.0.0",
"eslint-loader": "^4.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-ignore-erb": "^0.1.1",
"stylelint": "^13.0.0",
"stylelint-config-standard": "^20.0.0",
"webpack-dev-server": "^3.8.0"
},
"browserslist": [
"defaults",
"since 2012"
],
"scripts": {
"eslint-all": "yarn run eslint --plugin eslint-plugin-ignore-erb --ext .js,.js.erb app/javascript/src/javascripts",
"stylelint-all": "yarn run stylelint 'app/javascript/src/styles/**/*.scss'"
}
}