diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..3a5e1be3d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + allow: + - dependency-name: "@snapshot-labs/*" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + ignore: + - dependency-name: "@snapshot-labs/*" + groups: + production-dependencies: + dependency-type: "production" + development-dependencies: + dependency-type: "development" diff --git a/package.json b/package.json index 884db5058..340a42c39 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@shutter-network/shutter-crypto": "0.1.0-beta.3", "@snapshot-labs/lock": "^0.2.0", "@snapshot-labs/pineapple": "^1.1.0", - "@snapshot-labs/snapshot.js": "^0.8.0", + "@snapshot-labs/snapshot.js": "^0.8.1", "@snapshot-labs/tune": "^0.1.34", "@vue/apollo-composable": "4.0.0-beta.4", "@vueuse/core": "^10.4.0", diff --git a/src/locales/default.json b/src/locales/default.json index e795725c3..a1cd7869b 100644 --- a/src/locales/default.json +++ b/src/locales/default.json @@ -877,30 +877,6 @@ "shareOfVotingPower": "Share of voting power", "votingPowerPerDay": "Voting power per day" }, - "comment_box": { - "title": "Comment box", - "add": "Add your comment here", - "submit": "Submit", - "preview": "Preview", - "continue_editing": "Continue editing", - "edit": "Edit your reply here", - "edit_button": "Edit", - "dismiss": "Dismiss", - "delete": "Delete", - "add_reply": "Add your reply here", - "edit_comment": "Edit comment", - "edit_modal": "Are you sure you want to edit?", - "yes": "Yes", - "no": "No", - "delete_comment": "Delete comment", - "delete_modal": "Are you sure you want to delete?", - "error": "Oops, something went wrong", - "replies": "replies", - "hide": "Hide", - "show": "Show", - "reply": "Reply", - "load_more": "Load more" - }, "metaInfo": { "home": { "title": "Snapshot - Where decisions get made", diff --git a/src/plugins/commentBox/Proposal.vue b/src/plugins/commentBox/Proposal.vue deleted file mode 100644 index c7d73a0b3..000000000 --- a/src/plugins/commentBox/Proposal.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/plugins/commentBox/components/Comment.vue b/src/plugins/commentBox/components/Comment.vue deleted file mode 100644 index a8a79f6f4..000000000 --- a/src/plugins/commentBox/components/Comment.vue +++ /dev/null @@ -1,227 +0,0 @@ - - - - - {{ $t('comment_box.edit_comment') }} - - - {{ $t('comment_box.edit_modal') }} - - - {{ $t('comment_box.yes') }} - {{ - $t('comment_box.no') - }} - - - - - - {{ comment }} - - - {{ buttonName }} - - - {{ - togglePreview - ? $t('comment_box.preview') - : $t('comment_box.continue_editing') - }} - - - {{ $t('comment_box.dismiss') }} - - - diff --git a/src/plugins/commentBox/components/CommentBlock.vue b/src/plugins/commentBox/components/CommentBlock.vue deleted file mode 100644 index 40721a46a..000000000 --- a/src/plugins/commentBox/components/CommentBlock.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - - {{ $t('comment_box.delete_comment') }} - - - {{ $t('comment_box.delete_modal') }} - - - {{ $t('comment_box.yes') }} - {{ - $t('comment_box.no') - }} - - - - - - - - - - - - - - - - - {{ item.markdown }} - - - - - {{ $t('comment_box.reply') }} - - - - - diff --git a/src/plugins/commentBox/components/CustomBlock.vue b/src/plugins/commentBox/components/CustomBlock.vue deleted file mode 100644 index 672f72908..000000000 --- a/src/plugins/commentBox/components/CustomBlock.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - {{ comment }} - - - - {{ $t(`comment_box.submit`) }} - - - {{ - togglePreview - ? $t(`comment_box.preview`) - : $t(`comment_box.continue_editing`) - }} - - - - - - - - diff --git a/src/plugins/commentBox/components/ListReply.vue b/src/plugins/commentBox/components/ListReply.vue deleted file mode 100644 index a0f017d9d..000000000 --- a/src/plugins/commentBox/components/ListReply.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - {{ showIt ? $t('comment_box.hide') : $t('comment_box.show') }} - {{ $t('comment_box.replies') }} ({{ allReply.length }}) - - - - - - - - {{ $t('comment_box.load_more') }}... - - - diff --git a/src/plugins/commentBox/components/ReplyBlock.vue b/src/plugins/commentBox/components/ReplyBlock.vue deleted file mode 100644 index 9b9a47f33..000000000 --- a/src/plugins/commentBox/components/ReplyBlock.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - - {{ $t('comment_box.delete_comment') }} - - - {{ $t('comment_box.delete_modal') }} - - - {{ $t('comment_box.yes') }} - {{ $t('comment_box.no') }} - - - - - - - - - - - - - - - - - {{ item.markdown }} - - - - {{ $t('comment_box.reply') }} - - - - diff --git a/src/plugins/commentBox/plugin.json b/src/plugins/commentBox/plugin.json deleted file mode 100644 index 5ddacd1b1..000000000 --- a/src/plugins/commentBox/plugin.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Comment Box", - "version": "0.0.1", - "author": "spiritbro1", - "website": "https://github.com/snapshot-labs/snapshot/tree/master/src/plugins/commentBox", - "icon": "ipfs://QmWpLpFpeQ3iH69uCeXXAfLu56YaL9mNESMGfeJ5XSpkhY" -} diff --git a/vite.config.ts b/vite.config.ts index 220f758bf..837f982ad 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -82,6 +82,12 @@ export default defineConfig({ optimizeDeps: { esbuildOptions: { target: 'esnext' + }, + exclude: ['@snapshot-labs/tune'] + }, + server: { + watch: { + ignored: ['!**/node_modules/@snapshot-labs/tune/**'] } } }); diff --git a/yarn.lock b/yarn.lock index 0de41d4d7..c0653ffa1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1309,10 +1309,10 @@ dependencies: ofetch "^1.3.3" -"@snapshot-labs/snapshot.js@^0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.8.0.tgz#f440c60a34cdc886d9bfc9f578278bb14ee0aa21" - integrity sha512-FnTwofZuI57l2n7+krYGIYh7LkF955ItM6T+vsAH7gaVSUlMWYcA3tGOcgsj0STwjge3Y8JwgUsfPf3SadOYow== +"@snapshot-labs/snapshot.js@^0.8.1": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.8.1.tgz#1bd8e939ec354dde89fbe284366bd11e8103c0c6" + integrity sha512-TTKfMBMaf+jQqpgsPezQ6pz5d3IXqO4z2P+Kwfa5W9Noz4+XfrvOHo2ADl4TuCBp922EvF7bfxLQVvKAakQZPA== dependencies: "@ensdomains/eth-ens-namehash" "^2.0.15" "@ethersproject/abi" "^5.6.4"
{{ $t('comment_box.edit_modal') }}
{{ $t('comment_box.delete_modal') }}