From e669dc03ccf90fd7abc84f66d12cf21dcae3449b Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Tue, 24 May 2022 12:04:22 +0530 Subject: [PATCH 01/50] cardano added --- package.json | 3 +- src/assets/cardano_128.png | Bin 0 -> 4595 bytes .../CreateProjectSlide.vue | 1 + .../components/EventActionConfig.vue | 6 + src/components/participant/Action.vue | 2 + .../ActionInputs/BlockchainCardano.vue | 121 ++++++++++++++++++ src/views/admin/Events.vue | 2 + 7 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 src/assets/cardano_128.png create mode 100644 src/components/participant/ActionInputs/BlockchainCardano.vue diff --git a/package.json b/package.json index 905826a8..faedcdfa 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "hdkey": "^2.0.1", "js-file-download": "^0.4.12", "marked": "^3.0.8", + "multicoin-address-validator": "^0.5.10", "node-fetch": "^2.6.0", "simple-vue-validator": "^0.16.0", "v-markdown-editor": "^1.2.6", @@ -106,4 +107,4 @@ "last 2 versions", "not ie <= 8" ] -} \ No newline at end of file +} diff --git a/src/assets/cardano_128.png b/src/assets/cardano_128.png new file mode 100644 index 0000000000000000000000000000000000000000..3e04f2e3e05129598a8c339b14c7d1df94287da7 GIT binary patch literal 4595 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 + + + + + + + + +
{{ data.title }}
+
+ + + + {{ data.score }} + + + +
+
+ + + + + + + + + + + + + + + +
+ + + + diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index 2b15b4b1..9eda50d8 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -1076,9 +1076,11 @@ export default { x.type !== "BLOCKCHAIN_AVAX" && x.type !== "BLOCKCHAIN_REEF" && x.type !== "BLOCKCHAIN_TEZ" && + x.type !== "BLOCKCHAIN_CARDANO" && x.type !== "PRIZE_CARD" && x.type !== "PUSH_NOTIFICATION"&& x.type!=="SUMSUB_KYC" + ); const filteredValueList = checkValue(eventActionValue, "value"); if (filteredValueList.includes(false)) { From 5f5a7f94a8ff77bb3177dd45033ba1fb3447d580 Mon Sep 17 00:00:00 2001 From: Vishwas Date: Tue, 24 May 2022 15:44:30 +0530 Subject: [PATCH 02/50] added slug --- .../createProjectSlider/components/GeneralConfig.vue | 10 ++++++++++ src/views/admin/Events.vue | 1 + 2 files changed, 11 insertions(+) diff --git a/src/components/admin/createProjectSlider/components/GeneralConfig.vue b/src/components/admin/createProjectSlider/components/GeneralConfig.vue index b9a88721..c6e8ffca 100644 --- a/src/components/admin/createProjectSlider/components/GeneralConfig.vue +++ b/src/components/admin/createProjectSlider/components/GeneralConfig.vue @@ -108,6 +108,16 @@ +
+
+ +
+
+ +
+
+
diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index 9eda50d8..c8107553 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -417,6 +417,7 @@ export default { refereePoint: 10, referralPoint: 5, tags: [], + slug:"", }, selected: [], tagToSearch: [ From b43bb2b9070b1170b8e8b23959bc5ad172ecd37b Mon Sep 17 00:00:00 2001 From: varsha Date: Tue, 24 May 2022 15:58:55 +0530 Subject: [PATCH 03/50] clonning --- src/views/admin/Events.vue | 78 +++++++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index 2b15b4b1..7e077c6b 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -339,6 +339,12 @@ i { + + + + + + project._id).indexOf(json._id) + this.projects.splice(index, 1) + const tempProject= JSON.parse(localStorage.getItem("userProjects")) + localStorage.removeItem("userProjects") + + tempProject.projects.splice(index, 1); + localStorage.setItem("userProjects", + JSON.stringify({ + projects:tempProject.projects, + count:tempProject.projects.length + }) + ) + if(json){ + if(!resp.ok){ + return this.notifyErr(json); + } else { + this.notifySuccess("Event is deleted successfully"); + } + }else { + throw new Error("Error while deleting event"); + } + }catch(e){ + this.notifyErr(e.message); + } finally { + this.isLoading = false; + } +}, async saveProject() { try { if (this.checkIfEverythingIsFilled() !== true) { @@ -980,7 +1046,6 @@ export default { method, header: headers, }); - if (!this.isProjectEditing) { //// not using this for the time being just to test // this.whitelistingLink = window.location.origin + ( resp.data.slug && resp.data.slug != "" ? "/form/" + resp.data.slug : "/form?projectId=" + resp.data._id ) @@ -1000,8 +1065,16 @@ export default { this.resetAllValues(); if (this.isProjectEditing) { + console.log("projectEditing") await this.fetchProjects(); this.$root.$emit("bv::toggle::collapse", "sidebar-right"); + this.isProjectEditing= false + return; + } + if(this.isProjectClonning){ + console.log("projectClonning") + await this.fetchProjects(); + this.isProjectClonning= false; return; } @@ -1009,6 +1082,7 @@ export default { /// Not removing but handling the condition. const userProjects = JSON.parse(localStorage.getItem("userProjects")); if (userProjects) { + console.log('userProjects') userProjects.count += 1; userProjects.projects.push(resp.data); localStorage.setItem("userProjects", JSON.stringify(userProjects)); From d61c330015e97137b8735ae32fdd493bac0630ef Mon Sep 17 00:00:00 2001 From: vikramide <> Date: Wed, 25 May 2022 13:46:35 +0400 Subject: [PATCH 04/50] initial --- package-lock.json | 273 +++++++++++++++++- .../CreateProjectSlide.vue | 27 ++ .../components/PreviewConfig.vue | 215 ++++++++++++++ 3 files changed, 505 insertions(+), 10 deletions(-) create mode 100644 src/components/admin/createProjectSlider/components/PreviewConfig.vue diff --git a/package-lock.json b/package-lock.json index 3ec88227..ff562da1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hyperfye-frontend", - "version": "v5.0.9", + "version": "v5.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4212,6 +4212,24 @@ "file-uri-to-path": "1.0.0" } }, + "bip39": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.0.4.tgz", + "integrity": "sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw==", + "requires": { + "@types/node": "11.11.6", + "create-hash": "^1.1.0", + "pbkdf2": "^3.0.9", + "randombytes": "^2.0.1" + }, + "dependencies": { + "@types/node": { + "version": "11.11.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz", + "integrity": "sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==" + } + } + }, "blakejs": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.1.1.tgz", @@ -4555,6 +4573,11 @@ "safe-buffer": "^5.0.1" } }, + "browserify-bignum": { + "version": "1.3.0-2", + "resolved": "https://registry.npmjs.org/browserify-bignum/-/browserify-bignum-1.3.0-2.tgz", + "integrity": "sha512-PwVvKC3WIV7ENfsG6VAIDq4R5st6kQt+Fod3WL5l7+MRONClo3J6xGQvRJHHM/ScwcNCH3GfYX5UOCuoNN/rLw==" + }, "browserify-cipher": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", @@ -4697,6 +4720,11 @@ "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" }, + "bundle": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bundle/-/bundle-2.1.0.tgz", + "integrity": "sha512-d7TeT8m2HuymDjSEmMppWe/h5SSPPUZkaWKrAofx6gNXDdZ3FL/81oOTGPG+LIaZbNr9m4rtUi98Yw0Q1vHIIw==" + }, "bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -4931,6 +4959,11 @@ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, + "cbor-js": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cbor-js/-/cbor-js-0.1.0.tgz", + "integrity": "sha512-7sQ/TvDZPl7csT1Sif9G0+MA0I0JOVah8+wWlJVQdVEgIbCzlN/ab3x+uvMNsc34TUvO6osQTAmB2ls80JX6tw==" + }, "chai": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.4.tgz", @@ -5116,7 +5149,6 @@ "version": "4.2.4", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.4.tgz", "integrity": "sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==", - "dev": true, "requires": { "source-map": "~0.6.0" } @@ -5495,8 +5527,7 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "commondir": { "version": "1.0.1", @@ -5981,6 +6012,14 @@ "parse-json": "^4.0.0" } }, + "crc": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", + "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "requires": { + "buffer": "^5.1.0" + } + }, "crc-32": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.1.tgz", @@ -6068,6 +6107,11 @@ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" }, + "css-b64-images": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.5.tgz", + "integrity": "sha1-QgBdgyBLK0pdk7axpWRBM7WSegI=" + }, "css-color-names": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", @@ -6935,6 +6979,39 @@ "domelementtype": "1" } }, + "dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + }, + "dependencies": { + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "requires": { + "tslib": "^2.0.3" + } + }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, "dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -9072,6 +9149,16 @@ "minimalistic-assert": "^1.0.1" } }, + "hdkey": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hdkey/-/hdkey-2.0.1.tgz", + "integrity": "sha512-c+tl9PHG9/XkGgG0tD7CJpRVaE0jfZizDNmnErUAKQ4EjQSOcOUcV3EN9ZEZS8pZ4usaeiiK0H7stzuzna8feA==", + "requires": { + "bs58check": "^2.1.2", + "safe-buffer": "^5.1.1", + "secp256k1": "^4.0.0" + } + }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -9221,6 +9308,50 @@ } } }, + "html-minifier-terser": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", + "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", + "requires": { + "camel-case": "^4.1.1", + "clean-css": "^4.2.3", + "commander": "^4.1.1", + "he": "^1.2.0", + "param-case": "^3.0.3", + "relateurl": "^0.2.7", + "terser": "^4.6.3" + }, + "dependencies": { + "camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + }, + "param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, "html-tags": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz", @@ -10380,6 +10511,11 @@ "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" }, + "js-sha512": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha512/-/js-sha512-0.8.0.tgz", + "integrity": "sha512-PWsmefG6Jkodqt+ePTvBZCSMFgN7Clckjd0O7su3I0+BW2QWUTJNzjktHsztGLhncP2h8mcF9V9Y2Ha59pAViQ==" + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -10627,6 +10763,11 @@ "verror": "1.10.0" } }, + "jssha": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/jssha/-/jssha-2.4.2.tgz", + "integrity": "sha512-/jsi/9C0S70zfkT/4UlKQa5E1xKurDnXcQizcww9JSR/Fv+uIbWM2btG+bFcL3iNoK9jIGS0ls9HWLr1iw0kFg==" + }, "keccak": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.2.tgz", @@ -10933,6 +11074,11 @@ "integrity": "sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA==", "dev": true }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" + }, "lodash.kebabcase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", @@ -10954,8 +11100,7 @@ "lodash.sortby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", - "dev": true + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" }, "lodash.transform": { "version": "4.6.0", @@ -11357,6 +11502,63 @@ } } }, + "minify": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/minify/-/minify-6.0.1.tgz", + "integrity": "sha512-JMG5VruvghXZ1VnPCffnpESUzrhNPTT/uNogew9CmPdd3zmohSEt8/HhPxpR7CiXnBYWExW2gGoagZxTy9rnLg==", + "requires": { + "clean-css": "^4.1.6", + "css-b64-images": "~0.2.5", + "debug": "^4.1.0", + "html-minifier-terser": "^5.1.1", + "terser": "^5.3.2", + "try-to-catch": "^3.0.0" + }, + "dependencies": { + "source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "requires": { + "whatwg-url": "^7.0.0" + } + }, + "terser": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", + "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", + "requires": { + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map": "~0.8.0-beta.0", + "source-map-support": "~0.5.20" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "requires": { + "punycode": "^2.1.0" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + }, + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -11947,6 +12149,22 @@ "varint": "^5.0.0" } }, + "multicoin-address-validator": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/multicoin-address-validator/-/multicoin-address-validator-0.5.10.tgz", + "integrity": "sha512-zHE0/KnXEmohCN6GFJzB51cp9kPwuQ1KXAVkySl5tJ8clj4ydD8ah6aqdduN1XXKHl/ssqt+WCr2A978fnBx+A==", + "requires": { + "base-x": "^3.0.9", + "browserify-bignum": "^1.3.0-2", + "bundle": "^2.1.0", + "cbor-js": "^0.1.0", + "crc": "^3.8.0", + "js-sha512": "^0.8.0", + "jssha": "^2.4.2", + "lodash.isequal": "^4.5.0", + "minify": "^6.0.1" + } + }, "multihashes": { "version": "0.4.21", "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.21.tgz", @@ -16981,6 +17199,39 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" }, + "pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + }, + "dependencies": { + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "requires": { + "tslib": "^2.0.3" + } + }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + } + } + }, "pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", @@ -18488,8 +18739,7 @@ "relateurl": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", - "dev": true + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=" }, "remove-trailing-separator": { "version": "1.1.0", @@ -19477,7 +19727,6 @@ "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -20340,7 +20589,6 @@ "version": "4.8.0", "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", - "dev": true, "requires": { "commander": "^2.20.0", "source-map": "~0.6.1", @@ -20665,6 +20913,11 @@ "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", "dev": true }, + "try-to-catch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/try-to-catch/-/try-to-catch-3.0.1.tgz", + "integrity": "sha512-hOY83V84Hx/1sCzDSaJA+Xz2IIQOHRvjxzt+F0OjbQGPZ6yLPLArMA0gw/484MlfUkQbCpKYMLX3VDCAjWKfzQ==" + }, "tryer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index dcff4580..86b2d1a6 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -334,6 +334,31 @@ + + + Preview + + + + + + + + +
+
+
+
5
+
Your Score
+
+
+
+
+
1
+
Total Users
+
+
+
+
+
6
+
Days Left
+
+
+
+
+
+ +
+
Leaderboard
+
+
+
+
+
+ +
+
+ +
+ +
+ +
+ +
+
+
+ +
+
+
+ Your Profile & Referral +
+
+
+
+
+
+ +
+
+
+ Username +
+
+ Vikram Anand +
+
+
+
+ Email +
+
+ vi**********.com +
+
+
+
+ Your Referral Link +
+
+ https:// ... LmNvbQ== + +
+
+
+
+
+ +
+ +
+
+ + + \ No newline at end of file From e4515813ee9ac38c2ac7a6d1c5620116232f14a2 Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Wed, 25 May 2022 15:21:43 +0530 Subject: [PATCH 05/50] fixed --- .../admin/createProjectSlider/CreateProjectSlide.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index 86b2d1a6..2666c9e0 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -342,7 +342,7 @@ > From 7daa3a5c724832845a191936c26adecf480f2ec4 Mon Sep 17 00:00:00 2001 From: vikramide <> Date: Wed, 25 May 2022 14:47:09 +0400 Subject: [PATCH 06/50] previe-accordion --- .../CreateProjectSlide.vue | 84 ++++++++++++------- 1 file changed, 56 insertions(+), 28 deletions(-) diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index 2666c9e0..616cd86e 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -68,7 +68,44 @@ backdrop-variant="dark" >
-
+
+ + + Preview + + + + Close + + + + + + + + +
+
- - - Preview - - - - - - - -
+ +
@@ -556,7 +576,6 @@ export default { } }, }, - data() { return { /// TODO: Need to do it in a neat way @@ -618,7 +637,16 @@ export default { ], tagDetails: [{ text: "Select Tag Type", value: null }], }, + preview:false }; }, + methods: { + openPreview () { + this.preview= true + }, + closePreview () { + this.preview= false + } + }, }; From faa137090bcf0d6761835490dde7914e0c4d52a2 Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Wed, 25 May 2022 17:46:15 +0530 Subject: [PATCH 07/50] implemented --- package.json | 1 + .../CreateProjectSlide.vue | 2 +- .../components/PreviewConfig.vue | 265 ++++-------------- src/main.js | 2 +- 4 files changed, 57 insertions(+), 213 deletions(-) diff --git a/package.json b/package.json index faedcdfa..95e54a14 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "vue-sidebar-menu": "^4.7.4", "vue-stepper": "^1.4.2", "vue-sweetalert2": "^5.0.2", + "vuedraggable": "^2.24.3", "vuejs-datepicker": "^1.6.2", "vuejs-datetimepicker": "^1.1.13", "vuejs-paginate": "^2.1.0", diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index 2666c9e0..ee7ba06a 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -355,7 +355,7 @@ role="tabpanel" > - +
diff --git a/src/components/admin/createProjectSlider/components/PreviewConfig.vue b/src/components/admin/createProjectSlider/components/PreviewConfig.vue index 934f03cf..8e8cf3fe 100644 --- a/src/components/admin/createProjectSlider/components/PreviewConfig.vue +++ b/src/components/admin/createProjectSlider/components/PreviewConfig.vue @@ -1,215 +1,58 @@ \ No newline at end of file + + + diff --git a/src/main.js b/src/main.js index 88d92fe9..4782c4a1 100644 --- a/src/main.js +++ b/src/main.js @@ -28,7 +28,6 @@ import VueSidebarMenu from "vue-sidebar-menu"; import "vue-sidebar-menu/dist/vue-sidebar-menu.css"; import VueMeta from 'vue-meta'; - // Tell Vue to install the plugin. // Vue.use(VuejsDialog.main.default); const options = { @@ -42,6 +41,7 @@ Vue.use(BootstrapVue); Vue.use(IconsPlugin); Vue.use(Notifications); + //// VUE EASY TABEL //// Vue.use(VeTable); Vue.use(VePagination); From 69183db542981b25ea39c5bd271981da4d4bf399 Mon Sep 17 00:00:00 2001 From: varsha Date: Wed, 25 May 2022 17:50:43 +0530 Subject: [PATCH 08/50] event clonning complete --- .../components/GeneralConfig.vue | 7 +- src/mixins/fieldValidationMixin.js | 8 +- src/utils/messages/admin/en.js | 6 +- src/views/admin/Events.vue | 216 ++++++++++-------- 4 files changed, 137 insertions(+), 100 deletions(-) diff --git a/src/components/admin/createProjectSlider/components/GeneralConfig.vue b/src/components/admin/createProjectSlider/components/GeneralConfig.vue index c6e8ffca..d57e4fdf 100644 --- a/src/components/admin/createProjectSlider/components/GeneralConfig.vue +++ b/src/components/admin/createProjectSlider/components/GeneralConfig.vue @@ -110,11 +110,12 @@
- +
- +
diff --git a/src/mixins/fieldValidationMixin.js b/src/mixins/fieldValidationMixin.js index 870d7dc0..33230ae9 100644 --- a/src/mixins/fieldValidationMixin.js +++ b/src/mixins/fieldValidationMixin.js @@ -45,7 +45,13 @@ export function isValidText(str) { return false; } } - +export function isValidSlug(str){ + if(str.match(/^([a-z0-9])*(-([a-z0-9])*)*$/)){ + return true + }else{ + return false + } +} // Note: this will check is str is undefined, null, " ", "" export function isEmpty(str) { if (str == " ") { diff --git a/src/utils/messages/admin/en.js b/src/utils/messages/admin/en.js index dcba8600..c31f7ec0 100644 --- a/src/utils/messages/admin/en.js +++ b/src/utils/messages/admin/en.js @@ -17,7 +17,9 @@ const EVENTS = { }, VALIDATION:{ INVALID_PROJECT_NAME: "Please provide valid Event Name", - INVALID_LOGO_URL: "Banner Url is not Valid" + INVALID_LOGO_URL: "Banner Url is not Valid", + INVALID_SLUG:"Please enter a valid Event Slug.", + EMPTY_SLUG: "Slug can not be empty" }, CREATE_EDIT_EVENT: { PROJECT_FETCHED: "Event is fetched. Event Name ", @@ -33,7 +35,7 @@ const EVENTS = { THEME_COLOR_NOT_SAME: "Theme color and font color cannot be same", CHOOSE_ATLEAST_ONE_TAG: "Please choose atleast one tag", CHOOSE_TAG:"Please choose Tag", - DUPLICATE_TAG:"Duplicate tags are not allowed" + DUPLICATE_TAG:"Duplicate tags are not allowed", }, ACTIONS:{ diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index 69bd5307..79059a86 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -266,7 +266,13 @@ i { class="mb-2" @error="onBannerError($event)" > -
    +
    • {{ project._id }} @@ -330,20 +336,24 @@ i { :key="tag.id" pill variant="secondary" - style="margin-left: 2px;" - + style="margin-left: 2px" >{{ tag.type.split("_")[0] }} - - - - - + + - - + + project._id).indexOf(json._id) - this.projects.splice(index, 1) - const tempProject= JSON.parse(localStorage.getItem("userProjects")) - localStorage.removeItem("userProjects") - - tempProject.projects.splice(index, 1); - localStorage.setItem("userProjects", - JSON.stringify({ - projects:tempProject.projects, - count:tempProject.projects.length - }) - ) - if(json){ - if(!resp.ok){ - return this.notifyErr(json); - } else { - this.notifySuccess("Event is deleted successfully"); - } - }else { - throw new Error("Error while deleting event"); - } - }catch(e){ - this.notifyErr(e.message); - } finally { - this.isLoading = false; + if (this.isProjectClonning) { + this.project.projectName = this.project._id + "_copy"; + this.project._id = ""; + this.project.slug = ""; + this.project.investorsCount = 0; } -}, + this.project.fromDate = dayjs(project.fromDate).format( + "YYYY-MM-DD hh:mm:ss" + ); + this.project.toDate = dayjs(project.toDate).format("YYYY-MM-DD hh:mm:ss"); + + // CHECK IF TELEGRAM AND TWITTER EXISTS AND UPDATE THE DATA STRUCTURE + this.project.social = { + twitter: { + isEnabled: true, + twitterHandle: this.project.twitterHandle, + twitterPostFormat: this.project.twitterPostFormat, + }, + telegram: { + isEnabled: true, + telegramHandle: this.project.telegramHandle, + telegramAnnouncementChannel: this.project.telegramAnnouncementChannel, + }, + }; + + this.socialOptions.forEach((media) => { + if (media.value) { + media.value.fields.map((field) => { + field.value = this.project[field.name]; + }); + } + }); + + this.socialOptions.map((x) => { + if (x.value) { + this.addedSocialMedias.push(x.value); + } + }); + this.blockchainType = + project.blockchainType !== undefined + ? project.blockchainType + : this.blockchainType; + this.contractType = project.contractType; + this.themeColor = + project.themeColor !== undefined ? project.themeColor : this.themeColor; + this.fontColor = + project.fontColor !== undefined ? project.fontColor : this.fontColor; + this.projectStatus = project.projectStatus; + this.eventActionList = project.actions; + this.eventActionList = this.eventActionList.map( + ({ _id, eventId, __v, ...rest }) => { + return rest; + } + ); + let index = this.eventActionList + .map((action) => action.title) + .indexOf("Hypersign Authentication"); + this.eventActionList.splice(index, 1); + index = this.eventActionList + .map((action) => action.title) + .indexOf("Subscribe Notification"); + this.eventActionList.splice(index, 1); + this.tagsTemp = project.tags; + await this.saveProject(); + }, async saveProject() { try { if (this.checkIfEverythingIsFilled() !== true) { @@ -993,7 +1013,9 @@ async deleteProject(project){ if (this.isProjectNameValid() !== true) { return this.notifyErr(this.isProjectNameValid()); } - + if (this.isValidSlug() !== true) { + return this.notifyErr(this.isValidSlug()); + } if (this.isLogoUrlValid() !== true) { return this.notifyErr(this.isLogoUrlValid()); } @@ -1066,16 +1088,14 @@ async deleteProject(project){ this.resetAllValues(); if (this.isProjectEditing) { - console.log("projectEditing") await this.fetchProjects(); this.$root.$emit("bv::toggle::collapse", "sidebar-right"); - this.isProjectEditing= false + this.isProjectEditing = false; return; } - if(this.isProjectClonning){ - console.log("projectClonning") + if (this.isProjectClonning) { await this.fetchProjects(); - this.isProjectClonning= false; + this.isProjectClonning = false; return; } @@ -1083,7 +1103,6 @@ async deleteProject(project){ /// Not removing but handling the condition. const userProjects = JSON.parse(localStorage.getItem("userProjects")); if (userProjects) { - console.log('userProjects') userProjects.count += 1; userProjects.projects.push(resp.data); localStorage.setItem("userProjects", JSON.stringify(userProjects)); @@ -1105,7 +1124,6 @@ async deleteProject(project){ }, checkIfEverythingIsFilled() { - for (let index = 0; index < this.eventActionList.length; index++) { if ( this.eventActionList[index].score === null || @@ -1113,24 +1131,20 @@ async deleteProject(project){ ) { return Messages.EVENTS.ACTIONS.SCORE_IS_NUM_ANY_LEFT; } - if (this.eventActionList[index].type === null) { + if (this.eventActionList[index].type === null) { return Messages.EVENTS.CHECK_ALL_TYPE; } - if(this.eventActionList[index].type==="SUMSUB_KYC"){ - - - if(this.eventActionList[index].slug===""){ + if (this.eventActionList[index].type === "SUMSUB_KYC") { + if (this.eventActionList[index].slug === "") { return Messages.EVENTS.ACTIONS.KYCACCORDIN.KYC_SLUG; } - - } - if(isValidURL (this.eventActionList[index].title)!==undefined){ - return Messages.EVENTS.ACTIONS.TITLE_URL; - } + if (isValidURL(this.eventActionList[index].title) !== undefined) { + return Messages.EVENTS.ACTIONS.TITLE_URL; + } } // for (let index = 0; index < this.eventActionList.length; index++) { - + // } const eventActionTitle = checkTitle(this.eventActionList, "title"); @@ -1151,11 +1165,10 @@ async deleteProject(project){ x.type !== "BLOCKCHAIN_AVAX" && x.type !== "BLOCKCHAIN_REEF" && x.type !== "BLOCKCHAIN_TEZ" && - x.type !== "BLOCKCHAIN_CARDANO" && + x.type !== "BLOCKCHAIN_CARDANO" && x.type !== "PRIZE_CARD" && - x.type !== "PUSH_NOTIFICATION"&& - x.type!=="SUMSUB_KYC" - + x.type !== "PUSH_NOTIFICATION" && + x.type !== "SUMSUB_KYC" ); const filteredValueList = checkValue(eventActionValue, "value"); if (filteredValueList.includes(false)) { @@ -1205,6 +1218,21 @@ async deleteProject(project){ } return true; }, + isValidSlug() { + console.log(this.isProjectClonning) + if (this.isProjectClonning && this.project.slug =="") { + return true; + } else { + if (!this.project.slug) { + return Messages.EVENTS.VALIDATION.EMPTY_SLUG; + } + if (!isValidSlug(this.project.slug)) { + return Messages.EVENTS.VALIDATION.INVALID_SLUG; + } + } + + return true; + }, clear() { this.isProjectEditing = false; From eddb7a2da5ad522599d4f72fe2b0993309a7635e Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Wed, 25 May 2022 18:05:12 +0530 Subject: [PATCH 09/50] Revert "implemented" --- package.json | 1 - .../CreateProjectSlide.vue | 27 -- .../components/PreviewConfig.vue | 265 ++++++++++++++---- src/main.js | 2 +- 4 files changed, 212 insertions(+), 83 deletions(-) diff --git a/package.json b/package.json index 95e54a14..faedcdfa 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "vue-sidebar-menu": "^4.7.4", "vue-stepper": "^1.4.2", "vue-sweetalert2": "^5.0.2", - "vuedraggable": "^2.24.3", "vuejs-datepicker": "^1.6.2", "vuejs-datetimepicker": "^1.1.13", "vuejs-paginate": "^2.1.0", diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index ab574da5..616cd86e 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -371,33 +371,6 @@ - - - - Preview - - - - - - - - - +
      +
      +
      +
      5
      +
      Your Score
      +
      +
      +
      +
      +
      1
      +
      Total Users
      +
      +
      +
      +
      +
      6
      +
      Days Left
      +
      +
      +
      +
      +
      + +
      +
      Leaderboard
      +
      +
      +
      +
      +
      + +
      +
      + + + +
      + +
      + +
      +
      +
      + +
      +
      +
      + Your Profile & Referral +
      +
      +
      +
      +
      +
      + +
      +
      +
      + Username +
      +
      + Vikram Anand +
      +
      +
      +
      + Email +
      +
      + vi**********.com +
      +
      +
      +
      + Your Referral Link +
      +
      + https:// ... LmNvbQ== + +
      +
      +
      +
      +
      + +
      + +
      + - - - + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 4782c4a1..88d92fe9 100644 --- a/src/main.js +++ b/src/main.js @@ -28,6 +28,7 @@ import VueSidebarMenu from "vue-sidebar-menu"; import "vue-sidebar-menu/dist/vue-sidebar-menu.css"; import VueMeta from 'vue-meta'; + // Tell Vue to install the plugin. // Vue.use(VuejsDialog.main.default); const options = { @@ -41,7 +42,6 @@ Vue.use(BootstrapVue); Vue.use(IconsPlugin); Vue.use(Notifications); - //// VUE EASY TABEL //// Vue.use(VeTable); Vue.use(VePagination); From eb8ab957c86f580561b32adb76ce1f0221b109c5 Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Wed, 25 May 2022 18:45:55 +0530 Subject: [PATCH 10/50] fixed --- .../createProjectSlider/CreateProjectSlide.vue | 7 ++++--- .../components/PreviewConfig.vue | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index ab574da5..c4c6d578 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -100,7 +100,8 @@ role="tabpanel" > - + + @@ -372,7 +373,7 @@ - + diff --git a/src/components/admin/createProjectSlider/components/PreviewConfig.vue b/src/components/admin/createProjectSlider/components/PreviewConfig.vue index 8e8cf3fe..b3a6a17f 100644 --- a/src/components/admin/createProjectSlider/components/PreviewConfig.vue +++ b/src/components/admin/createProjectSlider/components/PreviewConfig.vue @@ -1,6 +1,6 @@ - + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BinanceErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BinanceErc721.vue new file mode 100644 index 00000000..5c026a88 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BinanceErc721.vue @@ -0,0 +1,233 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainAvax.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainAvax.vue new file mode 100644 index 00000000..4bd28a6e --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainAvax.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainBsc.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainBsc.vue new file mode 100644 index 00000000..a1f40de0 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainBsc.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainCardano.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainCardano.vue new file mode 100644 index 00000000..404eb7cf --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainCardano.vue @@ -0,0 +1,121 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainEth.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainEth.vue new file mode 100644 index 00000000..351bb590 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainEth.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainMatic.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainMatic.vue new file mode 100644 index 00000000..4d40fa2e --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainMatic.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainOne.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainOne.vue new file mode 100644 index 00000000..736ff695 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainOne.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainReef.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainReef.vue new file mode 100644 index 00000000..a44f54e1 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainReef.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainTez.vue b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainTez.vue new file mode 100644 index 00000000..82a078e0 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/BlockchainTez.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/DiscordJoin.vue b/src/components/admin/createProjectSlider/components/ActionInputs/DiscordJoin.vue new file mode 100644 index 00000000..76f1ba32 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/DiscordJoin.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc20.vue new file mode 100644 index 00000000..3f78b93e --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc20.vue @@ -0,0 +1,231 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc721.vue new file mode 100644 index 00000000..bc931d82 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/EthereumErc721.vue @@ -0,0 +1,231 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/HyperlinkUrl.vue b/src/components/admin/createProjectSlider/components/ActionInputs/HyperlinkUrl.vue new file mode 100644 index 00000000..8a147069 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/HyperlinkUrl.vue @@ -0,0 +1,119 @@ + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/InfoText.vue b/src/components/admin/createProjectSlider/components/ActionInputs/InfoText.vue new file mode 100644 index 00000000..d000d37a --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/InfoText.vue @@ -0,0 +1,63 @@ + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/InputDate.vue b/src/components/admin/createProjectSlider/components/ActionInputs/InputDate.vue new file mode 100644 index 00000000..0f98e1d7 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/InputDate.vue @@ -0,0 +1,84 @@ + + + + \ No newline at end of file diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/InputHyperlink.vue b/src/components/admin/createProjectSlider/components/ActionInputs/InputHyperlink.vue new file mode 100644 index 00000000..51a1b035 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/InputHyperlink.vue @@ -0,0 +1,91 @@ + + + + \ No newline at end of file diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/InputNumber.vue b/src/components/admin/createProjectSlider/components/ActionInputs/InputNumber.vue new file mode 100644 index 00000000..f2b2c3fb --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/InputNumber.vue @@ -0,0 +1,82 @@ + + + + \ No newline at end of file diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/InputText.vue b/src/components/admin/createProjectSlider/components/ActionInputs/InputText.vue new file mode 100644 index 00000000..baca4426 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/InputText.vue @@ -0,0 +1,111 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc20.vue new file mode 100644 index 00000000..1fff4262 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc20.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc721.vue new file mode 100644 index 00000000..81194cba --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MaticErc721.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc20.vue new file mode 100644 index 00000000..c1cd4765 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc20.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc721.vue new file mode 100644 index 00000000..5e63614e --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonErc721.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc20.vue new file mode 100644 index 00000000..436e50bd --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc20.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc721.vue new file mode 100644 index 00000000..7491b819 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonbeamErc721.vue @@ -0,0 +1,227 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc20.vue new file mode 100644 index 00000000..7a44fef9 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc20.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc721.vue new file mode 100644 index 00000000..be7cfe42 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/MoonriverErc721.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/PrizeCard.vue b/src/components/admin/createProjectSlider/components/ActionInputs/PrizeCard.vue new file mode 100644 index 00000000..bef12370 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/PrizeCard.vue @@ -0,0 +1,80 @@ + + + \ No newline at end of file diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/Profile.vue b/src/components/admin/createProjectSlider/components/ActionInputs/Profile.vue new file mode 100644 index 00000000..180195c3 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/Profile.vue @@ -0,0 +1,99 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/PushNotification.vue b/src/components/admin/createProjectSlider/components/ActionInputs/PushNotification.vue new file mode 100644 index 00000000..64911cc6 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/PushNotification.vue @@ -0,0 +1,239 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc20.vue b/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc20.vue new file mode 100644 index 00000000..600ff7b1 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc20.vue @@ -0,0 +1,244 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc721.vue b/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc721.vue new file mode 100644 index 00000000..340e103d --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/ReefErc721.vue @@ -0,0 +1,244 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/SumsubKyc.vue b/src/components/admin/createProjectSlider/components/ActionInputs/SumsubKyc.vue new file mode 100644 index 00000000..f4800522 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/SumsubKyc.vue @@ -0,0 +1,234 @@ + + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/TelegramJoin.vue b/src/components/admin/createProjectSlider/components/ActionInputs/TelegramJoin.vue new file mode 100644 index 00000000..5e90f226 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/TelegramJoin.vue @@ -0,0 +1,198 @@ + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/TwitterFollow.vue b/src/components/admin/createProjectSlider/components/ActionInputs/TwitterFollow.vue new file mode 100644 index 00000000..9afd55e6 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/TwitterFollow.vue @@ -0,0 +1,245 @@ + + + diff --git a/src/components/admin/createProjectSlider/components/ActionInputs/TwitterRetweet.vue b/src/components/admin/createProjectSlider/components/ActionInputs/TwitterRetweet.vue new file mode 100644 index 00000000..8b8cab80 --- /dev/null +++ b/src/components/admin/createProjectSlider/components/ActionInputs/TwitterRetweet.vue @@ -0,0 +1,210 @@ + + + diff --git a/src/views/admin/Events.vue b/src/views/admin/Events.vue index 40524d5b..c9e32ef6 100644 --- a/src/views/admin/Events.vue +++ b/src/views/admin/Events.vue @@ -1179,6 +1179,7 @@ export default { method, header: headers, }); + this.$root.$emit("closePreview"); if (!this.isProjectEditing) { //// not using this for the time being just to test // this.whitelistingLink = window.location.origin + ( resp.data.slug && resp.data.slug != "" ? "/form/" + resp.data.slug : "/form?projectId=" + resp.data._id ) From 1a503d198b99482915782f8e669674cd507fcc0d Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Fri, 27 May 2022 20:29:44 +0530 Subject: [PATCH 40/50] fixed --- .../createProjectSlider/CreateProjectSlide.vue | 9 ++++++++- .../components/PreviewConfig.vue | 13 +++++++------ src/views/admin/Events.vue | 11 ++++++++--- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index 36c98f36..4d713b04 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -174,6 +174,7 @@ { this.preview=true }) @@ -687,7 +694,7 @@ this.$root.$on("closePreview",this.closePreview) } , methods: { - + closePreview () { this.preview= false } diff --git a/src/components/admin/createProjectSlider/components/PreviewConfig.vue b/src/components/admin/createProjectSlider/components/PreviewConfig.vue index 469f8f71..e022dfb2 100644 --- a/src/components/admin/createProjectSlider/components/PreviewConfig.vue +++ b/src/components/admin/createProjectSlider/components/PreviewConfig.vue @@ -36,8 +36,8 @@
      @@ -59,7 +59,7 @@ { + this.$root.$emit("closePreview"); + }) + }, beforeRouteEnter(to, from, next) { next((vm) => { @@ -1197,9 +1202,9 @@ export default { this.notifySuccess( Messages.EVENTS.CREATE_EDIT_EVENT.PROJECT_SAVED + resp.data._id ); - if(resp.data.projectName.includes('copy')){ - this.notifyWarning("Clone of '"+resp.data.projectName.split('copy')[0]+"' created"); - } + // if(resp.data.projectName.includes('copy')){ + // this.notifyWarning("Clone of '"+resp.data.projectName.split('copy')[0]+"' created"); + // } this.resetAllValues(); if (this.isProjectEditing) { From d8d1d9d44c239574b483e7ac5ef526ddd9dc0fa6 Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Fri, 27 May 2022 20:31:01 +0530 Subject: [PATCH 41/50] fixed --- .../admin/createProjectSlider/components/PreviewConfig.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/admin/createProjectSlider/components/PreviewConfig.vue b/src/components/admin/createProjectSlider/components/PreviewConfig.vue index e022dfb2..d14f3892 100644 --- a/src/components/admin/createProjectSlider/components/PreviewConfig.vue +++ b/src/components/admin/createProjectSlider/components/PreviewConfig.vue @@ -14,8 +14,8 @@ parseInt( (new Date(eventData.toDate).getTime() - new Date().getTime()) / (1000 * 3600 * 24) - ) < 0 - ? '0' + ) <=0 + ? 0 : parseInt( (new Date(eventData.toDate).getTime() - new Date().getTime()) / (1000 * 3600 * 24) From dcd176ac6695832fa4006f4309166311cf45d6ca Mon Sep 17 00:00:00 2001 From: vikramide <> Date: Sat, 28 May 2022 00:18:47 +0400 Subject: [PATCH 42/50] Uncomment User-home route --- src/router.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/router.js b/src/router.js index fbf9e186..84a53796 100644 --- a/src/router.js +++ b/src/router.js @@ -22,15 +22,15 @@ const router = new Router({ tabbar: false, }), }, - // { - // path: "/user/home/", - // name: "Home", - // component: () => - // import( - // /* webpackChunkName: "investorLogin" */ "./views/participant/Home.vue" - // ), - // meta: () => ({ requiresAuth: true, title: 'Hyperfyre - User Home' }) - // }, + { + path: "/user/home/", + name: "Home", + component: () => + import( + /* webpackChunkName: "investorLogin" */ "./views/participant/Home.vue" + ), + meta: () => ({ requiresAuth: true, title: 'Hyperfyre - User Home' }) + }, { path: "/", redirect: "/admin/login", From b3ad35195aaa32c67267ea6197dc1df37c4e4e53 Mon Sep 17 00:00:00 2001 From: Pratap Mridha Date: Mon, 30 May 2022 10:06:02 +0530 Subject: [PATCH 43/50] fixed --- .../createProjectSlider/components/PreviewConfig.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/admin/createProjectSlider/components/PreviewConfig.vue b/src/components/admin/createProjectSlider/components/PreviewConfig.vue index d14f3892..87eb68ac 100644 --- a/src/components/admin/createProjectSlider/components/PreviewConfig.vue +++ b/src/components/admin/createProjectSlider/components/PreviewConfig.vue @@ -1,13 +1,16 @@