diff --git a/.env b/.env
index 45da7143..2b43de75 100755
--- a/.env
+++ b/.env
@@ -1,2 +1,4 @@
UMI_UI=none
-NODE_ENV=production
\ No newline at end of file
+NODE_ENV=production
+
+YCORE_CONFIG=./config
\ No newline at end of file
diff --git a/.prev/.editorconfig b/.prev/.editorconfig
deleted file mode 100644
index 7e3649ac..00000000
--- a/.prev/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# http://editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
-trim_trailing_whitespace = false
-
-[Makefile]
-indent_style = tab
diff --git a/.prev/.env b/.prev/.env
deleted file mode 100644
index 45da7143..00000000
--- a/.prev/.env
+++ /dev/null
@@ -1,2 +0,0 @@
-UMI_UI=none
-NODE_ENV=production
\ No newline at end of file
diff --git a/.prev/.eslintignore b/.prev/.eslintignore
deleted file mode 100644
index 96a82dff..00000000
--- a/.prev/.eslintignore
+++ /dev/null
@@ -1,7 +0,0 @@
-src/**/*-test.js
-src/public
-src/routes/chart/ECharts/theme
-src/routes/chart/highCharts/mapdata
-src/locales/_build/
-src/locales/**/*.js
-docs/**/*.js
diff --git a/.prev/.eslintrc b/.prev/.eslintrc
deleted file mode 100644
index e71ebc80..00000000
--- a/.prev/.eslintrc
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "react-app",
- "rules": {
- "jsx-a11y/href-no-hash": "off",
- "no-console": "warn",
- "valid-jsdoc": "warn"
- }
-}
diff --git a/.prev/.gitignore b/.prev/.gitignore
deleted file mode 100644
index 500b786a..00000000
--- a/.prev/.gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-coverage
-dist
-node_modules
-npm-debug.log
-yarn-error.log
-yarn.lock
-package-lock.json
-
-# ide
-.idea
-
-# Mac General
-.DS_Store
-.AppleDouble
-.LSOverride
-
-# umi
-.umi
-.umi-production
-
-# jslingui
-src/locales/_build
-src/locales/**/*.js
-android/
diff --git a/.prev/.prettierignore b/.prev/.prettierignore
deleted file mode 100644
index 1e879f7a..00000000
--- a/.prev/.prettierignore
+++ /dev/null
@@ -1,6 +0,0 @@
-*.svg
-*.ejs
-.DS_Store
-.umi
-.umi-production
-src/locales/**/*.json
\ No newline at end of file
diff --git a/.prev/.prettierrc b/.prev/.prettierrc
deleted file mode 100644
index 36301bc5..00000000
--- a/.prev/.prettierrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "semi": false,
- "singleQuote": true,
- "trailingComma": "es5"
-}
diff --git a/.prev/.stylelintrc.json b/.prev/.stylelintrc.json
deleted file mode 100644
index b533bdd6..00000000
--- a/.prev/.stylelintrc.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "extends": ["stylelint-config-standard", "stylelint-config-prettier"],
- "rules": {
- "declaration-empty-line-before": null,
- "no-descending-specificity": null,
- "selector-pseudo-class-no-unknown": null,
- "selector-pseudo-element-colon-notation": null
- }
-}
diff --git a/.prev/.travis.yml b/.prev/.travis.yml
deleted file mode 100644
index 4789d27f..00000000
--- a/.prev/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-language: node_js
-node_js:
- - node
-script:
- - npm run build
-before_install:
- - |
- if [ "$TRAVIS_BRANCH" = "develop" ]; then
- for prefixed_envvar in ${!DEV_*}; do
- eval export ${prefixed_envvar#DEV_}="${!prefixed_envvar}"
- done
- elif [ "$TRAVIS_BRANCH" = "master" ]; then
- for prefixed_envvar in ${!PROD_*}; do
- eval export ${prefixed_envvar#PROD_}="${!prefixed_envvar}"
- done
- else
- for prefixed_envvar in ${!TEST_*}; do
- eval export ${prefixed_envvar#TEST_}="${!prefixed_envvar}"
- done
- fi
- - openssl aes-256-cbc -K $encrypted_18b2305b78c9_key -iv $encrypted_18b2305b78c9_iv -in config/id_rsa.enc -out ~/.ssh/id_rsa -d
- - chmod 600 ~/.ssh/id_rsa
- - echo -e "Host $HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- - yarn global add now
-after_script:
- - scp -o stricthostkeychecking=no -r ./dist root@$HOST:$BUILD_DIR
- - cd ./docs && now -A $DOC_NOW_CONFIG -t $NOW_TOKEN && now alias -A $DOC_NOW_CONFIG -t $NOW_TOKEN
diff --git a/.prev/.umirc.js b/.prev/.umirc.js
deleted file mode 100644
index e081b1e4..00000000
--- a/.prev/.umirc.js
+++ /dev/null
@@ -1,91 +0,0 @@
-// https://umijs.org/config/
-import { resolve } from 'path'
-import { i18n } from './config/ycore.config.js'
-export default {
- ignoreMomentLocale: true,
- hash: true,
- targets: { ie: 9,},
- treeShaking: true,
- plugins: [
- [
- 'umi-plugin-react',
- {
- dva: {
- immer: true,
- },
- antd: true,
- dynamicImport: {
- webpackChunkName: true,
- loadingComponent: './components/Loader/Loader',
- },
-
- routes: {
- exclude: [
- /model\.(j|t)sx?$/,
- /service\.(j|t)sx?$/,
- /models\//,
- /components\//,
- /services\//,
- ],
- update: routes => {
- if (!i18n) return routes
- const newRoutes = []
-
- for (const item of routes[0].routes) {
- newRoutes.push(item)
-
- if (item.path) {
- newRoutes.push(
- Object.assign({}, item, {
- path:
- `/:lang(${i18n.languages
- .map(item => item.key)
- .join('|')})` + item.path,
- })
- )
- }
- }
-
- routes[0].routes = newRoutes
- return routes
- },
- },
- dll:false,
- pwa: {
- manifestOptions: {
- srcPath: 'manifest.json',
- },
- },
- },
- ],
- ],
- // Theme for antd
- // https://ant.design/docs/react/customize-theme
- theme: './config/theme.config.js',
- // Webpack Configuration
- alias: {
- ycore: resolve(__dirname, './src/@ycore/ycore_worker.js'),
- globals: resolve(__dirname, './globals'),
- components: resolve(__dirname, './src/components'),
- config: resolve(__dirname, './config/ycore.config.js'),
- models: resolve(__dirname, './src/models'),
- routes: resolve(__dirname, './src/routes'),
- themes: resolve(__dirname, './src/themes'),
- utils: resolve(__dirname, './src/utils'),
- },
- extraBabelPresets: ['@lingui/babel-preset-react'],
- extraBabelPlugins: [
- [
- 'import',
- {
- libraryName: 'lodash',
- libraryDirectory: '',
- camel2DashComponentName: false,
- },
- 'lodash',
- ],
- ],
-
-
-
-}
diff --git a/.prev/.vsls.json b/.prev/.vsls.json
deleted file mode 100644
index 197e41f6..00000000
--- a/.prev/.vsls.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "$schema": "http://json.schemastore.org/vsls",
- "gitignore":"none"
-}
\ No newline at end of file
diff --git a/.prev/LICENSE b/.prev/LICENSE
deleted file mode 100644
index 261eeb9e..00000000
--- a/.prev/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/.prev/capacitor.config.json b/.prev/capacitor.config.json
deleted file mode 100644
index 542d7ae1..00000000
--- a/.prev/capacitor.config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "appId": "com.ragestudio.comty",
- "appName": "comty-development",
- "bundledWebRuntime": false,
- "npmClient": "npm",
- "webDir": "dist",
- "cordova": {}
-}
diff --git a/.prev/comty_dev.service b/.prev/comty_dev.service
deleted file mode 100644
index 7ac93caa..00000000
--- a/.prev/comty_dev.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Comty_Development
-
-[Service]
-ExecStart=npm start
-Restart=always
-User=root
-WorkingDirectory=/ycore/development/comty-development
-
-[Install]
-WantedBy=multi-user.target
\ No newline at end of file
diff --git a/.prev/comty_dist.service b/.prev/comty_dist.service
deleted file mode 100644
index 09c4cc50..00000000
--- a/.prev/comty_dist.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Comty_Development
-
-[Service]
-ExecStart=serve ./dist
-Restart=always
-User=root
-WorkingDirectory=/ycore/development/comty-development
-
-[Install]
-WantedBy=multi-user.target
\ No newline at end of file
diff --git a/.prev/config/app.settings.js b/.prev/config/app.settings.js
deleted file mode 100644
index baafa2a0..00000000
--- a/.prev/config/app.settings.js
+++ /dev/null
@@ -1,36 +0,0 @@
-function SettingStoragedValue(e){
- try {
- const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
- const Ite = fromStorage.map(item => {
- return item.SettingID === e? item.value : null
- })
- const fr = Ite.filter(Boolean)
- return fr.toString()
- }
- catch (error) {
- return null
- }
-}
-const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
-
-export var AppSettings = {
- __global_server_prexif: 'https://api.ragestudio.net/RSA-COMTY/r/',
- // Global Behaviors
- InfiniteLoading: false,
- InfiniteLogin: false,
- InfiniteRegister: false,
- DisableLogin: false,
- DisableRegister: true,
- DisablePasswordRecover: true,
- disable_pro_tool: fromStorage? SettingStoragedValue('disable_pro_tool') : false,
- force_showDevLogs: fromStorage? SettingStoragedValue('force_showDevLogs') : false,
- SignForNotExpire: fromStorage? SettingStoragedValue('sessions_noexpire') : false,
- auto_search_ontype: fromStorage? SettingStoragedValue('auto_search_ontype') : false,
- auto_feedrefresh: fromStorage? SettingStoragedValue('auto_feedrefresh') : false,
- auto_hide_postbar: fromStorage? SettingStoragedValue('auto_hide_postbar') : true,
- MaxLengthPosts: '512',
- CurrentBundle: 'light_ng',
- // In KB
- MaximunAPIPayload: '101376',
- limit_post_catch: '20'
-}
\ No newline at end of file
diff --git a/.prev/config/id_rsa.enc b/.prev/config/id_rsa.enc
deleted file mode 100644
index 5c41e85f..00000000
Binary files a/.prev/config/id_rsa.enc and /dev/null differ
diff --git a/.prev/config/keys.js b/.prev/config/keys.js
deleted file mode 100644
index 5b5f8792..00000000
--- a/.prev/config/keys.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = {
- // Global Server Key (Requiered for RS-YIBTP), Not autogenerated, must be included on. (Recommended not modify this constants)
-
- server_key:
- 'f706b0a535b6c2d36545c4137a0a3a26853ea8b5-1223c9ba7923152cae28e5a2e7501b2b-50600768',
-}
diff --git a/.prev/config/theme.config.js b/.prev/config/theme.config.js
deleted file mode 100644
index 6dab2f79..00000000
--- a/.prev/config/theme.config.js
+++ /dev/null
@@ -1,8 +0,0 @@
-const fs = require('fs')
-const path = require('path')
-const lessToJs = require('less-vars-to-js')
-
-module.exports = () => {
- const themePath = path.join(__dirname, `../src/themes/index.less`)
- return lessToJs(fs.readFileSync(themePath, 'utf8'))
-}
diff --git a/.prev/config/ycore.config.js b/.prev/config/ycore.config.js
deleted file mode 100644
index b6383eb2..00000000
--- a/.prev/config/ycore.config.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = {
- server_endpoint: 'https://comty.julioworld.club',
- siteName: 'Comty',
- copyright: 'RageStudio©',
-
- LogoPath: '/logo.svg',
- FullLogoPath: '/full_logo.svg',
- DarkFullLogoPath: '/dark_full_logo.svg',
- DarkLogoPath: '/dark_logo.svg',
-
- resource_bundle: 'light_ng',
- sync_server: 'http://eu653-node.ragestudio.net:5500',
-
- g_recaptcha_key: '6Lc55uUUAAAAAEIACMVf3BUzAJSNCmI3RrjEirZ6',
- g_recaptcha_secret: '6Lc55uUUAAAAAOP4OgUa5DpqJC-70t53AmW0lyYf',
-
- /* Layout configuration, specify which layout to use for route. */
- layouts: [
- {
- name: 'primary',
- include: [/.*/],
- exclude: [/\/login/, /\/socket\/(.*)/, /\/publics/, /\/authorize/],
- },
- ],
-
- i18n: {
- languages: [
- {
- key: 'en',
- title: 'English',
- },
- ],
- defaultLanguage: 'en',
- },
-}
diff --git a/.prev/dev-server.sh b/.prev/dev-server.sh
deleted file mode 100644
index 1dc991f4..00000000
--- a/.prev/dev-server.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-
-pause(){
- read -p "Press [Enter] key to continue..." fackEnterKey
-}
-
-start_cli_dev(){
- sudo npm start
-}
-
-start_dev(){
- sudo systemctl start comty_dev
- echo "Starting dev server..."
-}
-
-stop_dev(){
- sudo systemctl stop comty_dev
- echo "Stoping dev server..."
-}
-show_logs(){
- sudo journalctl -u comty_dev
-}
-update(){
- git reset --merge&&git fetch --all&&git reset --hard origin/master
-
-
-}
-
-show_menus() {
- clear
- echo "~~~~~~~~~~~~~~~~~~~~~"
- echo " Development Server "
- echo "~~~~~~~~~~~~~~~~~~~~~"
- echo "1. Start CLI Server"
- echo "2. Start Server"
- echo "3. Stop Server"
- echo "4. Show DevServer Logs"
- echo "5. Update from Git"
- echo ""
- echo "0. Exit"
-}
-
-read_options(){
- local choice
- read -p "Enter choice [ 1 - 5 ] " choice
- case $choice in
- 0) exit 0;;
- 1) start_cli_dev ;;
- 2) start_dev ;;
- 3) stop_dev ;;
- 4) show_logs;;
- 5) update;;
- *) echo -e "${RED}Error...${STD}" && sleep 2
- esac
-}
-
-trap '' SIGINT SIGQUIT SIGTSTP
-
-while true
-do
-
- show_menus
- read_options
-done
\ No newline at end of file
diff --git a/.prev/dist-server.sh b/.prev/dist-server.sh
deleted file mode 100644
index d99979fc..00000000
--- a/.prev/dist-server.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-pause(){
- read -p "Press [Enter] key to continue..." fackEnterKey
-}
-
-start_cli_dev(){
- sudo serve ./dist
-}
-
-start_dev(){
- sudo systemctl start comty_dist
- echo "Starting dev server..."
-}
-
-stop_dev(){
- sudo systemctl stop comty_dist
- echo "Stoping dev server..."
-}
-show_logs(){
- sudo journalctl -u comty_dist
- pause
-}
-
-
-show_menus() {
- clear
- echo "~~~~~~~~~~~~~~~~~~~~~"
- echo " BuildServe Server "
- echo "~~~~~~~~~~~~~~~~~~~~~"
- echo "1. Start CLI Server"
- echo "2. Start Server"
- echo "3. Stop Server"
- echo "4. Show DevServer Logs"
- echo ""
- echo "0. Exit"
-}
-
-read_options(){
- local choice
- read -p "Enter choice [ 1 - 4 ] " choice
- case $choice in
- 0) exit 0;;
- 1) start_cli_dev ;;
- 2) start_dev ;;
- 3) stop_dev ;;
- 4) show_logs;;
- *) echo -e "${RED}Error...${STD}" && sleep 2
- esac
-}
-
-trap '' SIGINT SIGQUIT SIGTSTP
-
-while true
-do
-
- show_menus
- read_options
-done
\ No newline at end of file
diff --git a/.prev/globals/badges_list.js b/.prev/globals/badges_list.js
deleted file mode 100644
index d39f752a..00000000
--- a/.prev/globals/badges_list.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import * as Icons from '@ant-design/icons'
-
-
-export var BadgesType = [
- {
- id: 'alpha_test',
- title: 'Alpha Tester',
- color: 'green',
- require: '',
- icon: ( ),
- tip: 'Oh yeah!'
- },
- {
- id: 'nsfw_flag',
- title: 'NSFW',
- color: 'volcano',
- require: 'nsfw_flag',
- icon: ( ),
- tip: 'NSFW',
- },
- {
- id: 'pro',
- title: 'CPRO™',
- color: 'purple',
- require: 'pro',
- icon: ( ),
- tip: 'CPRO™',
- },
- {
- id: 'dev',
- title: 'DEVELOPER',
- color: 'default',
- require: 'dev',
- icon: ( ),
- tip: 'DEVELOPER',
- },
- {
- id: 'professional_retarder',
- title: 'Professional Retarder',
- color: 'gold',
- require: '',
- icon: ( ),
- tip: 'hump....',
- }
-]
diff --git a/.prev/globals/debug.json b/.prev/globals/debug.json
deleted file mode 100644
index 8816f6a8..00000000
--- a/.prev/globals/debug.json
+++ /dev/null
@@ -1,23 +0,0 @@
-[
- {
- "id": "1",
- "title": "PINS",
- "avatar": "https://dl.ragestudio.net/statics/icons/nxkuOJlFJuAUhzlMTCEe.png",
- "description": "Debug pins functions, create, modify, delete...",
- "component": "PINS_debugger"
- },
- {
- "id": "2",
- "title": "SDCP™",
- "avatar":"https://dl.ragestudio.net/statics/icons/nxkuOJlFJuAUhzlMTCEe.png",
- "description": "Debug SDCP Controller and data proccess",
- "component": "SDCP_debugger"
- },
- {
- "id": "3",
- "title": "API",
- "avatar": "https://dl.ragestudio.net/statics/icons/nxkuOJlFJuAUhzlMTCEe.png",
- "description": "Debug API Controller and data proccess",
- "component": "API_debugger"
- }
-]
\ No newline at end of file
diff --git a/.prev/globals/endpoints.js b/.prev/globals/endpoints.js
deleted file mode 100644
index 7ddc39e1..00000000
--- a/.prev/globals/endpoints.js
+++ /dev/null
@@ -1,23 +0,0 @@
-module.exports = {
- Endpoints: {
- comments_actions: "https://api.ragestudio.net/RSA-COMTY/r/comments?access_token=",
- get_post_data: "https://api.ragestudio.net/RSA-COMTY/r/get-post-data?access_token=",
- get_user_tags: "https://api.ragestudio.net/RSA-COMTY/r/user_tags?access_token=",
- get_general_data: "https://api.ragestudio.net/RSA-COMTY/r/get-general-data?access_token=",
- follow_user: "https://api.ragestudio.net/RSA-COMTY/r/follow-user?access_token=",
- action_post: "https://api.ragestudio.net/RSA-COMTY/r/post-actions?access_token=",
- get_posts: "https://api.ragestudio.net/RSA-COMTY/r/posts?access_token=",
- find_user: "https://api.ragestudio.net/RSA-COMTY/r/find_user?access_token=",
- search_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/search?access_token=",
- all_sessions: "https://api.ragestudio.net/RSA-COMTY/r/sessions?access_token=",
- get_sessions: "https://api.ragestudio.net/RSA-COMTY/r/session_id?access_token=",
- auth_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/auth",
- new_post: "https://comty.julioworld.club/api/new_post?access_token=",
- get_config_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-site-settings?access_token=",
- get_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-user-data?access_token=",
- update_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/update-user-data?access_token=",
- removeToken: "https://api.ragestudio.net/RSA-COMTY/r/delete-access-token?access_token=",
- register_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/create-account",
- resetPassword_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/send-reset-password-email?access_token=",
- }
-}
\ No newline at end of file
diff --git a/.prev/globals/endpoints/comty_endpoints.js b/.prev/globals/endpoints/comty_endpoints.js
deleted file mode 100644
index f35e04ff..00000000
--- a/.prev/globals/endpoints/comty_endpoints.js
+++ /dev/null
@@ -1,23 +0,0 @@
-module.exports={
- comty_endpoints: {
- comments_actions: "https://api.ragestudio.net/RSA-COMTY/r/comments?access_token=",
- get_post_data: "https://api.ragestudio.net/RSA-COMTY/r/get-post-data?access_token=",
- get_user_tags: "https://api.ragestudio.net/RSA-COMTY/r/user_tags?access_token=",
- get_general_data: "https://api.ragestudio.net/RSA-COMTY/r/get-general-data?access_token=",
- follow_user: "https://api.ragestudio.net/RSA-COMTY/r/follow-user?access_token=",
- action_post: "https://api.ragestudio.net/RSA-COMTY/r/post-actions?access_token=",
- get_posts: "https://api.ragestudio.net/RSA-COMTY/r/posts?access_token=",
- find_user: "https://api.ragestudio.net/RSA-COMTY/r/find_user?access_token=",
- search_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/search?access_token=",
- all_sessions: "https://api.ragestudio.net/RSA-COMTY/r/sessions?access_token=",
- get_sessions: "https://api.ragestudio.net/RSA-COMTY/r/session_id?access_token=",
- auth_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/auth",
- new_post: "https://comty.julioworld.club/api/new_post?access_token=",
- get_config_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-site-settings?access_token=",
- get_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-user-data?access_token=",
- update_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/update-user-data?access_token=",
- removeToken: "https://api.ragestudio.net/RSA-COMTY/r/delete-access-token?access_token=",
- register_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/create-account",
- resetPassword_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/send-reset-password-email?access_token=",
- }
-}
\ No newline at end of file
diff --git a/.prev/globals/endpoints/index.js b/.prev/globals/endpoints/index.js
deleted file mode 100644
index d7e3836d..00000000
--- a/.prev/globals/endpoints/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './comty_endpoints.js'
-export * from './twitter_endpoints.js'
\ No newline at end of file
diff --git a/.prev/globals/endpoints/twitter_endpoints.js b/.prev/globals/endpoints/twitter_endpoints.js
deleted file mode 100644
index ba18f6ab..00000000
--- a/.prev/globals/endpoints/twitter_endpoints.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = {
- twitter_endpoints: {
- oa_access: "https://api.twitter.com/oauth/access_token",
- oa_request: "https://api.twitter.com/oauth/request_token",
- }
-}
\ No newline at end of file
diff --git a/.prev/globals/post_options.js b/.prev/globals/post_options.js
deleted file mode 100644
index 740a5912..00000000
--- a/.prev/globals/post_options.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import * as Icons from '@ant-design/icons'
-
-export var Post_Options = [
- {
- key: 'pro_boost',
- icon: ,
- type: 'switch',
- title: 'CPRO™ Boost',
- description: '',
- require: 'pro',
- value: false,
- },
- {
- key: 'allow_comments',
- icon: ,
- type: 'switch',
- title: 'Allow Comments',
- description: '',
- require: '',
- value: true,
- },
-]
diff --git a/.prev/globals/settings.js b/.prev/globals/settings.js
deleted file mode 100644
index db006dcc..00000000
--- a/.prev/globals/settings.js
+++ /dev/null
@@ -1,62 +0,0 @@
-const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
-
-function SettingStoragedValue(e) {
- try {
- const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
- const Ite = fromStorage.map(item => {
- return item.SettingID === e ? item.value : null
- })
- const fr = Ite.filter(Boolean)
- return fr.toString()
- } catch (error) {
- return null
- }
-}
-
-export var ListSettings = [
- {
- SettingID: 'disable_pro_tool',
- type: 'switch',
- title: 'Hide Pro Tools',
- description: 'Hide right sidebar utils of comty pro',
- value: fromStorage ? SettingStoragedValue('disable_pro_tool') : false,
- },
- {
- SettingID: 'sessions_noexpire',
- type: 'switch',
- title: 'No expire session',
- description: 'Force the app to not expire any session... [Developer]',
- value: fromStorage ? SettingStoragedValue('sessions_noexpire') : false,
- },
- {
- SettingID: 'auto_feedrefresh',
- type: 'switch',
- title: 'Auto Feed Refresh',
- description:
- 'Force the app to auto refresh the posts feed when exist news posts for update',
- value: fromStorage ? SettingStoragedValue('auto_feedrefresh') : false,
- },
- {
- SettingID: 'auto_search_ontype',
- type: 'switch',
- title: 'Detect input on search bar',
- description:
- 'Force the app to automaticly search when a type input is detected... [Developer]',
- value: fromStorage ? SettingStoragedValue('auto_search_ontype') : false,
- },
- {
- SettingID: 'auto_hide_postbar',
- type: 'switch',
- title: 'Auto hide postbar',
- description:
- 'Force the app to dont hide the post actions (likes, comments ...etc) automaticly... [Developer]',
- value: fromStorage ? SettingStoragedValue('auto_hide_postbar') : true,
- },
- {
- SettingID: 'force_showDevLogs',
- type: 'switch',
- title: 'Show Functions Logs',
- description: 'Show all console logs... [Developer]',
- value: fromStorage ? SettingStoragedValue('force_showDevLogs') : false,
- },
-]
diff --git a/.prev/jest.config.js b/.prev/jest.config.js
deleted file mode 100644
index c52ac835..00000000
--- a/.prev/jest.config.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- testURL: 'http://localhost:8000',
-}
diff --git a/.prev/manifest.json b/.prev/manifest.json
deleted file mode 100644
index 5668584c..00000000
--- a/.prev/manifest.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "name": "Comty",
- "start_url": ".",
- "display": "standalone",
- "background_color": "white",
- "description": "RageStudio users dashboard",
- "icons": [
- {
- "src": "logo.svg"
- }
- ]
-}
diff --git a/.prev/package.json b/.prev/package.json
deleted file mode 100644
index 0d0a8b6a..00000000
--- a/.prev/package.json
+++ /dev/null
@@ -1,131 +0,0 @@
-{
- "name": "comty-development",
- "UUID": "C8mVSr-4nmPp2-pr5Vrz-CU4kg4",
- "title": "Comty™",
- "DevBuild": true,
- "version": "0.3.02",
- "stage": "dev-pre",
- "description": "",
- "main": "app/main.js",
- "author": "RageStudio",
- "license": "ISC",
- "build": {
- "appId": "com.ragestudio.comtydesktop",
- "mac": {
- "category": "ragestudio.comty.social.desktop"
- }
- },
- "dependencies": {
- "@ant-design/compatible": "^1.0.1",
- "@ant-design/pro-layout": "^5.0.6",
- "@capacitor/android": "^1.5.2",
- "@capacitor/cli": "^1.5.2",
- "@capacitor/core": "^1.5.2",
- "@lingui/react": "^2.9.1",
- "@material-ui/core": "^4.9.3",
- "@material-ui/icons": "^4.9.1",
- "antd": "^4.1.0",
- "axios": "^0.19.2",
- "bag.js": "0.0.2",
- "classnames": "^2.2.6",
- "cryptr": "^6.0.1",
- "dotenv": "^8.2.0",
- "dva": "2.4.1",
- "dva-model-extend": "^0.1.2",
- "enquire-js": "^0.2.1",
- "jquery": "^3.4.1",
- "jsonwebtoken": "^8.5.1",
- "localforage": "^1.7.3",
- "lodash": "^4.17.15",
- "md5": "^2.2.1",
- "moment": "^2.24.0",
- "node-sass": "^4.13.1",
- "nprogress": "^0.2.0",
- "os-utils": "0.0.14",
- "path-to-regexp": "^6.1.0",
- "plyr-react": "^2.2.0",
- "prop-types": "^15.7.2",
- "radium": "^0.26.0",
- "react-animations": "^1.0.0",
- "react-dazzle": "^1.4.0",
- "react-google-recaptcha": "^2.0.1",
- "react-helmet": "^5.2.1",
- "react-perfect-scrollbar": "^1.5.8",
- "react-reveal": "^1.2.2",
- "react-scripts": "^3.4.1",
- "react-select-country-list": "^2.1.2",
- "react-sound": "^1.2.0",
- "react-virtualized": "^9.21.2",
- "socket.io-client": "^2.3.0",
- "store": "^2.0.12",
- "timeago.js": "^4.0.2",
- "ts-cookies": "^1.0.0",
- "umi-plugin-datahub": "^4.1.0",
- "validator": "^12.2.0"
- },
- "devDependencies": {
- "@lingui/babel-preset-react": "^2.9.1",
- "@lingui/cli": "^2.9.1",
- "@lingui/loader": "^2.9.1",
- "@types/react": "^16.9.19",
- "babel-core": "7.0.0-bridge.0",
- "babel-eslint": "^10.0.3",
- "babel-plugin-dev-expression": "^0.2.2",
- "babel-plugin-import": "^1.13.0",
- "babel-plugin-macros": "^2.8.0",
- "babel-plugin-module-resolver": "^4.0.0",
- "cross-env": "^7.0.0",
- "eslint": "^6.8.0",
- "eslint-config-react-app": "^5.2.0",
- "eslint-plugin-flowtype": "^4.6.0",
- "eslint-plugin-import": "^2.20.1",
- "eslint-plugin-jsx-a11y": "^6.2.3",
- "eslint-plugin-react": "^7.18.3",
- "husky": "^4.2.3",
- "less-vars-to-js": "^1.3.0",
- "lint-staged": "^10.0.7",
- "module": "^1.2.5",
- "now": "^17.0.3",
- "prettier": "^1.19.1",
- "rimraf": "^3.0.2",
- "stylelint": "^13.1.0",
- "stylelint-config-prettier": "^8.0.1",
- "stylelint-config-standard": "^20.0.0",
- "typescript": "^3.8.3",
- "umi": "^2.13.3",
- "umi-plugin-react": "^1.15.2",
- "wait-on": "^4.0.0",
- "workbox-webpack-plugin": "^5.0.0"
- },
- "engines": {
- "node": ">= 10.0.0"
- },
- "lingui": {
- "fallbackLocale": "en",
- "sourceLocale": "en",
- "localeDir": "src/locales",
- "srcPathDirs": [
- "src/pages",
- "src/layouts",
- "src/components",
- "src/layouts"
- ],
- "format": "minimal",
- "extractBabelOptions": {
- "presets": [
- "umi/babel"
- ]
- }
- },
- "scripts": {
- "clean": "rimraf dist",
- "analyze": "cross-env ANALYZE=1 umi build",
- "build": "umi build",
- "start": "umi dev",
- "test": "cross-env BABELRC=none umi test",
- "prettier": "prettier --write 'src/**/*.{js,less}'",
- "add-locale": "lingui add-locale",
- "extract": "lingui extract",
- "trans": "lingui extract --clean && node ./scripts/translate.js"
- }
-}
diff --git a/.prev/public/dark_full_logo.svg b/.prev/public/dark_full_logo.svg
deleted file mode 100644
index 78e90e9a..00000000
--- a/.prev/public/dark_full_logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-BalckComtyNG-Logo
\ No newline at end of file
diff --git a/.prev/public/dark_logo.svg b/.prev/public/dark_logo.svg
deleted file mode 100644
index ef799d4a..00000000
--- a/.prev/public/dark_logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-black_icon_new2019_black
\ No newline at end of file
diff --git a/.prev/public/favicon.ico b/.prev/public/favicon.ico
deleted file mode 100644
index ad1b1170..00000000
Binary files a/.prev/public/favicon.ico and /dev/null differ
diff --git a/.prev/public/full_logo.svg b/.prev/public/full_logo.svg
deleted file mode 100644
index cc7477fb..00000000
--- a/.prev/public/full_logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-ComtyNG-Logo
\ No newline at end of file
diff --git a/.prev/public/logo.svg b/.prev/public/logo.svg
deleted file mode 100644
index afd838cd..00000000
--- a/.prev/public/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-icon_new2019_black
\ No newline at end of file
diff --git a/.prev/service-worker.js b/.prev/service-worker.js
deleted file mode 100644
index 54a3962a..00000000
--- a/.prev/service-worker.js
+++ /dev/null
@@ -1,133 +0,0 @@
-// This optional code is used to register a service worker.
-// register() is not called by default.
-
-// This lets the app load faster on subsequent visits in production, and gives
-// it offline capabilities. However, it also means that developers (and users)
-// will only see deployed updates on subsequent visits to a page, after all the
-// existing tabs open on the page have been closed, since previously cached
-// resources are updated in the background.
-
-// To learn more about the benefits of this model and instructions on how to
-// opt-in, read http://bit.ly/CRA-PWA
-
-const isLocalhost = Boolean(
- window.location.hostname === 'localhost' ||
- // [::1] is the IPv6 localhost address.
- window.location.hostname === '[::1]' ||
- // 127.0.0.1/8 is considered localhost for IPv4.
- window.location.hostname.match(
- /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
- )
-);
-
-export function register(config) {
- if ('serviceWorker' in navigator) {
- console.log("The URL constructor is available in all browsers that support SW")
- const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
- if (publicUrl.origin !== window.location.origin) {
- console.log("Our service worker won't work if PUBLIC_URL is on a different origin from what our page is served on.")
- return;
- }
-
- window.addEventListener('load', () => {
- const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
- console.log('Loading event...')
- if (isLocalhost) {
- // This is running on localhost. Let's check if a service worker still exists or not.
- checkValidServiceWorker(swUrl, config);
-
- // Add some additional logging to localhost, pointing developers to the
- // service worker/PWA documentation.
- navigator.serviceWorker.ready.then(() => {
- console.log(
- 'This web app is being served cache-first by a service ' +
- 'worker. To learn more, visit http://bit.ly/CRA-PWA'
- );
- });
- } else {
- // Is not localhost. Just register service worker
- registerValidSW(swUrl, config);
- }
- });
- }
-}
-
-function registerValidSW(swUrl, config) {
- navigator.serviceWorker
- .register(swUrl)
- .then(registration => {
- registration.onupdatefound = () => {
- const installingWorker = registration.installing;
- if (installingWorker == null) {
- return;
- }
- installingWorker.onstatechange = () => {
- if (installingWorker.state === 'installed') {
- if (navigator.serviceWorker.controller) {
- // At this point, the updated precached content has been fetched,
- // but the previous service worker will still serve the older
- // content until all client tabs are closed.
- console.log(
- 'New content is available and will be used when all ' +
- 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'
- );
-
- // Execute callback
- if (config && config.onUpdate) {
- config.onUpdate(registration);
- }
- } else {
- // At this point, everything has been precached.
- // It's the perfect time to display a
- // "Content is cached for offline use." message.
- console.log('Content is cached for offline use.');
-
- // Execute callback
- if (config && config.onSuccess) {
- config.onSuccess(registration);
- }
- }
- }
- };
- };
- })
- .catch(error => {
- console.error('Error during service worker registration:', error);
- });
-}
-
-function checkValidServiceWorker(swUrl, config) {
- // Check if the service worker can be found. If it can't reload the page.
- fetch(swUrl)
- .then(response => {
- // Ensure service worker exists, and that we really are getting a JS file.
- const contentType = response.headers.get('content-type');
- if (
- response.status === 404 ||
- (contentType != null && contentType.indexOf('javascript') === -1)
- ) {
- // No service worker found. Probably a different app. Reload the page.
- navigator.serviceWorker.ready.then(registration => {
- registration.unregister().then(() => {
- window.location.reload();
- });
- });
- } else {
- // Service worker found. Proceed as normal.
- registerValidSW(swUrl, config);
- }
- })
- .catch(() => {
- console.log(
- 'No internet connection found. App is running in offline mode.'
- );
- });
-}
-
-export function unregister() {
- if ('serviceWorker' in navigator) {
- navigator.serviceWorker.ready.then(registration => {
- registration.unregister();
- });
- }
-}
diff --git a/.prev/setupTests.js b/.prev/setupTests.js
deleted file mode 100644
index 330f214a..00000000
--- a/.prev/setupTests.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const Enzyme = require('enzyme');
-// this is where we reference the adapter package we installed
-// earlier
-const EnzymeAdapter = require('enzyme-adapter-react-16');
-// This sets up the adapter to be used by Enzyme
-Enzyme.configure({ adapter: new EnzymeAdapter() });
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs.js b/.prev/src/@ycore/libs.js
deleted file mode 100644
index d405bf00..00000000
--- a/.prev/src/@ycore/libs.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// List of modules used for this app
-export * from './libs/comty_ng/pre.js';
-export * from './libs/ycore_sync/pre.js';
-export * from './libs/yulio_id/pre.js';
-export * from './libs/ycore_styles/pre.js';
-export * from './libs/ycore_sdcp/pre.js';
-export * from './libs/app_functions/pre.js';
-export * from './libs/rs_cloud/pre.js';
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/app_functions/modals.js b/.prev/src/@ycore/libs/app_functions/modals.js
deleted file mode 100644
index 4ee4be38..00000000
--- a/.prev/src/@ycore/libs/app_functions/modals.js
+++ /dev/null
@@ -1,126 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import styles from './modals.less';
-import classnames from 'classnames'
-
-const isMobile = localStorage.getItem('mobile_src')
-
-class __Model_postreport extends React.PureComponent {
- state = {
- step: 1
- }
- end(){
- if(this.props.id){
- const payload = { post_id: this.props.id }
- ycore.comty_post.__report((err, res) => {
- if (err) {
- return false
- }
- ycore.notify.info('This post has been reported successfully, our team will review it and inform you about problem resolution ...')
- ycore.FeedHandler.refresh()
- ycore.FeedHandler.goToElement(this.props.id)
- }, payload)
- }
- setTimeout(() => {
- ycore.SecondarySwap.close()
- }, 500)
-
- }
- next(){
- let a = this.state.step
-
- if(a<3)a++
- this.setState({step: a })
- }
- status(i){
- const a = this.state.step
- if (a==i) return 'process'
- if (a>i) return 'finish'
- if (a
- Report an post
-
This tool is intended for the community in a public way to help identify problematic or abusive content and for legitimate purposes.
- To ensure the proper use of this tool, before proceeding, you must understand the following:
- I understand and agree that my complaint may be sent to the party that posted the content in question.
- I understand that the abuse of this tool may have consequences for my account
- {this.state.term_1 && this.state.term_2? this.next()} >Next : null}
-
- )
- case 2:
- return(
-
-
-
For this report or complaint to be fair, make sure that the reason is for the following reasons:
-
-
- Harmful content or hate speech
-
- Violent or repulsive content
-
- Misleading advertising or spam
-
- Illegal activities
-
- Sexual content
-
- Or any other activity that violates the terms and conditions of use
-
I am sure and understand that the reason for this report is included in the above list.
-
{this.state.term_3?
this.next()} >Next : null}
-
-
- )
- case 3:
- return (
-
-
-
Given the above circumstances, to send this report or report please confirm that you understand and are following that you want to carry out this action
-
I am sure of what I do and I want to send this complaint or report
-
{this.state.term_confirm?
this.end()} >Send report : null}
-
-
- )
- default:
- return null
- }
- }
- validate = {
- term_1: (e) =>{this.setState({ term_1: e.target.checked })},
- term_2: (e) =>{this.setState({ term_2: e.target.checked })},
- term_3: (e) =>{this.setState({ term_3: e.target.checked })},
- confirm: (e) =>{this.setState({ term_confirm: e.target.checked })}
- }
-
- render(){
- return(
-
-
-
- } />
- } />
- } />
-
-
- {this.renderStep()}
-
- )
- }
-}
-
-
-export const app_modals = {
- report_post: (post_id) => {
- antd.Modal.confirm({
- title: 'Report an post',
- icon: ,
- content: 'It seems that you want to report this post, first of all it is necessary that you take into account that this tool is only intended for serious cases and we need you to comply with some questions to be able to report this post and to guarantee the quality of service ...',
- onOk() {
- return ycore.SecondarySwap.openFragment(<__Model_postreport id={post_id} />)
- },
- onCancel() {
- return false
- },
- });
- }
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/app_functions/pre.js b/.prev/src/@ycore/libs/app_functions/pre.js
deleted file mode 100644
index 3e5c5f8d..00000000
--- a/.prev/src/@ycore/libs/app_functions/pre.js
+++ /dev/null
@@ -1,219 +0,0 @@
-import { RenderFeed } from 'components/MainFeed'
-import { transitionToogle } from '../../../pages/login'
-import { SetControls, CloseControls } from '../../../components/Layout/Control'
-import { SwapMode } from '../../../components/Layout/Secondary'
-import umiRouter from 'umi/router'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import React from 'react'
-
-export * from './modals.js'
-
-
-
-export function QueryRuntime() {
- const validBackup = ycore.validate.backup()
-
- if (!validBackup) ycore.make_data.backup()
- ycore.sync.listen((data) => {
-
- })
-
-}
-
-export function SetupApp() {
- // TODO: Default sets
- ycore.notify.success('Authorised, please wait...')
- const resourceLoad = localStorage.getItem('resource_bundle')
- if (!resourceLoad) {
- localStorage.setItem('resource_bundle', 'light_ng')
- }
- setTimeout(() => {
- ycore.router.push('main')
- }, 500)
-}
-
-export const CheckThisApp = {
- desktop_mode: () => {
- const a = localStorage.getItem('desktop_src')
- if (a == 'true') {
- return true
- }
- return false
- },
-}
-
-export const SecondarySwap = {
- close: () => {
- SwapMode.close()
- },
- openPost: e => {
- SwapMode.openPost(e)
- },
- openSearch: e => {
- SwapMode.openSearch(e)
- },
- openFragment: e =>{
- SwapMode.openFragment(e)
- }
-}
-
-export const ControlBar = {
- set: e => {
- SetControls(e)
- },
- close: () => {
- CloseControls()
- },
-}
-
-export const FeedHandler = {
- refresh: () => {
- RenderFeed.RefreshFeed()
- },
- killByID: (post_id) => {
- RenderFeed.killByID(post_id)
- },
- addToRend: (payload) => {
- RenderFeed.addToRend(payload)
- },
- goToElement: post_id => {
- RenderFeed.goToElement(post_id)
- },
- sync: data => {
- RenderFeed.sync(data)
- }
-}
-
-export const LoginPage = {
- transitionToogle: () => {
- transitionToogle()
- },
-}
-
-export const router = {
- go: e => {
- goTo.element('primaryContent')
- umiRouter.push({
- pathname: `/${e}`,
- search: window.location.search,
- })
- },
- push: e => {
- umiRouter.push({
- pathname: `/${e}`,
- search: window.location.search,
- })
- },
- goprofile: () => {
- goTo.element('primaryContent')
- umiRouter.push({
- pathname: `/@${ycore.userData().username}`,
- search: window.location.search,
- })
- }
-}
-
-export const goTo = {
- top: (id)=> {
- const element = document.getElementById(id)
- element.scrollTop = element.scrollHeight + element.clientHeight
- },
- bottom: (id) => {
- const element = document.getElementById(id)
- element.scrollTop = element.scrollHeight - element.clientHeight
- },
- element: (element) => {
- try {
- document.getElementById(element).scrollIntoView()
- } catch (error) {
- return false
- }
- }
-
-}
-
-export function RefreshONCE() {
- window.location = '/'
-}
-
-export const app_session = {
- login: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { EncUsername, EncPassword } = payload
-
- let username = atob(EncUsername)
- let password = atob(EncPassword)
-
- const containerpayload = { username, password }
- ycore.__rscloud.yulio_id.auth((err, res) => {
- if (err) {
- return false
- }
- try {
- var identState = JSON.parse(res)['api_status']
- if (identState == 200) {
- const UserID = JSON.parse(res)['user_id']
- const UserToken = JSON.parse(res)['access_token']
-
- const preframepayload = { user_token: UserToken, user_id: UserID}
- ycore.__rscloud.sdcp_cloud.get(
- (err, res) => {
- if (err) {
- return false
- }
-
- let framepayload = { token: { UserID, UserToken }, sdcp: res }
- ycore.yconsole.log('FRAME ', framepayload)
-
- ycore.__CTID_GEN((err, res) => {
- if (err) {
- ycore.notify.error('Critical error, token declined!')
- return false
- }
- ycore.SetupApp()
- callback(null, '200')
- }, framepayload)
- },
- preframepayload
- )
- }
- if (identState == 400) {
- callback(null, '400')
- }
- } catch (error) {
- console.log(error)
- callback(true, '500')
- ycore.notify.error('Server bad response')
- }
- }, containerpayload)
- },
- logout: () => {
- ycore.__rscloud.yulio_id.logout((err, res) => {
- if (err) {
- return false
- }
- console.log(res)
- const api_state = JSON.parse(res)['api_status']
- ycore.yconsole.log(`Exit with => ${api_state}`)
- if (api_state == '404') {
- antd.notification.open({
- placement: 'topLeft',
- message: 'Unexpectedly failed logout in YulioID™ ',
- description:
- 'It seems that your token has been removed unexpectedly and could not log out from YulioID ',
- icon: ,
- })
- ycore.yconsole.log('Failed logout with YulioID™', res)
- } else {
- ycore.yconsole.log('Successful logout with YulioID™', res)
- }
- // Runtime after dispatch API
- ycore.token_data.remove()
- ycore.router.push('login')
- })
- },
-}
diff --git a/.prev/src/@ycore/libs/comty_ng/comty_get.js b/.prev/src/@ycore/libs/comty_ng/comty_get.js
deleted file mode 100644
index 2e0eb133..00000000
--- a/.prev/src/@ycore/libs/comty_ng/comty_get.js
+++ /dev/null
@@ -1,65 +0,0 @@
-import { API_Call, endpoints, sdcp } from 'ycore'
-
-export const comty_get = {
- sessions: (callback) => {
- let formdata = new FormData()
- formdata.append('type', 'get')
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.all_sessions,
- formdata
- )
- },
- session_id: callback => {
- let formdata = new FormData()
- formdata.append('type', 'get')
-
- API_Call((err,res) => {
- if (err) return false
- try {
- const a = JSON.parse(res)['data']
- return callback(err, a.session_id)
- } catch (error) {
- return callback(err, '0x0000')
- }
- },
- endpoints.comty_endpoints.get_sessions,
- formdata)
- },
- session: (callback) => {
- let formdata = new FormData()
- formdata.append('type', 'get')
-
- API_Call((err,res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_sessions,
- formdata)
- },
- general_data: (callback, payload) => {
- let formdata = new FormData();
- let callOptions = { includeUserID: false };
-
- if (!payload) {
- callOptions = { includeUserID: true }
- formdata.append('fetch', 'notifications,friend_requests,pro_users,promoted_pages,trending_hashtag,count_new_messages')
- }
-
- if (payload) {
- payload.user_id? formdata.append('user_id', payload.user_id) : null
- payload.fetch? formdata.append('fetch', payload.fetch) : null
- }
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_general_data,
- formdata, callOptions
- )
-
- },
-}
diff --git a/.prev/src/@ycore/libs/comty_ng/comty_post.js b/.prev/src/@ycore/libs/comty_ng/comty_post.js
deleted file mode 100644
index e7f06dc7..00000000
--- a/.prev/src/@ycore/libs/comty_ng/comty_post.js
+++ /dev/null
@@ -1,209 +0,0 @@
-import { API_Call, endpoints, AppSettings, yconsole } from 'ycore'
-
-export const comty_post = {
- getFeed: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { fkey, type, id } = payload
-
- let formdata = new FormData()
- formdata.append('after_post_id', fkey || 0)
- formdata.append('limit', AppSettings.limit_post_catch || 20)
- switch (type) {
- case 'feed':
- formdata.append('type', 'get_news_feed')
- break
- case 'user':
- formdata.append('type', 'get_user_posts')
- formdata.append('id', id)
- break
- default:
- formdata.append('type', 'get_news_feed')
- break
- }
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_posts,
- formdata
- )
- },
- get: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id, fetch } = payload
-
- let formdata = new FormData()
- formdata.append('post_id', post_id)
- formdata.append(
- 'fetch',
- fetch || 'post_data,post_comments,post_wondered_users,post_liked_users'
- )
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_post_data,
- formdata
- )
- },
- new: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { privacy, text, file } = payload
-
- let formdata = new FormData()
- formdata.append('type', 'new_post')
- formdata.append('postPrivacy', privacy)
- formdata.append('postText', text)
- file ? formdata.append('uploadFile', file) : null
-
- const callOptions = { includeUserID: true }
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.new_post,
- formdata,
- callOptions
- )
- },
- delete: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'delete')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
- save: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'save')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
- like: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'like')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
- getSaved: (callback, payload) => {
- if (!payload) {
- yconsole.log(
- 'Calling api without Payload!!! | Limmit & OffsetKey = default |'
- )
- }
- if (payload) {
- const { limit, fkey } = payload
- }
-
- let formdata = new FormData()
- formdata.append('type', 'saved')
- formdata.append('limit', payload? limit : AppSettings.limit_post_catch || 20)
- formdata.append('after_post_id', payload? fkey : 0)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_posts,
- formdata
- )
- },
- edit: (callback, payload) => {},
- __pin: (callback, payload) => {},
- __boost: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'boost')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
- __disableComments: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'disable_comments')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
- __report: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'report')
- formdata.append('post_id', post_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
-}
diff --git a/.prev/src/@ycore/libs/comty_ng/comty_search.js b/.prev/src/@ycore/libs/comty_ng/comty_search.js
deleted file mode 100644
index fe9da074..00000000
--- a/.prev/src/@ycore/libs/comty_ng/comty_search.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { API_Call, endpoints } from 'ycore'
-
-export const comty_search = {
- keywords: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { key } = payload
-
- let formdata = new FormData()
- formdata.append('search_key', key)
-
- const callOptions = { timeout: 10000 }
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.search_endpoint,
- formdata,
- callOptions
- )
- },
-}
diff --git a/.prev/src/@ycore/libs/comty_ng/comty_user.js b/.prev/src/@ycore/libs/comty_ng/comty_user.js
deleted file mode 100644
index ac374d98..00000000
--- a/.prev/src/@ycore/libs/comty_ng/comty_user.js
+++ /dev/null
@@ -1,75 +0,0 @@
-import { API_Call, endpoints } from 'ycore'
-import { comty_rsa } from '../rs_cloud/pre'
-
-export const comty_user = {
- setData: () => {},
- follow: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { user_id } = payload
-
- let formdata = new FormData()
- formdata.append('user_id', user_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.follow_user,
- formdata
- )
- },
- block: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { user_id, block_action } = payload
- let formdata = new FormData()
- formdata.append('user_id', user_id)
- formdata.append('block_action', block_action)
-
- API_Call((err,res)=>{
- return callback(err,res)
- },
- comty_rsa.endpoint('block-user'),
- formdata
- )
- },
- find: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { key } = payload
-
- let formdata = new FormData()
- formdata.append('search_key', key)
-
- const callOptions = { timeout: 10000 }
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.find_user,
- formdata,
- callOptions
- )
- },
- __tags: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { id } = payload
-
- let formdata = new FormData()
- formdata.append('user_id', id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.get_user_tags,
- formdata
- )
- },
-}
diff --git a/.prev/src/@ycore/libs/comty_ng/pre.js b/.prev/src/@ycore/libs/comty_ng/pre.js
deleted file mode 100644
index 273d7117..00000000
--- a/.prev/src/@ycore/libs/comty_ng/pre.js
+++ /dev/null
@@ -1,64 +0,0 @@
-import { token_data } from 'ycore'
-import * as Icons from '@ant-design/icons'
-
-export * from './comty_post.js'
-export * from './comty_user.js'
-export * from './comty_post_comment.js'
-export * from './comty_search.js'
-export * from './comty_get.js'
-
-
-
-export const IsThisPost = {
- owner: (post_uid) => {
- const a = token_data.__id()
- if (post_uid == a) {
- return true
- }
- return false
- },
- boosted: () => {
-
- },
- saved: () => {
-
- },
- pinned: () => {
-
- },
- flagged: () => {
-
- }
-}
-
-export const GetPostPrivacy = {
- bool: (e) => {
- switch (e) {
- case 'any':
- return '0'
- case 'only_followers':
- return '1'
- case 'only_follow':
- return '2'
- case 'private':
- return '3'
- default:
- return '0'
- }
- },
- decorator: (e) => {
- switch (e) {
- case 'any':
- return Share with everyone
- case 'only_follow':
- return Share with people I follow
- case 'only_followers':
- return Share with people follow me
- case 'private':
- return Dont share, only me
- default:
- return Unknown
- }
- },
-
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/rs_cloud/api_call.js b/.prev/src/@ycore/libs/rs_cloud/api_call.js
deleted file mode 100644
index 41844f7a..00000000
--- a/.prev/src/@ycore/libs/rs_cloud/api_call.js
+++ /dev/null
@@ -1,95 +0,0 @@
-import jquery from 'jquery'
-import * as ycore from 'ycore'
-
-export function API_Call(callback, endpoint, payload, options, __token) {
- var prefix = `[API_Call] `
- if (!endpoint) return false
- if (!payload) {
- ycore.yconsole.log(prefix, 'Calling api without Payload!!!')
- }
- let payloadContainer = payload ? payload : new FormData()
- payloadContainer.append('server_key', ycore.__server.getKey())
-
- const autoIncludeToken = endpoint.includes('?access_token=')
-
- const defaultOptions = {
- method: 'POST',
- timeout: 0,
- processData: false,
- includeUserID: false,
- override__token: false,
- disabledToken: autoIncludeToken ? false : true,
- }
-
- let fendpoint
- let method = defaultOptions.method
- let timeout = defaultOptions.timeout
- let processData = defaultOptions.processData
- let includeUserID = defaultOptions.includeUserID
- let override__token = defaultOptions.override__token
- let disabledToken = defaultOptions.disabledToken
-
- if (options) {
- options.method ? (method = options.method) : null
- options.timeout ? (timeout = options.timeout) : null
- options.processData ? (processData = true) : null
- options.includeUserID ? (includeUserID = true) : null
- options.override__token ? (override__token = true) : null
- options.disabledToken ? (disabledToken = true) : null
- }
-
- if (disabledToken) {
- ycore.yconsole.log(`${prefix} Dimmissing the token generation`)
- fendpoint = `${endpoint}`
- }
-
- if (!disabledToken && !override__token) {
- fendpoint = `${endpoint}${ycore.token_data.__token()}`
- }
-
- if (override__token || __token) {
- if (!__token) {
- ycore.yconsole.log(`${prefix} Missing Overriding __token`)
- return
- }
- ycore.yconsole.log(`${prefix} Overriding __token => ${__token}`)
- fendpoint = `${endpoint}${__token}`
- }
-
- if (includeUserID) {
- payloadContainer.append('user_id', ycore.token_data.__id())
- }
-
- const requestOptions = {
- url: fendpoint,
- method: method,
- timeout: timeout,
- data: payloadContainer,
- mimeType: 'multipart/form-data',
- processData: processData,
- contentType: false,
- }
-
- jquery
- .ajax(requestOptions)
- .done(response => {
- try {
- const a = JSON.parse(response)['api_status']
- if (a == '404') {
- ycore.Alive_API.tokenError(response)
- }
- } catch (error) {
- ycore.yconsole.log(
- '[VIOLATION] The status of the request has not been identified!'
- )
- ycore.Alive_API.violation()
- }
- ycore.yconsole.log(response)
- return callback(false, response)
- })
- .fail(error => {
- ycore.yconsole.log(`${prefix} (ERROR) `, error)
- ycore.Alive_API.fail(error)
- return callback(true, error)
- })
-}
diff --git a/.prev/src/@ycore/libs/rs_cloud/pre.js b/.prev/src/@ycore/libs/rs_cloud/pre.js
deleted file mode 100644
index f180f1c7..00000000
--- a/.prev/src/@ycore/libs/rs_cloud/pre.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import * as ycore from 'ycore'
-export * from './api_call.js'
-import keys from '../../../../config/keys.js'
-
-export const Alive_API = {
- fail: a => {
- if (a) {
- ycore.yconsole.log(a)
- ycore.notify.error(a)
- }
- },
- tokenError: a => {
- ycore.notify.expire(
- 'It seems that your token has expired or no longer exists'
- )
- ycore.router.go('login')
- },
- violation: a => {
- ycore.notify.expire(
- 'It seems that there has been a problem with your token, we need you to log in again.'
- )
- ycore.router.go('login')
- },
-}
-export const __server = {
- getKey: () => {
- return keys.server_key
- },
-}
-export const __rscloud = {
- yulio_id: {
- auth: (callback, payload) => {
- if (!payload) return false
- const { username, password } = payload
-
- const formdata = new FormData()
- formdata.append('username', username)
- formdata.append('password', password)
-
- const callOptions = { disabledToken: true }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.endpoints.comty_endpoints.auth_endpoint,
- formdata,
- callOptions
- )
- },
- logout: callback => {
- const callOptions = { includeUserID: true }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.endpoints.comty_endpoints.removeToken,
- null,
- callOptions
- )
- },
- verify: (callback, payload) => {},
- sign: (callback, payload) => {},
- },
- sdcp_cloud: {
- get: (callback, payload) => {
- if (!payload) return false
- const { user_token, user_id } = payload
- const formdata = new FormData()
- formdata.append('fetch', 'user_data')
- formdata.append('user_id', user_id)
-
- const optionCall = { override__token: true }
- ycore.API_Call(
- (err, res) => {
- try {
- let cooked = JSON.parse(res)['user_data']
- let Ensamblator = btoa(JSON.stringify(cooked))
- return callback(err, Ensamblator)
- } catch (error) {
- return callback(true, error)
- }
- },
- ycore.endpoints.comty_endpoints.get_userData_endpoint,
- formdata,
- optionCall,
- user_token
- )
- },
- set: () => {},
- },
-}
-
-export const comty_rsa = {
- endpoint: (endpoint, options) => {
- let join_token = true;
- if (options) {
- join_token = options.join_token
- }
- return `${ycore.AppSettings.__global_server_prexif}${endpoint}${join_token? `?access_token=` : ``}`
- }
-}
diff --git a/.prev/src/@ycore/libs/ycore_sdcp/pre.js b/.prev/src/@ycore/libs/ycore_sdcp/pre.js
deleted file mode 100644
index 54191b4a..00000000
--- a/.prev/src/@ycore/libs/ycore_sdcp/pre.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import * as ycore from 'ycore'
-import localforage from 'localforage'
-
-export const sdcp = {
- isset: (value) => {
- if (!value) return false
- ycore.sdcp.localforage.getItem(value)? true : false
- },
- set: (operator) => {
- if (!operator) return false
- try {
- let a;
- let b;
-
- let { callback, model } = operator
- const {key, value} = model
- if (!typeof key === 'string' || ! a instanceof String) return false
-
- a = ycore.sdcp.get(key)
- if (!a.isArray()) return false
-
- b = JSON.parse(a).concat(value)
-
- localforage.setItem(key, b)
-
- } catch (err) {
- console.log(err)
- return false
- }
- },
- get: (key) => {
- try {
- return localforage.getItem(key)
- } catch (err) {
- return false
- }
- },
-
-}
-
-export const cryptSDCP = {
- atob_parse: e => {
- if (e) {
- try {
- atob(e)
- } catch (err) {
- ycore.notify.error(err)
- ycore.router.go('login')
- return false
- }
- try {
- let decodedSDCP = atob(e)
- let parsedSDCP = JSON.parse(decodedSDCP)
- return parsedSDCP
- } catch (err) {
- ycore.notify.error(err)
- ycore.router.go('login')
- return false
- }
- }
- return false
- },
- valid: () => {
- const a = ycore.sdcp.get()
- return a ? true : false
- },
-}
diff --git a/.prev/src/@ycore/libs/ycore_styles/pre.js b/.prev/src/@ycore/libs/ycore_styles/pre.js
deleted file mode 100644
index 16f1f74f..00000000
--- a/.prev/src/@ycore/libs/ycore_styles/pre.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import {AppSettings} from 'ycore'
-
-export function CurrentTheme(){
- try {
- const bundle = localStorage.getItem('resource_bundle') || AppSettings.resource_bundle
- console.log('Loading resource Bundle =>', bundle)
- return bundle
- } catch (error) {
- return null
- }
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/ycore_styles/ycore_style.scss b/.prev/src/@ycore/libs/ycore_styles/ycore_style.scss
deleted file mode 100644
index 5759afe8..00000000
--- a/.prev/src/@ycore/libs/ycore_styles/ycore_style.scss
+++ /dev/null
@@ -1,1488 +0,0 @@
-/* (2.0) YulioID V2 */
-
-@import url('https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css');
-@import url('https://fonts.googleapis.com/css?family=Poppins:300,300i,500,500i,700');
-
-
-
-.mainlp {
- --neutralShade0: #f8f8f8;
- --neutralShade1: #f2f2f2;
- --neutralShade2: #e8e9e9;
- --neutralShade3: #d1d3d4;
- --neutralShade4: #babdbf;
- --neutralShade5: #808488;
- --neutralShade6: #666a6d;
- --neutralShade7: #4d5052;
- --neutralShade8: #212122;
- --grayColor: #999;
- --lightGrayColor: #ddd;
- --borderRadius: 6px;
- --boxShadow: 0 2px 5px rgba(#333, 0.2);
-}
-
-/*overall layout*/
-.mainlp {
- width: 90%;
- max-width: 1050px;
- margin: 3em auto 0;
- display: grid;
- grid: repeat(5, fit-content(300px))/100%;
- color: var(--foregroundColor);
- text-align: left;
-}
-
-.mainlp .sectionlp {
- border: 1px solid var(--accentColor);
- position: relative;
- padding: 40px 40px 50px;
-}
-
-.mainlp .sectionlp>h6 {
- color: var(--accentColor);
- background: var(--canvasColor);
- position: absolute;
- top: -10px;
- left: 20px;
- padding: 0 10px;
-}
-
-.mainlp .sectionlp .h6lp.subheader {
- color: var(--grayColor);
- margin-top: 20px;
- margin-bottom: 20px;
- width: 100%;
-}
-
-@media (max-width: 992px) {
- section:not(:last-child) {
- border-width: 0 0 1px;
- }
-
- section:last-child {
- border-width: 0;
- }
-}
-
-@media (min-width: 992px) {
- main {
- grid: repeat(9, auto)/45% 1fr 45%;
- grid-auto-flow: dense;
- }
-
- .media-card-1 {
- grid-column: 1 / 2;
- border-width: 1px 0;
- }
-
- .media-card-2 {
- grid-column: 2 / 4;
- border-width: 1px 0 1px 1px;
- }
-
- .media-card-3 {
- grid-column: 1 / 4;
- border-width: 0;
- }
-
- .filter-section {
- grid-column: 3 / 4;
- grid-row: 1 / 2;
- border-width: 0 0 0 1px;
- }
-
- .well-cta-1 {
- grid-row: 3;
- grid-column: 1 / 3;
- border-width: 1px 1px 0 0;
- }
-
- .well-cta-2 {
- grid-row: 2;
- grid-column: 2 / 4;
- border-width: 1px 0 0;
- }
-
- .tables {
- grid-row: 4;
- grid-column: 1 / -1;
- border-width: 1px 0 0;
- }
-
- .forms {
- grid-column: 1 / 3;
- border-width: 0;
- }
-
- .comments {
- grid-row: 2;
- grid-column: 1 / 2;
- border-width: 1px 1px 0 0;
- padding-top: 60px;
- }
-
- .modals {
- grid-row: 3;
- grid-column: 3 / 4;
- justify-content: center;
- border-width: 1px 0 0;
- }
-}
-
-
-/*checkboxes*/
-input:disabled~* {
- opacity: 0.3;
- user-select: none;
- pointer-events: none;
-}
-
-.checkboxtoggle input {
- display: none;
-}
-
-.checkboxtoggle label {
- outline: 0;
- display: block;
- width: 45px;
- height: 16px;
- background: var(--grayColor);
- position: relative;
- cursor: pointer;
- border-radius: 2em;
- padding: 2px;
- transition: all 0.4s ease;
- margin: 0;
-}
-
-.checkboxtoggle .labellp:after {
- position: relative;
- display: block;
- content: "";
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background: #fff;
- transition: all 0.2s ease;
- border: 1px solid var(--grayColor);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
- left: -4px;
- top: -5px;
-}
-
-.checkboxtoggle input:checked+.labellp {
- background: var(--accent2Color);
-}
-
-.checkboxtoggle input:checked+.labellp:after {
- left: 52%;
-}
-
-.checkbox {
- position: relative;
- user-select: none;
- margin-bottom: 10px;
-}
-
-.checkbox input {
- display: none;
-}
-
-.checkbox .labellp {
- position: relative;
- vertical-align: middle;
- cursor: pointer;
- font-weight: 500;
- padding-left: 35px;
-}
-
-.checkbox .spanlp.box {
- display: inline-block;
- width: 20px;
- border-radius: var(--borderRadius);
- border: 1px solid var(--grayColor);
- width: 24px;
- height: 24px;
- vertical-align: middle;
- margin-right: 3px;
- transition: 0.3s ease;
- position: absolute;
- left: 0;
-}
-
-.checkbox .spanlp.box:before,
-.checkbox .spanlp.box:after {
- content: "";
- position: absolute;
- width: 4px;
- height: 16px;
- border-radius: 40px;
- background: var(--backgroundColor);
- transition: all 0.3s ease;
-}
-
-.checkbox .spanlp.box:before {
- transform: rotate(45deg) translateY(-5px) translateX(10px) scale(0);
-}
-
-.checkbox .spanlp.box:after {
- height: 8px;
- transform: rotate(-45deg) translateY(10px) translateX(-4px) scale(0);
-}
-
-.checkbox input:checked+.labellp .spanlp.box {
- background: var(--accent2Color);
- border-color: var(--accent2Color);
-}
-
-.checkbox input:checked+.labellp .spanlp.box:before {
- transform: rotate(45deg) translateY(-5px) translateX(10px) scale(1);
-}
-
-.checkbox input:checked+.labellp .spanlp.box:after {
- height: 8px;
- transform: rotate(-45deg) translateY(10px) translateX(-4px) scale(1);
-}
-
-.checkbox input:disabled:checked+.spanlp.box {
- background: var(--grayColor);
- border: var(--grayColor);
-}
-
-.checkbox input:disabled:checked~.labellp:before,
-.checkbox input:disabled:checked~.labellp:after {
- background: black;
-}
-
-/*buttons & links*/
-.links__sec {
- margin: 10px 0 30px;
-}
-
-.links a.link {
- display: inline;
- margin: 10px 30px 5px 0;
- border-bottom: 2px dashed;
- font-weight: 500;
- line-height: 2.5;
- cursor: pointer;
- color: var(--neutralShade5);
-}
-
-.links a.link:hover,
-.links a.link.hover {
- color: var(--neutralShade6);
- border-bottom: 2px solid;
-}
-
-.links a.link.primary {
- color: var(--primaryColor);
-}
-
-.links a.link.primary:hover,
-.links a.link.primary.hover {
- color: var(--primaryShade5);
-}
-
-.links a.link.secondary {
- color: var(--secondaryColor);
-}
-
-.links a.link.secondary:hover,
-.links a.link.secondary.hover {
- color: var(--secondaryShade5);
-}
-
-.buttons {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
-}
-
-.buttons>* {
- flex: 1 1 calc(50% - 20px);
- margin-top: 20px;
-}
-
-.buttons>*:nth-child(odd) {
- margin-right: 20px;
-}
-
-a.buttonlp,
-input.buttonlp,
-.buttonlp {
- outline: none;
- width: 100%;
- text-align: center;
- display: inline-block;
- border: none;
- font: 500 16px/1 "Poppins", sans-serif;
- padding: 20px;
- cursor: pointer;
- border-radius: var(--borderRadius);
- background: var(--primaryColor);
- color: var(--backgroundColor);
- position: relative;
- top: 0;
- transition: 0.2s ease;
-}
-
-a.buttonlp:hover,
-a.buttonlp.hover,
-input.buttonlp:hover,
-input.buttonlp.hover,
-.buttonlp:hover,
-.buttonlp.hover {
- top: -3px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
-}
-
-a.buttonlp:active,
-a.buttonlp.active,
-input.buttonlp:active,
-.input.buttonlp.active,
-.buttonlp:active,
-.buttonlp.active {
- background: var(--primaryShade4);
- outline: none;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- top: 0;
-}
-
-a.buttonlp.disabled,
-input.buttonlp.disabled,
-.buttonlp.disabled {
- opacity: 0.4;
- user-select: none;
- pointer-events: none;
-}
-
-a.buttonlp.medium,
-input.buttonlp.medium,
-.buttonlp.medium {
- padding: 15px 18px;
- width: auto;
-}
-
-a.buttonlp.small,
-input.buttonlp.small,
-.buttonlp.small {
- padding: 10px 12px;
- width: auto;
- font-size: 14px;
- font-weight: 500;
-}
-
-a.buttonlp.secondary,
-input.buttonlp.secondary,
-.buttonlp.secondary {
- background: var(--secondaryColor);
-}
-
-a.buttonlp.secondary:active,
-a.buttonlp.secondary:focus,
-a.buttonlp.secondary.active,
-input.buttonlp.secondary:active,
-input.buttonlp.secondary:focus,
-input.buttonlp.secondary.active,
-.buttonlp.secondary:active,
-.buttonlp.secondary:focus,
-.buttonlp.secondary.active {
- background: var(--secondaryShade4);
- outline: none;
-}
-
-a.buttonlp.accent,
-input.buttonlp.accent,
-.buttonlp.accent {
- background: var(--accentColor);
-}
-
-a.buttonlp.accent:active,
-a.buttonlp.accent:focus,
-a.buttonlp.accent.active,
-input.buttonlp.accent:active,
-input.buttonlp.accent:focus,
-input.buttonlp.accent.active,
-.buttonlp.accent:active,
-.buttonlp.accent:focus,
-.buttonlp.accent.active {
- background: var(--accentShade4);
-}
-
-a.buttonlp.accent2,
-input.buttonlp.accent2,
-.buttonlp.accent2 {
- background: var(--accent2Color);
-}
-
-a.buttonlp.accent2:active,
-a.buttonlp.accent2:focus,
-a.buttonlp.accent2.active,
-input.buttonlp.accent2:active,
-input.buttonlp.accent2:focus,
-input.buttonlp.accent2.active,
-.buttonlp.accent2:active,
-.buttonlp.accent2:focus,
-.buttonlp.accent2.active {
- background: var(--accent2Shade4);
-}
-
-a.buttonlp.accent3,
-input.buttonlp.accent3,
-.buttonlp.accent3 {
- background: var(--accent3Color);
-}
-
-a.buttonlp.accent3:active,
-a.buttonlp.accent3:focus,
-a.buttonlp.accent3.active,
-input.buttonlp.accent3:active,
-input.buttonlp.accent3:focus,
-input.buttonlp.accent3.active,
-.buttonlp.accent3:active,
-.buttonlp.accent3:focus,
-.buttonlp.accent3.active {
- background: var(--accent3Shade4);
-}
-
-/*inputs*/
-.input__wrapper {
- margin-bottom: 10px;
-}
-
-
-.labelform {
- font-weight: 500;
- display: block;
- margin-bottom: 5px;
-}
-
-input.inputform,
-select,
-textarea {
- height: 50px;
- font-size: 16px;
- border: 2px solid var(--neutralShade3);
- width: 100%;
- padding: 12px;
- font-family: "Poppins";
- border-radius: var(--borderRadius);
- color: var(--foregroundColor);
- background: var(--backgroundColor);
-}
-
-input.inputform:focus,
-input.inputform.active,
-select:focus,
-select.active,
-textarea:focus,
-textarea.active {
- outline: none;
- border-color: var(--primaryColor);
-}
-
-input.inputform:disabled,
-select:disabled,
-textarea:disabled {
- cursor: not-allowed;
- background: var(--neutralShade1);
- opacity: 0.6;
-}
-
-input.inputform.input {
- height: 56px;
- font-size: 18px;
- padding: 15px;
-}
-
-/*badges*/
-.badge {
- display: inline-block;
- padding: 6px 12px;
- border-radius: 50px;
- font-weight: 500;
- text-transform: uppercase;
- line-height: 1;
-}
-
-.alert {
- margin-bottom: 15px;
- display: block;
- padding: 10px 15px;
- border-radius: var(--borderRadius);
- font-weight: 500;
- position: relative;
- cursor: pointer;
-}
-
-.alert.non-collapsible:before,
-.alert.non-collapsible:after {
- content: none;
-}
-
-.alert:before,
-.alert:after {
- content: "";
- position: absolute;
- width: 4px;
- height: 16px;
- border-radius: 40px;
- right: 30px;
- top: 8px;
-}
-
-.alert:before {
- transform: rotate(45deg) translateY(-5.5px) translateX(13.5px);
-}
-
-.alert:after {
- transform: rotate(-45deg) translateY(13.5px) translateX(5.5px);
-}
-
-.status-primary {
- background: var(--primaryShade1);
- color: var(--primaryShade5);
-}
-
-.status-primary:before,
-.status-primary:after {
- background: var(--primaryShade5);
-}
-
-.status-secondary {
- background: var(--secondaryShade1);
- color: var(--secondaryShade5);
-}
-
-.status-secondary:before,
-.status-secondary:after {
- background: var(--secondaryShade5);
-}
-
-.status-info {
- background: var(--accentShade1);
- color: var(--accentShade5);
-}
-
-.status-info:before,
-.status-info:after {
- background: var(--accentShade5);
-}
-
-.status-success {
- background: var(--accent2Shade1);
- color: var(--accent2Shade5);
-}
-
-.status-success:before,
-.status-success:after {
- background: var(--accent2Shade5);
-}
-
-.status-error {
- background: var(--accent3Shade1);
- color: var(--accent3Shade5);
-}
-
-.status-error:before,
-.status-error:after {
- background: var(--accent3Shade5);
-}
-
-/*tooltips*/
-.tooltip {
- cursor: pointer;
- position: relative;
- display: block;
- width: 100%;
- text-align: center;
- z-index: 10;
-}
-
-.tooltip .spanlp {
- border-bottom: 1px dotted;
-}
-
-.tooltip:after {
- content: attr(data-tooltip);
- background: var(--neutralShade2);
- max-width: 90%;
- width: auto;
- position: absolute;
- left: 0;
- right: 0;
- margin: auto;
- opacity: 0;
- height: auto;
- font-size: 14px;
- padding: 10px;
- border-radius: var(--borderRadius);
- color: var(--foregroundColor);
- text-align: center;
-}
-
-.tooltip.dark:after {
- background: var(--neutralShade7);
- color: var(--backgroundColor);
-}
-
-.tooltip.top:after {
- bottom: 80%;
- transition: opacity 0.3s ease 0.3s, bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
-}
-
-.tooltip.top:hover:after,
-.tooltip.top.hovered:after {
- bottom: 130%;
- opacity: 1;
-}
-
-.tooltip.bottom:after {
- top: 80%;
- transition: opacity 0.3s ease 0.3s, top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
-}
-
-.tooltip.bottom:hover:after,
-.tooltip.bottom.hovered:after {
- top: 130%;
- opacity: 1;
-}
-
-/*spinner*/
-.spinner+.labellp {
- font-size: 14px;
- font-weight: 500;
- margin-top: 8px;
- display: inline-block;
- text-transform: uppercase;
- color: var(--primaryShade4);
-}
-
-.spinner1 .spinner {
- max-width: 50px;
- margin: auto;
- height: 20px;
- position: relative;
-}
-
-.spinner1 .spinner:after {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: var(--primaryColor);
- animation: spinnerLeftRight 1s infinite;
-}
-
-.spinner1 .spinner:before {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: var(--primaryShade2);
- opacity: 1;
- animation: spinnerLeftRight 1s infinite 0.06s;
-}
-
-@keyframes spinnerLeftRight {
- 0% {
- left: 85%;
- }
-
- 50% {
- left: -10%;
- }
-
- 100% {
- left: 85%;
- }
-}
-
-
-#sunset+.labellp {
- background: linear-gradient(to right, #ff9557 50%, #ffcc67 50%);
-}
-
-.mainlp {
- --canvasColor: #f9f9f9;
- --backgroundColor: #fff;
- --foregroundColor: #111;
- --primaryColor: #ff9557;
- --primaryShade1: #ffe2d1;
- --primaryShade2: #ffceb2;
- --primaryShade3: #ffb184;
- --primaryShade4: #e88850;
- --primaryShade5: #d17a48;
- --secondaryColor: #ffcc67;
- --secondaryShade1: #fff1d5;
- --secondaryShade2: #ffde9e;
- --secondaryShade3: #ffd074;
- --secondaryShade4: #e8ba5e;
- --secondaryShade5: #ba954b;
- --accentColor: #4e5166;
- --accentShade1: #cecfd5;
- --accentShade2: #aeafb9;
- --accentShade3: #8e909d;
- --accentShade4: #6e7081;
- --accentShade5: #404354;
- --accent2Color: #588b8b;
- --accent2Shade1: #c2d4d4;
- --accent2Shade2: #a3bfbf;
- --accent2Shade3: #85aaaa;
- --accent2Shade4: #507f7f;
- --accent2Shade5: #497272;
- --accent3Color: #fe5f55;
- --accent3Shade1: #fec4c1;
- --accent3Shade2: #fea7a2;
- --accent3Shade3: #fe7c73;
- --accent3Shade4: #e7574e;
- --accent3Shade5: #b9463e;
-}
-
-
-
-/* PROFILE CARDS */
-.profile {
- position: relative;
- background: var(--backgroundColor);
- color: var(--foregroundColor);
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- border-radius: 10px;
- overflow: hidden;
- transition: .2s ease;
- display: grid;
- grid: 200px repeat(5, auto)/100%;
-}
-
-.profile__image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-bottom: 7px solid var(--secondaryColor);
-}
-
-.profile__info {
- padding: 20px 25px 0;
-}
-
-.profile__stats {
- padding: 5px 25px;
-}
-
-.profile__stats__title {
- color: var(--grayColor);
- text-transform: uppercase;
- font-size: 16px;
-}
-
-.profile__cta {
- padding: 0 25px 25px;
-}
-
-.profile a:hover {
- top: 0;
- box-shadow: none;
- background: var(--primaryShade4);
-}
-
-.profile a:active,
-.profile a:focus {
- top: 0;
- box-shadow: none;
- background: var(--primaryShade5);
-}
-
-@media (min-width: 500px) {
- .profile-default {
- min-width: 500px;
- max-width: 450px;
- margin: auto;
- overflow: hidden;
- grid: 340px auto auto/repeat(3, minmax(80px, 1fr));
- grid-gap: 10px;
- }
-
- .profile-default .profile__image {
- grid-column: span 3;
- }
-
- .profile-default .profile__info {
- grid-column: span 3;
- }
-
- .profile-default .profile__stats {
- padding: 5px 25px;
- }
-
- .profile-default .profile__cta {
- grid-column: span 3;
- }
-}
-
-@media (min-width: 768px) {
- .profile-long {
- grid-template-columns: 150px repeat(3, 1fr) auto;
- grid-template-rows: auto auto;
- width: 100%;
- padding-right: 20px;
- }
-
- .profile-long .profile__image {
- grid-column: 1 / 2;
- grid-row: 1 / 3;
- margin-right: 20px;
- }
-
- .profile-long .profile__image img {
- border-radius: 10px 0 0 10px;
- border: none;
- }
-
- .profile-long .profile__info {
- grid-column: 2 / 6;
- grid-row: 1;
- padding: 20px 20px 15px 0;
- }
-
- .profile-long .profile__stats {
- min-width: 100px;
- padding: 15px 0;
- border-top: 0.5px solid var(--grayColor);
- grid-row: 2 / 3;
- }
-
- .profile-long .profile__stats:nth-child(3) {
- grid-column: 2 / 3;
- }
-
- .profile-long .profile__stats:nth-child(4) {
- grid-column: 3 / 4;
- }
-
- .profile-long .profile__stats:nth-child(5) {
- grid-column: 4 / 5;
- }
-
- .profile-long .profile__cta {
- grid-row: 2 / 3;
- grid-column: 5 / 6;
- border-top: 0.5px solid var(--grayColor);
- padding: 15px 0 0;
- }
-}
-
-.profile-imgonly {
- border-radius: 10px;
- overflow: hidden;
- min-width: 250px;
- width: 100%;
- grid: 480px 0px / 100%;
-}
-
-.profile-imgonly:hover {
- grid: 434px 56px / 100%;
-}
-
-.profile-imgonly .profile__image,
-.profile-imgonly .profile__info {
- grid-row: 1 / 2;
- grid-column: 1 / 2;
-}
-
-.profile-imgonly .profile__image {
- position: relative;
-}
-
-.profile-imgonly .profile__image:after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 30%;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
-}
-
-.profile-imgonly .profile__image img {
- border: none;
-}
-
-.profile-imgonly .profile__stats {
- display: none;
-}
-
-.profile-imgonly .profile__info {
- z-index: 5;
- grid-row: 1 / 2;
- align-self: end;
- margin: 0 0 15px;
- color: #fff;
- text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
-}
-
-.profile-imgonly .profile__info p {
- display: none;
-}
-
-.profile-imgonly .profile__cta {
- padding: 0;
-}
-
-.profile-imgonly .profile__cta a {
- border-radius: 0;
-}
-
-#dark:checked~.mainlp a.buttonlp,
-#pinkaru:checked~.mainlp a.buttonlp {
- color: var(--foregroundColor);
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
-}
-
-#dark:checked~.mainlp .buttonlp:hover,
-#pinkaru:checked~.mainlp .buttonlp:hover {
- background: var(--primaryShade2);
-}
-
-#dark:checked~.mainlp .buttonlp:active,
-#pinkaru:checked~.mainlp .buttonlp:active {
- background: var(--primaryShade1);
-}
-
-#dark:checked~.mainlp .profile-default img,
-#pinkaru:checked~.mainlp .profile-default img {
- border-bottom: 7px solid var(--secondaryShade5);
-}
-
-/*FILTERS*/
-.filters__title {
- font-size: 18px;
- color: var(--grayColor);
- margin: 25px 0;
-}
-
-.filters__item {
- display: grid;
- grid-template-columns: 1fr auto;
- align-items: center;
- margin-bottom: 10px;
-}
-
-.filters__item .checkbox {
- position: relative;
- margin: 0;
-}
-
-.filters__item .checkbox .tooltip {
- display: inline-block;
- margin-left: 10px;
- width: auto;
- vertical-align: middle;
-}
-
-.filters__item .checkbox .tooltip .spanlp {
- border: none;
-}
-
-.filters__item .checkbox .tooltip:after {
- min-width: 100px;
- margin-left: -50px;
-}
-
-.filters:not(:first-of-type) {
- border-top: 0.5px solid var(--lightGrayColor);
- margin-top: 25px;
-}
-
-/* WELL CTA */
-.well-cta {
- border-radius: 10px;
- background: var(--secondaryColor);
- color: var(--foregroundColor);
- overflow: hidden;
-}
-
-.well-cta__text {
- padding: 30px;
-}
-
-.well-cta__text p {
- font-size: 18px;
- line-height: 1.5;
-}
-
-.well-cta__text a {
- margin: 25px 0 0;
-}
-
-.well-cta__image {
- padding: 30px 0 0;
-}
-
-.well-cta img {
- width: 100%;
- max-height: 300px;
- object-fit: contain;
- margin-bottom: -7px;
-}
-
-@media (min-width: 768px) {
- .well-cta {
- display: grid;
- grid: auto / 1fr 250px;
- }
-
- .well-cta__image {
- align-self: flex-end;
- padding: 15px 0 0;
- }
-}
-
-#bluepurple:checked~.mainlp .well-cta__text {
- color: var(--backgroundColor);
-}
-
-.well-cta--form {
- display: grid;
- grid-gap: 10px;
- padding: 30px;
- background: var(--primaryShade1);
- border-radius: 10px;
-}
-
-.well-cta--form__text {
- margin-bottom: 10px;
-}
-
-.well-cta--form h3 {
- color: var(--primaryShade5);
-}
-
-@media (min-width: 768px) {
- .well-cta--form {
- grid-template-columns: 1fr auto;
- }
-
- .well-cta--form__text {
- grid-column: span 2;
- }
-}
-
-/*TABLE*/
-.table {
- background: var(--backgroundColor);
- border-radius: 10px;
-}
-
-.table__wrapper {
- width: 100%;
- overflow-y: hidden;
- overflow-x: auto;
- border-radius: 10px;
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
-}
-
-.table tr {
- display: grid;
- grid: auto/80px 80px repeat(2, minmax(150px, 2fr)) repeat(2, minmax(120px, 1.5fr)) 50px;
- align-items: center;
-}
-
-.table td {
- padding: 15px;
-}
-
-.table__header {
- color: var(--neutralShade5);
- font-weight: 500;
- text-transform: uppercase;
- border-bottom: 0.5px solid var(--lightGrayColor);
-}
-
-.table__body tr:nth-child(even) {
- background: var(--neutralShade0);
-}
-
-#dark:checked~.mainlp .table__body tr:nth-child(even),
-#pinkaru:checked~.mainlp .table__body tr:nth-child(even) {
- background: var(--neutralShade8);
-}
-
-/*FORMS*/
-.formlogin {
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- background: var(--backgroundColor);
- margin-top: 30px;
- position: relative;
- overflow: hidden;
-}
-
-.formlogin .checkbox {
- margin-bottom: 30px;
-}
-
-.formlogin .spinner__wrapper {
- display: grid;
- place-items: center;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- background: rgba(255, 255, 255, 0.85);
- opacity: 0;
- z-index: -1;
-}
-
-@media (min-width: 768px) {
- .formlogin {
- display: grid;
- grid: auto / 1fr 40%;
- }
-
- .formlogin .input__wrapper {
- grid-column: span 2;
- }
-
- .formlogin .checkbox {
- align-self: center;
- margin-bottom: 0;
- }
-}
-
-#dark:checked~.mainlp .spinner__wrapper,
-#pinkaru:checked~.mainlp .spinner__wrapper {
- background: rgba(20, 20, 20, 0.85);
-}
-
-/*COMMENT ITEM*/
-.comment {
- display: grid;
- grid: auto / 60px 1fr;
- grid-gap: 12px;
-}
-
-.comment__image {
- grid-row: 1 / 4;
-}
-
-.comment__image img {
- width: 60px;
- height: 60px;
- object-fit: cover;
- border-radius: 50%;
-}
-
-.comment__info h5 {
- margin-bottom: 0;
-}
-
-.comment__info h5 .spanlp {
- vertical-align: middle;
-}
-
-.comment__info h5 .badge {
- margin-left: 8px;
- font-size: 80%;
-}
-
-.comment__info h5 .badge i {
- font-size: 80%;
- margin-right: 6px;
-}
-
-.comment__info__time {
- color: var(--grayColor);
-}
-
-.comment__reaction i {
- margin-right: 8px;
- font-size: 85%;
-}
-
-.comment__reaction__heart {
- cursor: pointer;
- transition: .3s ease;
-}
-
-.comment__reaction__heart.toggled {
- color: var(--accent3Shade5);
- font-weight: 500;
-}
-
-/*PANEL*/
-.panel {
- display: grid;
- grid: 200px auto min-content / 100%;
- border-radius: 10px;
- overflow: hidden;
- background: var(--backgroundColor);
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- max-width: 480px;
- margin: auto;
-}
-
-.panel__image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
-}
-
-.panel__info {
- padding: 30px 30px 20px;
-}
-
-.panel__info h1 {
- margin-bottom: 25px;
-}
-
-.panel__info p {
- font-size: 20px;
- margin: 15px 0;
-}
-
-.panel__info .alert {
- font-weight: 300;
- margin-top: 30px;
-}
-
-.panel__cta {
- padding: 0 30px 30px;
- text-align: center;
-}
-
-footer {
- display: grid;
- grid: min-content / 1fr max-content;
- text-align: left;
- width: 90%;
- margin: 1em auto 4em;
- max-width: 1050px;
- align-items: center;
-}
-
-footer a {
- text-decoration: none;
- color: #333;
- padding: 3px 0;
- border-bottom: 1px dashed;
-}
-
-footer a:hover {
- border-bottom: 1px solid;
-}
-
-footer .social a {
- text-decoration: none;
- margin-left: 10px;
-}
-
-footer .social a .icons {
- display: inline-block;
- font-size: 20px;
-}
-
-footer.dark,
-footer.dark a {
- color: #f9f9f9;
-}
-
-
-
-
-/*typography 2*/
-.logoHR {
- color: #000;
-}
-
-.logoh1wp {
- color: #242331;
-
-}
-
-.logoh1wp h1 {
- font: 700 48px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h2 {
- font: 700 32px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h3 {
- font: 700 24px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h4 {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h5 {
- font: 500 18px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h6 {
- font: 500 16px/1.2 "Poppins", sans-serif;
- text-transform: uppercase;
-}
-
-
-.stonglp {
- font-weight: 500;
-}
-
-.emlp {
- font-style: italic;
-}
-
-.h1lp {
- font: 700 48px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h2lp {
- font: 700 32px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h3lp {
- font: 700 24px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h4lp {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h5lp {
- font: 500 18px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h6lp {
- font: 500 16px/1.2 "Poppins", sans-serif;
- text-transform: uppercase;
-}
-
-.apierrort {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.apierrort::first-letter {
- text-transform: uppercase;
-}
-
-
-.coverprc img {
- position: absolute;
- left: 0px;
- top: 0px;
- z-index: 1;
-}
-
-.befcoverprc {
- z-index: 2;
-}
-
-.flex {
- /*Flexbox for containers*/
- display: flex;
- justify-content: center;
- align-items: center;
- text-align: center;
-}
-
-.wavesNav {
-
- bottom: 0;
-
-}
-
-.postNavWaves {
- background-color: #F0F2F5;
- height: 100%;
-}
-
-.waves {
- position: relative;
- z-index: 0;
- width: 100%;
- height: 80vh;
- margin-bottom: -7px;
- /*Fix for safari gap*/
- min-height: 100px;
- max-height: 150px;
-}
-
-
-/* Animation */
-
-.parallax>use {
- animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
-}
-
-.parallax>use:nth-child(1) {
- animation-delay: -2s;
- animation-duration: 7s;
-}
-
-.parallax>use:nth-child(2) {
- animation-delay: -3s;
- animation-duration: 10s;
-}
-
-.parallax>use:nth-child(3) {
- animation-delay: -4s;
- animation-duration: 13s;
-}
-
-.parallax>use:nth-child(4) {
- animation-delay: -5s;
- animation-duration: 20s;
-}
-
-@keyframes move-forever {
- 0% {
- transform: translate3d(-90px, 0, 0);
- }
-
- 100% {
- transform: translate3d(85px, 0, 0);
- }
-}
-
-/*Shrinking for mobile*/
-@media (max-width: 768px) {
- .waves {
- height: 40px;
- min-height: 40px;
- }
-
- .content {
- height: 30vh;
- }
-
- h1 {
- font-size: 24px;
- }
-}
-
-
-
-.ClockDashboard {
- float: right;
- font: 700 26px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
- margin: 12px;
- z-index: 9999;
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/ycore_sync/pre.js b/.prev/src/@ycore/libs/ycore_sync/pre.js
deleted file mode 100644
index 99b1b55d..00000000
--- a/.prev/src/@ycore/libs/ycore_sync/pre.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import io from 'socket.io-client'
-import config from 'config'
-
-var endpoint = config.sync_server;
-
-
-export const sync = {
- listen: (callback) => {
- let conn_overrun_tick = 0;
- const socket = io(endpoint);
-
- socket.on('connect_error', (error) => {
- conn_overrun_tick ++
- ycore.yconsole.log('Overrun tick => ',conn_overrun_tick)
- if (conn_overrun_tick == 1) {
- antd.notification.open({
- onClose: () => conn_overrun_tick = 0,
- duration: 15,
- message: 'Disconected from server!',
- description: 'Attempting to reconnect...',
- icon: ,
- });
- }
- });
-
- socket.on('connect', () => {
- conn_overrun_tick = 0
- antd.message.success('Connected to the server')
- });
-
- socket.on('pull_event', function (data) {
- console.log('SOCKET => ',data)
- callback(data)
- });
-
- },
- FeedListen: (callback) => {
- const socket = io(endpoint);
- socket.on('pull_event', function (data) {
- callback(data)
- });
- },
- emmitPost: (last_id) => {
- const socket = io(endpoint);
- socket.emit('push_event', last_id);
- }
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/yulio_id/pre.js b/.prev/src/@ycore/libs/yulio_id/pre.js
deleted file mode 100644
index d42c9928..00000000
--- a/.prev/src/@ycore/libs/yulio_id/pre.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import * as ycore from 'ycore'
-import Cookies from 'ts-cookies'
-
-// EXPORT PUBLIC WORKERS
-export * from './token_data.js'
-export * from './ctid_gen.js'
-export * from './validate.js'
-
-export function userData() {
- return ycore.token_data.get()
-}
-
-export const make_data = {
- backup: () => {
- localStorage.setItem('last_backup', Cookies.get('cid'))
- },
-}
-
-export const IsThisUser = {
- admin: () => {
- return ycore.booleanFix(ycore.userData().admin) ? true : false
- },
- dev: () => {
- return ycore.booleanFix(ycore.userData().dev) ? true : false
- },
- pro: () => {
- return ycore.booleanFix(ycore.userData().is_pro) ? true : false
- },
- nsfw: () => {
- return ycore.booleanFix(ycore.userData().nsfw) ? true : false
- },
- same: a => {
- if (a == ycore.userData().UserID) {
- return true
- }
- return false
- },
-}
-
-export const get_early = {
- user: (callback, payload)=>{
- if (!payload) {
- return false
- }
- const { username } = payload
- let formdata = new FormData()
- formdata.append('username', username)
-
- const callOptions = { timeout: 10000 }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.comty_rsa.endpoint('early_user', {join_token: false}),
- formdata,
- callOptions
- )
- }
-}
\ No newline at end of file
diff --git a/.prev/src/@ycore/libs/yulio_id/token_data.js b/.prev/src/@ycore/libs/yulio_id/token_data.js
deleted file mode 100644
index 75b8d216..00000000
--- a/.prev/src/@ycore/libs/yulio_id/token_data.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import * as ycore from 'ycore'
-
-import Cookies from 'ts-cookies'
-import {server_key} from '../../../../config/keys.js'
-var jwt = require('jsonwebtoken')
-
-export const token_data = {
- set: (value, callback) => {
- jwt.sign(value, server_key, (err, token) => {
- err ? null : Cookies.set('cid', token)
- return callback(true)
- })
- },
- getRaw: () => {
- return Cookies.get('cid')
- },
- get: () => {
- let final =
- jwt.decode(Cookies.get('cid')) ||
- jwt.decode(localStorage.getItem('last_backup'))
- const a = jwt.decode(Cookies.get('cid'))
- const b = jwt.decode(localStorage.getItem('last_backup'))
- if (!a && !b) {
- final = false
- return final
- }
- if (!a) {
- final = b
- }
- if (!b) {
- final = a
- }
- ycore.yconsole.debug(final)
- return final
- },
- remove: () => {
- Cookies.remove('cid')
- },
- __token: () => {
- return ycore.token_data.get().UserToken
- },
- __id: () => {
- return ycore.token_data.get().UserID
- },
-}
diff --git a/.prev/src/@ycore/libs/yulio_id/validate.js b/.prev/src/@ycore/libs/yulio_id/validate.js
deleted file mode 100644
index 7d42aabb..00000000
--- a/.prev/src/@ycore/libs/yulio_id/validate.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import * as ycore from 'ycore'
-import Cookies from 'ts-cookies'
-var jwt = require('jsonwebtoken')
-
-export const validate = {
- session: callback => {
- let validtoken = false
- const a = Cookies.get('cid')
- if (a) {
- const modExp = ycore.AppSettings.SignForNotExpire
- const ad = jwt.decode(a)
-
- let notexp = true // Sets if this is expired (Default is not expired)
- let exists = false // Sets if this exist
-
- ad ? (exists = true) : null
-
- const tokenExp = ad.exp * 1000
- const tokenExpLocale = new Date(tokenExp).toLocaleString()
- const now = new Date().getTime()
-
- ycore.yconsole.log(
- `TOKEN EXP => ${tokenExp} ${
- modExp ? '( Infinite )' : `( ${tokenExpLocale} )`
- } || NOW => ${now}`
- )
-
- if (modExp == false) {
- if (tokenExp < now) {
- ycore.yconsole.log('This token is expired !!!')
- notexp = false
- }
- }
- if (notexp && exists) {
- validtoken = true
- }
- }
-
- if (callback) {
- callback(validtoken)
- }
- return validtoken
- },
- backup: () => {
- let ValidBackupToken = false
- let LastestToken = localStorage.getItem('last_backup')
- if (LastestToken) {
- let LastestTokenDC = jwt.decode(LastestToken)
- if (LastestTokenDC) {
- ValidBackupToken = true
- }
- }
- return ValidBackupToken
- },
-}
diff --git a/.prev/src/@ycore/ycore_worker.js b/.prev/src/@ycore/ycore_worker.js
deleted file mode 100644
index 5b8cb159..00000000
--- a/.prev/src/@ycore/ycore_worker.js
+++ /dev/null
@@ -1,333 +0,0 @@
-/**
- * @yCore_Worker
- *
- * @author rStudio© 2020
- * @licensed Pending...
- */
-
-import * as Endpoints from 'globals/endpoints/index.js'
-import io from 'socket.io-client'
-import * as Icons from '@ant-design/icons'
-import localforage from 'localforage'
-import { format } from 'timeago.js'
-import * as antd from 'antd'
-import moment from 'moment'
-import React from 'react'
-
-import config from 'config'
-import './libs.js'
-
-export * from '../../config/app.settings.js'
-export * from './libs.js'
-
-export var endpoints = Endpoints
-
-export const package_json = require('../../package.json')
-
-export const UUAID = `${package_json.name}==${package_json.UUID}`
-
-export const AppInfo = {
- apid: package_json.name,
- stage: package_json.stage,
- name: package_json.title,
- version: package_json.version,
- logo: config.FullLogoPath,
- logo_dark: config.DarkFullLogoPath,
-}
-
-localforage.config({
- name: UUAID,
- version: 1.0,
- size: 4980736,
- storeName: package_json.name,
-})
-
-
-
-/**
- * Convert a base64 string in a Blob according to the data and contentType.
- *
- * @param b64Data {String} Pure base64 string without contentType
- * @param contentType {String} the content type of the file i.e (image/jpeg - image/png - text/plain)
- * @param sliceSize {Int} SliceSize to process the byteCharacters
- * @return Blob
- */
-export function b64toBlob(b64Data, contentType, sliceSize) {
- contentType = contentType || ''
- sliceSize = sliceSize || 512
-
- var byteCharacters = atob(b64Data)
- var byteArrays = []
-
- for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) {
- var slice = byteCharacters.slice(offset, offset + sliceSize)
-
- var byteNumbers = new Array(slice.length)
- for (var i = 0; i < slice.length; i++) {
- byteNumbers[i] = slice.charCodeAt(i)
- }
-
- var byteArray = new Uint8Array(byteNumbers)
-
- byteArrays.push(byteArray)
- }
-
- var blob = new Blob(byteArrays, { type: contentType })
- return blob
-}
-
-/**
- * Convert a file in a B64 string according to the file.
- *
- * @param file {object} Raw File object
- * @return b64 {string}
- */
-export function ReadFileAsB64(file, callback) {
- if (file) {
- var reader = new FileReader()
- reader.onload = function(readerEvt) {
- var binaryString = readerEvt.target.result
- const a = `data:image/png;base64, ${btoa(binaryString)}`
- return callback(a)
- }
- reader.readAsBinaryString(file)
- }
-}
-
-/**
- * Handle temporal file uploads
- *
- * @param file {object} Raw File object
- * @return boolean
- */
-export function uploadFile(file) {
- var formData = new FormData()
- formData.append('userfile', file)
- var request = new XMLHttpRequest()
- request.onload = function() {
- if (request.status == 200) {
- return true
- } else {
- alert('Error! Upload failed')
- }
- }
- request.open('POST', '/temp/file')
- request.send(formData)
-}
-
-/**
- * Return the value of an object from array
- *
- * @param payload {object} data: (array) | key: (string for return the value)
- * @return {string} Boolean value
- */
-export function ReturnValueFromMap(payload) {
- if (!payload) return false
- const { data, key } = payload
- try {
- const a = data.map(item => {
- return item.key === key ? item.value : null
- })
- const b = a.filter(Boolean)
- return b.toString()
- } catch (error) {
- return false
- }
-}
-
-/**
- * (HELPER) Convert the localStorage values (AppSettings) parsed
- *
- * @param e {String} String of SettingID for search
- * @return {string} Boolean value
- */
-export function SettingStoragedValue(e) {
- try {
- const fromStorage = JSON.parse(localStorage.getItem('app_settings'))
- const Ite = fromStorage.map(item => {
- return item.SettingID === e ? item.value : null
- })
- const fr = Ite.filter(Boolean)
- return fr.toString()
- } catch (error) {
- return null
- }
-}
-
-/**
- * Return the last object from array
- *
- * @param array {array}
- * @return object
- */
-export function objectLast(array, n) {
- if (array == null) return void 0
- if (n == null) return array[array.length - 1]
- return array.slice(Math.max(array.length - n, 0))
-}
-
-/**
- * Remove an element by id from an array
- *
- * @param array {array}
- * @param value {string}
- * @return object
- */
-export function arrayRemoveByID(arr, value) {
- return arr.filter(function(ele) {
- return ele.id != value
- })
-}
-
-/**
- * Global fix for convert '1, 0' to string boolean 'true, false'
- *
- * @param e {int} Numeric boolean reference
- * @return {bool} Boolean value
- */
-export function booleanFix(e) {
- if (e == 1) return true
- return false
-}
-
-
-/**
- * Handle time basic functions
- *
- */
-export const time = {
- ago: a => {
- const format = moment(a).format('DDMMYYYY')
- const b = new Date(format).toLocaleString()
- return time.relativeToNow(b)
- },
- stmToAgo: a => {
- const b = a * 1000
- return format(b)
- },
- relativeToNow: (a, b) => {
- return moment(a, b || 'DDMMYYYY').fromNow()
- },
-}
-
-
-/**
- * Framework functionality for show with interface an notification
- *
- */
-const {FieldTimeOutlined} = require('@ant-design/icons')
-export const notify = {
- expire: (...res) => {
- antd.notification.error({
- message: 'Hey ',
- icon: ,
- description: res,
- placement: 'bottomLeft',
- })
- },
- info: (...res) => {
- antd.notification.info({
- message: 'Well',
- description: res.toString(),
- placement: 'bottomLeft',
- })
- },
- exception: (...res) => {
- antd.notification.error({
- message: 'WoW!',
- description: res.toString(),
- placement: 'bottomLeft',
- })
- },
- warn: (...res) => {
- antd.notification.warn({
- message: 'Hey!',
- description: res.toString(),
- placement: 'bottomLeft',
- })
- },
- success: (...res) => {
- antd.notification.success({
- message: 'Well',
- description: res.toString(),
- placement: 'bottomLeft',
- })
- },
- error: (...res) => {
- antd.notification.error({
- message: 'Wopss',
- description: (
-
-
An wild error appear! :
-
-
-
- {res.toString()}
-
-
- ),
- placement: 'bottomLeft',
- })
- },
- proccess: (...res) => {
- antd.notification.open({
- icon: ,
- message: 'Please wait',
- description: {res}
,
- placement: 'bottomLeft',
- })
- },
-}
-
-/**
- * User console with setting user permissions
- *
- * @param ... {any} Use for type of console
- */
-export const yconsole = {
- log: (...cont) => {
- SettingStoragedValue('force_showDevLogs') ? console.log(...cont) : null
- return
- },
- debug: (...cont) => {
- SettingStoragedValue('force_showDevLogs') ? console.debug(...cont) : null
- return
- },
- error: (...cont) => {
- SettingStoragedValue('force_showDevLogs') ? console.error(...cont) : null
- return
- },
- warn: (...cont) => {
- SettingStoragedValue('force_showDevLogs') ? console.warn(...cont) : null
- return
- },
-}
-
-/**
- * Request FullScreen mode
- *
- */
-export function requestFullscreen() {
- var elem = document.documentElement
- if (elem.requestFullscreen) {
- elem.requestFullscreen()
- } else if (elem.mozRequestFullScreen) {
- /* Firefox */
- elem.mozRequestFullScreen()
- } else if (elem.webkitRequestFullscreen) {
- /* Chrome, Safari and Opera */
- elem.webkitRequestFullscreen()
- } else if (elem.msRequestFullscreen) {
- /* IE/Edge */
- elem.msRequestFullscreen()
- }
-}
diff --git a/.prev/src/components/App_about/index.js b/.prev/src/components/App_about/index.js
deleted file mode 100644
index e6c4f280..00000000
--- a/.prev/src/components/App_about/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from 'react'
-import styles from './index.less'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-
-export default class App_About extends React.Component {
- DetectNoNStableBuild() {
- if (ycore.package_json.DevBuild == false) {
- return Stable
- } else {
- return No Stable
- }
- }
- render() {
- return (
-
-
-
- {ycore.AppInfo.name}
- {ycore.UUAID}
-
- v{ycore.AppInfo.version}
- {ycore.AppInfo.stage}
- {this.DetectNoNStableBuild()}
-
-
- )
- }
-}
diff --git a/.prev/src/components/App_about/index.less b/.prev/src/components/App_about/index.less
deleted file mode 100644
index 5dd1b8b1..00000000
--- a/.prev/src/components/App_about/index.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.aboutWrapper {
- margin: auto;
- max-width: 70vw;
- width: 500px;
- vertical-align: middle;
- position: relative;
- background-color: rgba(73, 72, 72, 0.349);
-
- img {
- width: 100%;
- padding: 15px;
- }
-}
-
-.appName {
- font-family: "Poppins", sans-serif;
- font-size: 27px;
-}
\ No newline at end of file
diff --git a/.prev/src/components/CustomIcons/index.js b/.prev/src/components/CustomIcons/index.js
deleted file mode 100644
index 368614d2..00000000
--- a/.prev/src/components/CustomIcons/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-const VerifiedBadge = () => ( )
-const CommonThings = () => ( )
-const SunSVG = () => ( )
-const MoonSVG = () => ( )
-const RobotOutlined = () => ( )
-const SavedPost = () => ( )
-const SavedPostColor = () => ( )
-const SavedPostGrey = () => ( )
-const TrendBlue = () => ( )
-const CustomIcons = {SavedPostGrey, SavedPostColor, VerifiedBadge, CommonThings, SunSVG, MoonSVG, RobotOutlined, SavedPost}
-export default CustomIcons
diff --git a/.prev/src/components/HeaderSearch/index.js b/.prev/src/components/HeaderSearch/index.js
deleted file mode 100644
index d3aa7ccb..00000000
--- a/.prev/src/components/HeaderSearch/index.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import React, { Component } from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import styles from './index.less'
-import classnames from 'classnames'
-import * as Icons from '@ant-design/icons'
-
-export const SetHeaderSearchType = {
- disable: () => {
- window.HeaderSearchComponent.setState({ searchidden: true })
- },
- enable: () => {
- window.HeaderSearchComponent.setState({ searchidden: false })
- },
- toPrimary: () => {
- window.HeaderSearchComponent.setState({ framelocation: 'primary' })
- },
- toSecondary: () => {
- window.HeaderSearchComponent.setState({ framelocation: 'secondary' })
- },
-}
-export default class HeaderSearch extends Component {
- constructor(props) {
- super(props)
- window.HeaderSearchComponent = this
- this.state = {
- value: '',
- searchidden: false,
- framelocation: 'primary',
- }
- }
-
- openSearcher = () => {
- const { value } = this.state
- ycore.SecondarySwap.openSearch(value);
- }
-
- sendToSearch = () => {
- const { value } = this.state
- ycore.router.go(`s/${value}`)
- }
-
- onChange = e => {
- const { value } = e.target
- this.setState({ value: value })
- if (ycore.AppSettings.auto_search_ontype == 'true') {
- this.autosend()
- }
- }
-
- autosend = () => {
- let timeout = null
- let input = document.getElementById('search_input')
- input.addEventListener('keyup', e => {
- clearTimeout(timeout)
- timeout = setTimeout(() => {
- const { value } = this.state
- ycore.router.go(`s/${value}`)
- }, 500)
- })
- }
-
- render() {
- const { searchidden } = this.state
- return (
-
-
- }
- placeholder=" Search on Comty..."
- onChange={this.onChange}
- onPressEnter={this.openSearcher}
- />
-
-
- )
- }
-}
diff --git a/.prev/src/components/HeaderSearch/index.less b/.prev/src/components/HeaderSearch/index.less
deleted file mode 100644
index 90ab4950..00000000
--- a/.prev/src/components/HeaderSearch/index.less
+++ /dev/null
@@ -1,78 +0,0 @@
-@import '~themes/index.less';
-
-.HeaderSearchWrapper {
- z-index: 20;
- top: 0;
- display: flex;
- margin: auto;
- max-width: 510px;
- min-width: 265px;
- width: auto;
- height: 50px;
-
- &.hidden {
- display: none;
- }
-}
-
-.headerSearch {
- width: 100%;
- height: 100%;
-
- :global {
- .ant-input-affix-wrapper {
- height: 100%;
- width: 100%;
- display: flex;
-
-
- margin: 0;
- padding: 0;
-
- }
-
- .ant-input-affix-wrapper .ant-input-prefix {
- left: 12px;
- }
-
- .ant-input-affix-wrapper {
- background-color: transparent !important;
- border-color: transparent;
- border-radius: 12px;
- }
-
- .ant-input-affix-wrapper>input.ant-input {
- padding: 0 0 0 30px;
- border: inherit;
- outline: inherit;
- }
-
- .ant-input-affix-wrapper .ant-input-prefix,
- .ant-input-affix-wrapper .ant-input-suffix {
- background-color: transparent !important;
- border-color: transparent;
- border-radius: 12px;
- position: absolute;
- top: 50%;
- z-index: 2;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-align: center;
- align-items: center;
- color: rgba(0, 0, 0, .65);
- line-height: 0;
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- color: #9d9da7 !important;
- }
-
- .ant-input {
- border-radius: 12px;
- color: #9D9DA7;
- background-color: #FFFFFF;
- border-color: transparent;
- height: 50px;
- width: 510px;
- }
- }
-}
diff --git a/.prev/src/components/Layout/Control.js b/.prev/src/components/Layout/Control.js
deleted file mode 100644
index f32b462a..00000000
--- a/.prev/src/components/Layout/Control.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import styles from './Control.less'
-
-import Radium, { StyleRoot } from 'radium'
-import { fadeInUp, bounceOutDown } from 'react-animations'
-const animationStyles = {
- fadeInUp: {
- animation: 'x 0.5s',
- animationName: Radium.keyframes(fadeInUp, 'fadeInUp'),
- },
- bounceOutDown: {
- animation: 'x 1s',
- animationName: Radium.keyframes(bounceOutDown, 'bounceOutDown'),
- },
-}
-
-export function SetControls(e) {
- window.ControlComponent.DummySetControls(e)
- return
-}
-export function CloseControls() {
- window.ControlComponent.DummyCloseControls()
- return
-}
-
-class Control extends React.Component {
- constructor(props) {
- super(props)
- window.ControlComponent = this
- this.state = {
- Show: false,
- FadeIN: true,
- }
- }
- DummySetControls = e => {
- ycore.yconsole.log('Controls recived => ', e)
- if (this.state.Show == false) {
- this.setState({ FadeIN: true })
- }
- this.setState({ Show: true, RenderFragment: e })
- }
- DummyCloseControls() {
- ycore.yconsole.log('Closing Control Bar...')
- this.setState({ FadeIN: false })
- setTimeout(() => this.setState({ Show: false, RenderFragment: null }), 1000)
- }
-
- render() {
- const { RenderFragment, Show, FadeIN } = this.state
- return Show ? (
-
-
-
- ) : null
- }
-}
-export default Control
diff --git a/.prev/src/components/Layout/Control.less b/.prev/src/components/Layout/Control.less
deleted file mode 100644
index c5594496..00000000
--- a/.prev/src/components/Layout/Control.less
+++ /dev/null
@@ -1,26 +0,0 @@
-@import '~themes/index.less';
-
-.ControlCard {
- overflow: hidden;
- background-color: rgba(0, 0, 0, 0.1);
- width: auto;
- max-width: 60%;
- padding: 0 5px 0 5px;
- margin: 0 0 0 50%;
- height: auto;
- position: absolute;
- z-index: 10000;
- bottom: 0;
- text-align: center;
-
- :global {
- .ant-card-body {
- padding: 5px;
- }
-
- .ant-btn {
- background-color: rgba(0, 0, 0, 0.1);
- margin: 3px;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/Layout/Secondary/index.js b/.prev/src/components/Layout/Secondary/index.js
deleted file mode 100644
index c618bd17..00000000
--- a/.prev/src/components/Layout/Secondary/index.js
+++ /dev/null
@@ -1,254 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import styles from './index.less'
-import classnames from 'classnames'
-
-import { __priPost, __secComments, __priSearch, __trendings, __pro } from './renders.js'
-
-export const SwapMode = {
- close: () => {
- SecondaryLayoutComponent.Swapper.close()
- },
- openPost: (a, b) => {
- SecondaryLayoutComponent.setState({
- mode: 'post',
- global_raw: a,
- })
- SecondaryLayoutComponent.Swapper.open()
- },
- openSearch: a => {
- SecondaryLayoutComponent.setState({
- mode: 'search',
- pri_raw: a,
- })
- SecondaryLayoutComponent.Swapper.half()
- },
- openFragment: fragment => {
- SecondaryLayoutComponent.setState({
- mode: 'fragment',
- global_raw: fragment,
- })
- SecondaryLayoutComponent.Swapper.unique()
- }
-}
-
-export default class Secondary extends React.PureComponent {
- constructor(props) {
- super(props),
- window.SecondaryLayoutComponent = this,
- this.state = {
- loading: true,
- half: false,
- swap: false,
- mode: '',
- gen_data: '',
- global_raw: '',
- pri_raw: '',
- sec_raw: '',
- }
- }
-
- Swapper = {
- close: () => {
- this.setState({
- swap: false,
- half: false,
- unique: false,
- pri_raw: null,
- sec_raw: null,
- global_raw: null,
- mode: null,
- })
- },
- open: () => {
- this.setState({
- swap: true,
- half: false,
- unique: false,
- })
- },
- half : () => {
- this.setState({
- swap: false,
- half: true,
- unique: false,
- })
- },
- unique: ()=>{
- this.setState({
- swap: false,
- half: false,
- unique: true,
- })
- }
- }
-
- SwapBalanceContent(container) {
- switch (container) {
- case '__pri': {
- return this.__pri()
- }
- case '__sec': {
- return this.__sec()
- }
- default:
- return null
- }
- }
-
- __pri() {
- const dtraw = this.state.pri_raw
- switch (this.state.mode) {
- case 'post': {
- return this.renderPost(this.state.global_raw)
- }
- case 'search': {
- return this.renderSearch(dtraw)
- }
- case 'fragment': {
- return this.renderFragment()
- }
- default:
- return this.renderMain()
- }
- }
- __sec() {
- const dtraw = this.state.sec_raw
- switch (this.state.mode) {
- case 'post': {
- return this.renderComments(this.state.global_raw)
- }
- default:
- return null
- }
- }
-
- renderSearch = key => {
- const payload = { key: key }
- ycore.comty_search.keywords((err, res) => {
- if (err) {
- ycore.notify.error(err)
- }
- ycore.yconsole.log('Founded entries => ', JSON.parse(res))
- this.setState({ global_raw: res, loading: false })
- }, payload)
- return (
-
-
Results of {key || '... nothing ?'}
- <__priSearch payload={this.state.global_raw} />
-
- )
- }
-
- renderPost = payload => {
- const post_data = JSON.parse(payload)['post_data']
- return <__priPost isMobile={this.props.isMobile} payload={post_data} />
- }
-
- renderComments = payload => {
- try {
- const post_comments = JSON.parse(payload)['post_comments']
- const post_data = JSON.parse(payload)['post_data']
- return (
- <__secComments post_id={post_data.post_id} payload={post_comments} />
- )
- } catch (error) {
- return null
- }
- }
- renderMain = payload => {
- try {
- const trending_data = JSON.parse(this.state.gen_data)['trending_hashtag']
- return(
-
-
- {ycore.IsThisUser.pro()? <__pro /> : <__pro /> }
- <__trendings data={trending_data} />
-
-
-
- )
- } catch (error) {
- return null
- }
-
- }
- renderFragment = () => {
- try {
- const fragment = this.state.global_raw
- return {fragment}
- } catch (error) {
- return null
- }
- }
- componentDidMount(){
- ycore.comty_get.general_data((err,res)=> {
- if (err) return false
- const notification_data = JSON.parse(res)['notifications']
- this.setState({ loading: false, gen_data: res, notification_data: notification_data })
-
- })
- }
-
- render() {
- const { userData, isMobile } = this.props
- if (!this.state.loading) return (
- <>
- {isMobile? null :
}
-
- {isMobile? null :
-
-
-
{this.state.notification_data.length}
-
-
ycore.router.go(`@${userData.username}`)}
- src={userData.avatar}
- />
-
}
-
-
-
-
- {this.state.swap || this.state.half || this.state.unique ? (
-
}
- onClick={() => this.Swapper.close()}
- >
- Back
-
- ) : null}
- {this.SwapBalanceContent('__pri')}
-
-
-
-
- {this.SwapBalanceContent('__sec')}
-
-
-
-
- >
- )
- return null
-
- }
-}
diff --git a/.prev/src/components/Layout/Secondary/index.less b/.prev/src/components/Layout/Secondary/index.less
deleted file mode 100644
index 1c1eab8f..00000000
--- a/.prev/src/components/Layout/Secondary/index.less
+++ /dev/null
@@ -1,230 +0,0 @@
-@import '~themes/index.less';
-
-.__secondary_colider{
- position: relative;
- float: right;
- width: @__secondary_colider_width;
- height: 100vh;
- background-color: @__Global_layout_backgroud;
-}
-
-.secondary_wrapper {
- width: @secondary_wrapper_hidden_width;
- height: 100vh;
-
- z-index: 50;
- position: absolute;
- right: 0;
- top: 0;
- overflow-x: hidden;
-
- display: flex;
-
-
-
- &.active {
- width: @secondary_wrapper_showFull_width;
- >.secondary_container_1 {
- padding: @secondary_container_1_padding;
- }
- //@media (min-width: 1000px) {
- // width: 95.4%
- //}
- }
-
- &.mobile {
- width: 100%;
- height: 0;
- bottom: 0;
- opacity: 0;
-
- top: unset;
- overflow: hidden;
- >.secondary_layout_bg{
- border-radius: 12px 12px 0 0;
- flex-direction: column;
- overflow-y: scroll;
- overflow-x: hidden;
- width: 100%;
- }
- .secondary_container_1{
- height: 85vh;
- width: 100%;
- }
- .secondary_container_2{
- width: 100%;
- padding: 10px 10px 60px 10px;
- border-radius: 12px 12px 0 0;
- }
- :global{
- .comments_body {
- padding: 30px 10px 10px 10px;
- }
- }
-
- &.active {
- opacity: 1;
- bottom: 0;
- height: 100%;
- width: 100%;
- }
- &.half{
- opacity: 1;
- bottom: 0;
- height: 60%;
- width: 100%;
- }
- &.unique {
- opacity: 1;
- bottom: 0;
- height: 100%;
- width: 100%;
- >.secondary_layout_bg {
- background-color: #ffffff;
- padding: 0;
- border-radius: 12px 12px 0 0;
- flex-direction: column;
- overflow-y: scroll;
- overflow-x: hidden;
- width: 100%;
- }
- }
- }
-
- &.half {
- width: @secondary_wrapper_showHalf_width;
- }
- &.unique {
- width: @secondary_wrapper_showFull_width;
- >.secondary_layout_bg {
- background-color: #ffffff;
- padding-right: 90px;
- }
- }
- transition: all @__Global_SwapAnimDuration ease-in-out;
-
-}
-
-.secondary_userholder {
- right: 20px;
- top: 25px;
- display: flex;
- position: absolute;
- z-index: 51;
-
- img {
- border-radius: 15px;
- width: 40px;
- transition: all 150ms linear;
- box-shadow: 0px 0px 0 0px rgba(255, 255, 255, 0);
- }
-
- img:hover {
- box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.205);
- transition: all 150ms linear;
- }
-
- transition: all 150ms linear;
-
- .notif_box {
- margin: 0 15px 0 5px;
- width: 40px;
- height: 40px;
- border-radius: 15px;
- background-color: #78CFED;
- h1{
- line-height: 40px;
- font-size: 16px;
- color: #ffffff;
- text-align: center;
- margin: 0;
- }
- }
-}
-
-.secondary_layout_bg {
- width: 100%;
- height: 100%;
-
- right: 0;
- z-index: 50;
- position: absolute;
- display: flex;
- overflow: hidden;
-
- transition: all @__Global_SwapAnimDuration ease-in-out;
- background-color: @secondary_container_bg_background;
-
- border-radius: @__Global_layout_border-rd;
-}
-
-.secondary_container_1 {
- width: 100%;
- height: 100%;
-
- position: relative;
- padding: 30px 30px 30px 35px;
-
- color: @secondary_container_1_color;
-
- :global {
- .ant-btn {
- color: @secondary_container_1_btn_color;
- background-color: @secondary_container_1_btn_backgroud;
- border-color: transparent;
- border-radius: 12px;
- }
-
- .ant-btn:hover {
- box-shadow: @secondary_container_1_btn_shadow;
- transition: all @__Global_Components_transitions_dur linear;
- }
- }
-}
-
-.secondary_container_2 {
- position: relative;
- height: 100vh;
- width: 0;
- right: -500px;
- padding: @secondaty_container_2_padding;
-
- opacity: 0;
- color: @secondary_container_2_color!important;
- background-color: @secondary_container_2_backgroud;
-
- border-radius: 32px 0 0 32px;
-
- &.active {
- width: 400px;
- opacity: 1;
- right: 0;
- @media (min-width: 1000px) {
- width: 600px
- }
- }
-
- transition: all @__Global_SwapAnimDuration ease-in-out;
-
-}
-
-.renderSearch_wrapper {
- height: 87vh;
- overflow: hidden;
- margin: 20px 0 0 0;
- font-family: @__Global_general_font_family;
- h2 {
- color: #ffffff;
- }
-}
-
-
-.secondary_main{
- margin-top: 45px;
- width: 100%;
-}
-
-
-
-
-
diff --git a/.prev/src/components/Layout/Secondary/renders.js b/.prev/src/components/Layout/Secondary/renders.js
deleted file mode 100644
index 790355b2..00000000
--- a/.prev/src/components/Layout/Secondary/renders.js
+++ /dev/null
@@ -1,336 +0,0 @@
-import React from 'react'
-import styles from './renders.less'
-import { SearchCard } from 'components'
-
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-
-import { MediaPlayer, PostCard } from 'components'
-
-const VerifiedBadge = () => (
-
-
-
-)
-
-export class __priPost extends React.Component {
- renderContent(payload) {
- const { id, postText, postFile_full, post_time, publisher } = payload
- const {isMobile}= this.props
- if (!postFile_full) {
- return (
-
- {postText ? (
-
-
{' '}
-
- ) : null}
-
- )
- }
- return (
-
- {postFile_full ?
: null}
- {postText ? (
-
-
{' '}
-
- ) : null}
-
- )
- }
-
- render() {
- const {payload} = this.props
- if (!payload) {
- return This post not exists!!!
- }
- const { id, postText, postFile_full, post_time, publisher } = payload
- return (
-
-
-
-
- {publisher.username}{' '}
- {ycore.booleanFix(publisher.verified) ? (
-
- ) : null}
-
-
- {' '}
- {post_time} {ycore.IsThisUser.dev() ? `| #${id}` : null}{' '}
-
-
-
-
- {this.renderContent(payload)}
-
- )
- }
-}
-
-export class __secComments extends React.Component {
- state = {
- comment_data: this.props.payload,
- raw_comment: '',
- loading: false,
- }
- handleDeleteComment(id) {
- ycore.yconsole.log(`Removing Comment with id => ${id}`)
- ycore.comty_post_comment.delete(
- (err, res) => {
- if (err) {
- return false
- }
- return this.reloadComments()
- },
- { comment_id: id }
- )
- }
- handleNewComment() {
- const { raw_comment } = this.state
- const { post_id } = this.props
- if (raw_comment) {
- const payload = { post_id: post_id, raw_text: raw_comment }
- ycore.comty_post_comment.new((err, res) => {
- if (err) {
- ycore.notify.error('This action could not be performed.', err)
- }
- this.setState({ raw_comment: '' })
- return this.reloadComments()
- }, payload)
- }
- return false
- }
-
- renderComment = a => {
- const { id, time, Orginaltext, publisher } = a
- const CommentMenu = (
-
- this.handleDeleteComment(id)}
- >
- Delete
-
-
- )
- return (
-
-
-
-
- @{publisher.username}{' '}
- {ycore.booleanFix(publisher.verified) ? (
-
- ) : null}
-
-
- e.preventDefault()}
- className={styles.comment_user_ago}
- >
- {ycore.time.stmToAgo(time)}
-
-
-
-
-
- )
- }
- HandleCommentInput = e => {
- const { value } = e.target
- this.setState({ raw_comment: value })
- }
- reloadComments() {
- try {
- this.setState({ loading: true })
- const payload = { post_id: this.props.post_id }
- ycore.comty_post.get((err, res) => {
- const post_comments = JSON.parse(res)['post_comments']
- this.setState({ comment_data: post_comments, loading: false })
- }, payload)
- } catch (error) {
- return false
- }
- }
-
- render() {
- const { comment_data, loading } = this.state
-
- return (
-
-
-
Comments ({comment_data.length})
-
-
- {loading ? (
-
- ) : (
-
this.renderComment(item)}
- />
- )}
-
-
-
-
this.handleNewComment()}
- placeholder="Write a comment..."
- allowClear
- onChange={this.HandleCommentInput}
- />
-
-
-
- )
- }
-}
-
-export class __priSearch extends React.Component {
- renderResult = source => {
- try {
- const Empty = (
-
- )
-
- // TO DO: Settings serach & Post Search
- const usersParsed = JSON.parse(source)['users']
- const groupsParsed = JSON.parse(source)['groups']
- const pagesParsed = JSON.parse(source)['pages']
-
- const users = () => {
- if (usersParsed.length >= 1) {
- ycore.yconsole.log('Users => ', usersParsed)
- return this.EntryComponent('Users', usersParsed)
- }
- }
- const groups = () => {
- if (groupsParsed.length >= 1) {
- ycore.yconsole.log('Groups => ', groupsParsed)
- return this.EntryComponent('Groups', groupsParsed)
- }
- }
- const pages = () => {
- if (pagesParsed.length >= 1) {
- ycore.yconsole.log('Pages => ', pagesParsed)
- return this.EntryComponent('Pages', pagesParsed)
- }
- }
-
- if (
- !usersParsed.length >= 1 &&
- !groupsParsed.length >= 1 &&
- !pagesParsed.length >= 1
- ) {
- return Empty
- }
-
- return [users(), groups(), pages()]
- } catch (error) {
- return (
-
- Render Error
-
- )
- }
- }
- EntryComponent = (t, source) => {
- try {
- return (
-
- {ycore.router.go(`@${item.username}`)}}>
-
-
-
- @{item.username}
- {ycore.booleanFix(item.verified) ? (
-
- ) : null}
-
-
-
-
-
- }
- />
-
- )
- } catch (error) {
- return (
-
- Render Error
-
- )
- }
- }
- render(){
- return(
-
- {this.renderResult(this.props.payload)}
-
- )
- }
-}
-
-export class __trendings extends React.PureComponent {
- render(){
- if (!this.props.data) return false
- return(
-
-
Trending now
-
-
(
-
-
#{item.tag}
-
{item.trend_use_num} Posts
-
)}
- />
-
-
- )
- }
-}
-
-export class __pro extends React.PureComponent {
- render(){
- return(
-
-
- Go Pro!
-
-
Sabias que la frase de kintxi, se hace la que no me conoze se hizo mientras estaba borracho
-
Start now
-
- )
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/Layout/Secondary/renders.less b/.prev/src/components/Layout/Secondary/renders.less
deleted file mode 100644
index 0018d0c5..00000000
--- a/.prev/src/components/Layout/Secondary/renders.less
+++ /dev/null
@@ -1,356 +0,0 @@
-@import '~themes/index.less';
-
-.SecondaryBody {
- width: 100%;
- height: 100%;
-}
-
-.UserContainer {
- display: flex;
- position: relative;
- float: right;
- z-index: 150;
- transform: translate(0, -40px);
-
- .UserContainer_text {
- margin: 0 8px;
-
- h4 {
- text-align: right;
- }
-
- p {
- word-break: break-all;
- text-align: right;
- font-size: 11px;
- color: #eeeeee !important;
- }
- }
-
-
-}
-
-.postAvatar {
- position: absolute;
- left: -8px;
- top: -8px;
- display: flex;
-}
-
-.titleUser {
- display: flex;
- font-family: 'Poppins', sans-serif;
- margin: 0 0 0 50px;
- color: #ffffff !important;
-}
-
-.textAgo {
- display: flex;
- font-size: 10px;
- margin: 0 0 0 53px;
-}
-
-.PostTags {
- float: right;
- width: 100%;
- z-index: 10;
-
- :global {
- .anticon {
- color: rgb(249, 179, 64);
- float: right;
- margin: -0 6px 0 0;
- ;
- font-size: 17px;
- }
-
- .MoreMenu {
- color: #2d2d2d !important;
- }
- }
-}
-
-.titleWrapper {
- display: flex;
-
- h4 {
- cursor: pointer;
- }
-
- color: #ffffff !important;
-
-}
-
-.contentWrapper {
- margin: auto;
- width: 100%;
- padding: 20px;
-}
-
-
-.postContent {
- word-break: break-all;
- position: absolute;
- vertical-align: bottom;
- border-radius: 7px;
- bottom: 0;
- max-width: 50vw;
-
- background-color: #2d2d2d4b;
- padding: 10px;
-
- h3 {
- font-family: "Poppins", sans-serif;
- color: #ffffff;
- font-weight: 400;
- font-size: 15px;
- letter-spacing: -0.3px;
- }
-}
-
-.postContent_OnlyText {
- padding: 25% 0 0 0;
- position: relative;
- vertical-align: middle;
-
-}
-
-
-.likebtn {
- :global {
- svg {
- color: rgba(0, 0, 0, 0.45);
- }
-
- svg:hover {
- color: rgb(233, 35, 68);
- transition: all 0.2s linear;
- }
- }
-}
-
-.comments_body {
- height: 100%;
- font-family: "Poppins", sans-serif;
- padding: 75px 10px 10px 20px;
-
- .comments_body_title {
- font-size: 12px;
-
- h1 {
- font-weight: 550;
- letter-spacing: 0.01px;
- }
- }
-
- .comments_cards_wrapper {
- z-index: 50;
- overflow: scroll;
- height: 84%;
- :global {
- overflow: scroll;
- }
-
- .comment_card {
- position: relative;
- width: 100%;
- background-color: #ffffff;
- word-break: break-all;
-
- .comment_title {
- display: flex;
-
- img {
- float: left;
- width: 30px;
- height: 30px;
- border-radius: 12px;
- }
-
- .comment_user_username {
- margin: 0 5px 0 8px;
- vertical-align: middle;
- height: 100%;
- color: #2d2d2d;
- line-height: 25px;
- }
-
- .comment_user_ago {
- cursor: pointer;
- position: absolute;
- right: 0;
- text-align: right;
- font-size: 9px;
- }
- }
-
- .comment_text {
- margin: 10px 0 0 0;
- }
-
- }
- }
-
- .comment_box {
- width: 100%;
- bottom: 0;
- right: 0;
- position: absolute;
- z-index: 100;
- background-color: #ffffffd7;
- padding-top: 20px;
- padding-bottom: 60px;
- border-radius: 0 0 0 32px;
-
- .comment_box_body {
- border-radius: 5px;
- width: 85%;
- height: 40px;
- margin: auto;
- background-color: #f8f6f8;
-
- :global {
-
- .ant-input-affix-wrapper,
- .ant-input {
- padding: 4px 5px;
- background-color: transparent;
- border: 0;
- }
- }
- }
- }
-
-}
-
-.search_wrapper{
- color: #ffffff;
- height: 100%;
- width: 82%;
- margin: auto;
- :global{
- .ant-result-title{
- color: @secondary_container_1_color!important;
- }
- .ant-result-subtitle{
- color: @secondary_container_1_color!important;
-
- }
- .ant-list-items{
- height: 82vh;
- overflow: scroll;
- }
- }
-}
-
-.search_card {
- position: relative;
- background-color: rgba(255, 255, 255, 0.034);
- margin: 10px 0 10px 0;
- border-radius: 8px;
- padding: 10px;
- word-break: break-all;
- color: #ffffff;
- cursor: pointer;
-
- .search_title {
- display: flex;
-
- img {
- float: left;
- width: 30px;
- height: 30px;
- border-radius: 12px;
- }
-
- .search_user_username {
- margin: 0 5px 0 8px;
- vertical-align: middle;
- height: 100%;
- color: #ffffff;
- line-height: 25px;
- }
- }
-
- .search_text {
- margin: 10px 0 0 0;
- }
-
-}
-
-.secondary_hastags {
- font-family: @__Global_general_font_family;
- color: #ffffff;
- font-size: 12px;
-
-
- .secondary_hastags_title{
- h2{color: #ffffff;}
- }
-
- .secondary_hastags_body{
- margin: 20px 0 0 0;
- background-color: hsl(0, 0%, 21%);
- border-radius: 12px;
- word-break: break-all;
- padding: 5px 5px 5px 10px;
- height: auto;
-
- .hash{
- margin: 5px 0 3px 0;
- cursor: pointer;
- }
-
- p{
- margin: 0;
- color: #2196F3;
- font-size: 12px;
- max-height: 35px;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
-
- }
-
-}
-
-
-
-
-.secondary_adv_pro{
- border-radius: 12px;
- // background-color: #ff4d4e;
- background: rgb(255,77,78);
- background: linear-gradient(49deg, rgba(255,77,78,1) 15%, rgba(255,87,56,1) 55%, rgba(255,97,36,1) 73%, rgba(255,105,19,1) 82%, rgba(255,114,0,1) 94%);
-
- margin: 70px 0 30px 0;
- padding: 14px;
-
- width: 100%;
- height: 140px;
-
- h1{
- color: #ffffff;
- font-family: "Poppins", sans-serif;
- font-size: 18px;
- margin-bottom: 0;
- }
- p{
- font-size: 9px;
-
- }
-
- :global{
- .ant-btn{
- vertical-align: bottom;
- border: 0;
- background-color: #d24345a2;
- border-radius: 7px;
- height: 27px;
- padding: 2px 7px;
- font-size: 12px;
- font-weight: 600;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/Layout/Sider/default.js b/.prev/src/components/Layout/Sider/default.js
deleted file mode 100644
index e3f6de52..00000000
--- a/.prev/src/components/Layout/Sider/default.js
+++ /dev/null
@@ -1,107 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-
-import { withI18n, Trans } from '@lingui/react'
-import styles from './default.less'
-import * as ycore from 'ycore'
-import CustomIcons from '../../CustomIcons'
-
-@withI18n()
-export default class Sider_Default extends React.PureComponent {
- render() {
- const { handleClickMenu, logo } = this.props
- return (
-
-
-
-
ycore.router.go('main')}
- src={logo}
- />
-
-
-
-
-
-
-
-
- Explore
-
-
-
-
-
-
- Saves
-
-
-
-
-
-
-
- Marketplace
-
-
-
-
-
-
-
- Events
-
-
-
-
-
-
-
-
-
-
- Settings
-
-
- {ycore.IsThisUser.dev() ? (
-
-
- Debug
-
- ) : (
- undefined
- )}
-
-
-
-
- Logout
-
-
-
-
-
-
-
-
-
- )
- }
-}
diff --git a/.prev/src/components/Layout/Sider/default.less b/.prev/src/components/Layout/Sider/default.less
deleted file mode 100644
index 35b6478c..00000000
--- a/.prev/src/components/Layout/Sider/default.less
+++ /dev/null
@@ -1,137 +0,0 @@
-@import '~themes/index.less';
-
-
-.left_sider_wrapper {
- border-color: transparent;
- font-size: 13px;
- font-family: @__Global_general_font_family;
- height: 100vh;
- z-index: 40;
- float: left;
- position: relative;
-
- :global {
- .ant-layout-sider {
- background-color: @left_sider_backgroud;
-
- .ant-menu {
- vertical-align: middle;
- margin: 0 0 0 5px;
- }
-
- .ant-menu-item {
- color: @left_sider_color;
- }
-
- .anticon {
- font-size: @left_sider_sizeIcons;
- }
-
- .ant-menu-inline-collapsed,
- .antd-menu-vertical-left,
- .ant-menu-vertical {
- :hover {
- background-color: @left_sider_menu__onhover_backgroud;
- color: @left_sider_menu__onhover_color;
- }
-
- border-right: 0 solid transparent;
- }
- }
- }
-}
-
-
-.left_sider_brandholder {
- cursor: pointer;
-
- img {
- display: flex;
- vertical-align: middle;
- padding: 5px;
- margin: 7px auto 15px auto;
- width: 100%;
- max-height: 58px;
- transform: translate(2px, 0);
- }
-}
-
-.something_thats_pulling_me_down {
- margin: 0 0 12px 0;
- :global {
- text-align: center;
- bottom: 0;
- position: absolute;
- width: 100%;
- .anticon{
- font-size: 15px!important;
- }
- .ant-menu-item{
- height: 35px!important;
- line-height: 0px!important;
- padding: 0!important;
- margin: 0!important;
- }
- }
-}
-
-.left_sider_container {
- border-right: transparent;
- height: 100%;
- z-index: 50;
-}
-
-.left_sider_menuContainer {
- height: 100%;
- margin: 18px 0 8px 0;
-
- overflow-x: hidden;
- flex: 1;
-
- :global {
- .ant-layout-sider-children {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
-
- .ant-layout-sider-collapsed {
- .ant-menu-item {
- left: 0;
- margin: 0;
- padding: 0;
- }
-
- .ant-menu-inline-collapsed>.ant-menu-item {
- padding: 0;
- left: 0;
- }
- }
-
- .ant-menu-inline .ant-menu-item {
- font-family: @__Global_general_font_family;
- }
-
- .ant-menu-dark .ant-menu-item a {
- color: rgb(197, 197, 197);
- }
- }
-}
-
-.left_sider_menuItems {
- background-color: transparent;
- margin-bottom: 8px;
- width: 100%;
- font-weight: 500;
-
- animation: fadein 0.5s;
-
- :global {
- .ant-menu-item {
- padding: 0 !important;
- margin: 2px auto 2px auto;
- width: 100%;
- text-align: center;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/Layout/Sider/index.js b/.prev/src/components/Layout/Sider/index.js
deleted file mode 100644
index bd8b1202..00000000
--- a/.prev/src/components/Layout/Sider/index.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import React from 'react'
-import { config } from 'utils'
-import * as ycore from 'ycore'
-
-import Sider_Mobile from './mobile.js'
-import Sider_Default from './default.js'
-
-class Sider extends React.PureComponent {
-
- onClickFunctions = {
- saves: (e) => {
- this.setState({selectedKey: e})
- ycore.router.go('saves')
- },
- events: (e) => {
- this.setState({selectedKey: e})
- ycore.router.go('events')
- },
- marketplace: (e) => {
- this.setState({selectedKey: e})
- ycore.router.go('marketplace')
- },
- explore: (e) => {
- this.setState({selectedKey: e})
- ycore.router.go('main')
- },
- }
-
- handleClickMenu = e => {
- e.key === 'SignOut' && ycore.app_session.logout()
- e.key === 'general_settings' && ycore.router.go('settings')
- e.key === 'profile' && ycore.router.goprofile()
- e.key === 'saves' && this.onClickFunctions.saves(e.key)
- e.key === 'events' && this.onClickFunctions.events(e.key)
- e.key === 'marketplace' && this.onClickFunctions.marketplace(e.key)
- e.key === 'explore' && this.onClickFunctions.explore(e.key)
- e.key === 'debug_area' && ycore.router.go('__m')
- }
-
- render() {
- const { isMobile } = this.props
- const sider_props = {handleClickMenu: this.handleClickMenu ,logo: config.LogoPath, menulist: null, userData: this.props.userData}
-
- if (isMobile) {
- return
- }
- return
- }
-}
-
-export default Sider
diff --git a/.prev/src/components/Layout/Sider/mobile.js b/.prev/src/components/Layout/Sider/mobile.js
deleted file mode 100644
index cf482c2b..00000000
--- a/.prev/src/components/Layout/Sider/mobile.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-
-import { withI18n, Trans } from '@lingui/react'
-import styles from './mobile.less'
-import * as ycore from 'ycore'
-import CustomIcons from '../../CustomIcons'
-
-@withI18n()
-export default class Sider_Mobile extends React.PureComponent {
- render() {
- const { handleClickMenu, userData } = this.props
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
- }
-}
diff --git a/.prev/src/components/Layout/Sider/mobile.less b/.prev/src/components/Layout/Sider/mobile.less
deleted file mode 100644
index fcc8eb2a..00000000
--- a/.prev/src/components/Layout/Sider/mobile.less
+++ /dev/null
@@ -1,50 +0,0 @@
-@import '~themes/index.less';
-
-
-.left_sider_wrapper {
- overflow: hidden!important;
- position: absolute;
- z-index: 500;
- bottom: 0;
- right: 0;
- left: 0;
-
- height: 50px;
- width: 100%;
-
- border-color: transparent;
- font-size: 13px;
- font-family: @__Global_general_font_family;
- padding: 0 27px;
-
- :global {
- .ant-layout-sider {
- background-color: transparent;
- height: 100%;
-
- .ant-menu-item {color: @left_sider_color;}
- .anticon {font-size: @left_sider_sizeIcons;}
- .ant-menu-item{margin: auto; padding: 0;}
-
- .ant-menu {
- background-color: #2d2d2d;
- height: 100%;
- border-radius: 27px 27px 0 0;
- padding: 0 27px;
- display: flex;
- }
-
- .ant-menu-horizontal {
- line-height: 46px;
- white-space: nowrap;
- border: 0;
- border-bottom: 0;
- box-shadow: none;
- }
- }
- }
-
-
-
-}
-
diff --git a/.prev/src/components/Layout/index.js b/.prev/src/components/Layout/index.js
deleted file mode 100644
index 7ad2e67a..00000000
--- a/.prev/src/components/Layout/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import Sider from './Sider/index.js'
-import Control from './Control'
-import Secondary from './Secondary/index.js'
-
-export { Sider, Control, Secondary }
diff --git a/.prev/src/components/Like_button/index.js b/.prev/src/components/Like_button/index.js
deleted file mode 100644
index 018b53c8..00000000
--- a/.prev/src/components/Like_button/index.js
+++ /dev/null
@@ -1,106 +0,0 @@
-import React from 'react'
-import styles from './index.scss'
-import * as ycore from 'ycore'
-import classnames from 'classnames'
-
-class Like_button extends React.PureComponent {
- constructor(props) {
- super(props),
- this.state = {
- liked: this.props.liked,
- likes: this.props.count,
- type: this.props.liked ? 'dislike' : 'like',
- clicked: false,
- }
- }
-
- SumLike() {
- this.setState({
- likes: parseInt(this.state.likes) + 1,
- type: 'dislike',
- })
- setTimeout(() => {
- this.setState({ liked: true })
- }, 500)
- }
- RestLike() {
- this.setState({
- likes: parseInt(this.state.likes) - 1,
- type: 'like',
- })
- setTimeout(() => {
- this.setState({ liked: false })
- }, 500)
- }
-
- dispatchLike(e) {
- const { type } = this.state
- ycore.yconsole.log(`Dispatch ${type} to post id => ${e}`)
- this.setState({ clicked: true })
- setTimeout(() => {
- this.setState({ clicked: false })
- }, 500)
- const payload = { post_id: e }
- ycore.comty_post.like((err, res) => {
- if (err) {
- ycore.notify.error(res)
- return
- }
- if (type == 'like') {
- this.SumLike()
- }
- if (type == 'dislike') {
- this.RestLike()
- }
- }, payload)
- }
- render() {
- const { id } = this.props
- const { likes, liked, clicked } = this.state
- if (!id) {
- ycore.yconsole.error('[LikeBTN] No post id provided!')
- return null
- }
- return (
-
-
this.dispatchLike(id)}
- className={classnames(styles.like_button, {
- [styles.clickanim]: clicked,
- })}
- >
-
-
-
- {likes}
-
-
- )
- }
-}
-
-export default Like_button
diff --git a/.prev/src/components/Like_button/index.scss b/.prev/src/components/Like_button/index.scss
deleted file mode 100644
index 2f10bdf9..00000000
--- a/.prev/src/components/Like_button/index.scss
+++ /dev/null
@@ -1,205 +0,0 @@
- .like_button,
- .like_button:before,
- .like_button:after {
- position: relative;
- box-sizing: border-box;
- }
-
- .ripple,
- .ripple:before,
- .ripple:after {
- position: relative;
- box-sizing: border-box;
- }
-
- .btnWrapper {
- display: flex;
- }
-
- .likeCounter {
- font-family: "Poppins", sans-serif;
- line-height: 70px;
- margin: 0 0 0 10px;
-
- opacity: 0;
- transform: perspective(100px) translateZ(10px);
- filter: blur(10px);
- letter-spacing: 0.1em;
-
- &.active {
- opacity: 1;
- transform: perspective(100px) translateZ(0px);
- filter: blur(0px);
- letter-spacing: 0.15em;
- transition: opacity 1000ms linear, transform 1000ms linear, filter 400ms linear, letter-spacing 1000ms linear;
- }
-
- &.past {
- opacity: 0;
- transform: perspective(100px) translateZ(-10px);
- filter: blur(10px);
- letter-spacing: 0.2em;
- transition: opacity 1000ms linear, transform 1000ms linear, filter 400ms linear, letter-spacing 1000ms linear;
- }
-
- }
-
- .like_button {
- --color-heart: #EA442B;
- --easing: cubic-bezier(.7, 0, .3, 1);
- --duration: .5s;
-
- font-size: 40px;
- border: none;
- border-radius: 50%;
- background: white;
- width: 1em;
- height: 1em;
- padding: 0;
- margin: 0;
- outline: none;
- z-index: 2;
- transition: transform var(--duration) var(--easing);
- cursor: pointer;
-
- &:before {
- z-index: -1;
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border-radius: inherit;
- transition: inherit;
- }
-
- &:after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: #fff;
- border-radius: inherit;
- z-index: -1;
- }
-
-
-
-
- @keyframes depress {
-
- from,
- to {
- transform: none;
- }
-
- 50% {
- transform: translateY(5%) scale(0.9);
- }
- }
-
- @keyframes depress-shadow {
-
- from,
- to {
- transform: none;
- }
-
- 50% {
- transform: scale(0.5);
- }
- }
- }
-
- .like_wrapper {
- display: grid;
- align-items: center;
- justify-content: center;
- z-index: 1;
-
- >* {
- margin: auto;
- grid-area: 1 / 1;
- }
- }
-
- .heart {
- width: .5em;
- height: .5em;
- display: block;
- transform-origin: center 80%;
-
- >path {
- stroke: var(--color-heart);
- stroke-width: 2;
- transition: fill var(--duration) var(--easing);
- fill: var(--color-heart);
- }
-
- &.empty {
- >path {
- stroke: var(--color-heart);
- stroke-width: 2;
- transition: fill var(--duration) var(--easing);
- fill: transparent;
- }
- }
-
- &.clickanim {
- animation: heart-bounce var(--duration) var(--easing);
-
- @keyframes heart-bounce {
- 40% {
- transform: scale(0.7);
- }
-
- 0%,
- 80%,
- 100% {
- transform: scale(1);
- }
- }
- }
-
- animation: none;
- }
-
- .ripple {
- height: 1em;
- width: 1em;
- border-radius: 50%;
- overflow: hidden;
- z-index: 1;
-
- &:before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border: .4em solid var(--color-heart);
- border-radius: inherit;
- transform: scale(0);
- }
-
- &.clickanim {
- &:before {
- animation: ripple-out var(--duration) var(--easing);
-
- @keyframes ripple-out {
- from {
- transform: scale(0);
- }
-
- to {
- transform: scale(5);
- }
- }
- }
- }
-
- }
diff --git a/.prev/src/components/Loader/Loader.js b/.prev/src/components/Loader/Loader.js
deleted file mode 100644
index 78f4b8da..00000000
--- a/.prev/src/components/Loader/Loader.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from 'react'
-import classNames from 'classnames'
-import styles from './Loader.less'
-
-const Loader = (loading) => {
- return (
-
-
- )
-}
-
-
-export default Loader
diff --git a/.prev/src/components/Loader/Loader.less b/.prev/src/components/Loader/Loader.less
deleted file mode 100644
index 87342ddf..00000000
--- a/.prev/src/components/Loader/Loader.less
+++ /dev/null
@@ -1,118 +0,0 @@
-@import '~themes/index.less';
-
-.wrapper {
- font-family: @__Global_general_font_family;
- color: white;
- line-height: 55px;
- span{
- margin: 0 10px 0 auto;
- }
-
- position: absolute;
- z-index: 1000;
- right: 0;
- bottom: 0;
- width: 140px;
- height: 55px;
- display: flex;
- flex-direction: row;
- justify-content: space-around;
- background-color: #2d2d2dc2;
- border-radius: 28px;
- margin: 10px;
-
-
- &.end {
- animation: unshow 0.8s linear;
- .newloader>div {
- animation: loader 0.8s linear;
- }
- opacity: 0;
- display: none;
- }
-
- .newloader {
- transform: translate(21px,27px) scale(0.3);
- width: 0px;
- height: 0px;
- margin: 0 45px 0 0;
- position: relative;
- }
-
- .newloader>div {
- width: 6px;
- height: 20px;
- position: absolute;
- left: -10px;
- bottom: 15px;
- border-radius: 5px;
- transform-origin: 10px 35px;
- transform: rotate(0deg);
- animation: loader 0.8s infinite;
- }
-
- .newloader>div:nth-child(2) {
- transform: rotate(45deg);
- animation-delay: 0.1s;
- }
-
- .newloader>div:nth-child(3) {
- transform: rotate(90deg);
- animation-delay: 0.2s;
- }
-
- .newloader>div:nth-child(4) {
- transform: rotate(135deg);
- animation-delay: 0.3s;
- }
-
- .newloader>div:nth-child(5) {
- transform: rotate(180deg);
- animation-delay: 0.4s;
- }
-
- .newloader>div:nth-child(6) {
- transform: rotate(225deg);
- animation-delay: 0.5s;
- }
-
- .newloader>div:nth-child(7) {
- transform: rotate(270deg);
- animation-delay: 0.6s;
- }
-
- .newloader>div:nth-child(8) {
- transform: rotate(315deg);
- animation-delay: 0.7s;
- }
-}
-
-@keyframes loader {
- 0% {
- background: transparent;
- left: -10px;
- transform-origin: 10px 35px;
- }
-
- 30% {
- background: #fff;
- }
-
- 100% {
- background: transparent;
- left: 10px;
- transform-origin: -10px 35px;
- }
-}
-
-@keyframes unshow {
- 0% {
- opacity: 1;
- display: block;
- }
-
- 100% {
- opacity: 0;
- display: none;
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/MainFeed/components/index.js b/.prev/src/components/MainFeed/components/index.js
deleted file mode 100644
index 2042fda5..00000000
--- a/.prev/src/components/MainFeed/components/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import ComponentNewAV from './newav'
-import ComponentInvalid from './invalid'
-import renderFeedPosts from './renderFeedPosts'
-
-export { ComponentNewAV, ComponentInvalid, renderFeedPosts }
\ No newline at end of file
diff --git a/.prev/src/components/MainFeed/components/invalid/index.js b/.prev/src/components/MainFeed/components/invalid/index.js
deleted file mode 100644
index 80f65615..00000000
--- a/.prev/src/components/MainFeed/components/invalid/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Card } from 'antd'
-import { ExclamationCircleOutlined } from '@ant-design/icons'
-
-const ComponentInvalid = fn => {
- return (
-
-
- Invalid Data
-
-
- If this error has occurred several times, try restarting the app
-
-
- )
-}
-
-export default ComponentInvalid
diff --git a/.prev/src/components/MainFeed/components/invalid/invalid.less b/.prev/src/components/MainFeed/components/invalid/invalid.less
deleted file mode 100644
index e69de29b..00000000
diff --git a/.prev/src/components/MainFeed/components/newav/index.js b/.prev/src/components/MainFeed/components/newav/index.js
deleted file mode 100644
index 214c327c..00000000
--- a/.prev/src/components/MainFeed/components/newav/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Button } from 'antd'
-import styles from './newav.less'
-const ComponentNewAV = fn => {
- return (
-
- New posts
-
- )
-}
-
-export default ComponentNewAV
\ No newline at end of file
diff --git a/.prev/src/components/MainFeed/components/newav/newav.less b/.prev/src/components/MainFeed/components/newav/newav.less
deleted file mode 100644
index 9e5529d8..00000000
--- a/.prev/src/components/MainFeed/components/newav/newav.less
+++ /dev/null
@@ -1,3 +0,0 @@
-.main_feed_newav{
-
-}
\ No newline at end of file
diff --git a/.prev/src/components/MainFeed/components/renderFeedPosts/index.js b/.prev/src/components/MainFeed/components/renderFeedPosts/index.js
deleted file mode 100644
index 9f24b228..00000000
--- a/.prev/src/components/MainFeed/components/renderFeedPosts/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import React from 'react'
-import { PostCard } from 'components'
-import { yconsole } from 'ycore'
-import { Button, List } from 'antd'
-import { DownSquareOutlined } from '@ant-design/icons'
-const renderFeedPosts = payload => {
- const { data, loading, isEnd, feedGet } = payload
- const loadMore =
- !isEnd && !loading ? (
-
- }
- onClick={() => feedGet.more()}
- />
-
- ) : null
- try {
- yconsole.log(data)
- return (
- (
-
- )}
- />
- )
- } catch (err) {
- return false
- }
-}
-
-export default renderFeedPosts
diff --git a/.prev/src/components/MainFeed/index.js b/.prev/src/components/MainFeed/index.js
deleted file mode 100644
index e48e13e0..00000000
--- a/.prev/src/components/MainFeed/index.js
+++ /dev/null
@@ -1,186 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import styles from './index.less'
-
-import { ComponentNewAV, ComponentInvalid, renderFeedPosts } from './components/index.js'
-
-export const RenderFeed = {
- RefreshFeed: () => {
- window.MainFeedComponent.feedGet.first()
- return
- },
- killByID: post_id => {
- window.MainFeedComponent.killByID(post_id)
- return
- },
- addToRend: payload => {
- window.MainFeedComponent.addToRend(payload)
- return
- },
- goToElement: post_id => {
- ycore.goTo.element(post_id)
- },
- disableMenu: () => {
- window.MainFeedComponent.setState({
- disableMenu: true,
- })
- },
- sync: (c) => {
- window.MainFeedComponent.syncService(c)
- return
- }
-}
-class MainFeed extends React.PureComponent {
- constructor(props) {
- super(props)
- window.MainFeedComponent = this
- this.state = {
- NewAV: false,
- invalid: false,
- loading: false,
- disableMenu: false,
- data: [],
- fkey: 0,
- }
- }
-
- componentDidMount() {
- this.feedGet.first()
- ycore.sync.FeedListen((data) => {
- this.syncService(data)
- })
- }
-
- toogleLoader() {
- this.setState({ loading: !this.state.loading })
- }
-
- syncService(data){
- if (!data) return false
- const { last_post_id, now } = data
- const first = this.state.data[0]
- if (first){
- const a = first.id
- console.log(` SYNC => ${last_post_id} | LAST => ${a}`)
- if(last_post_id>a){
- this.setState({ NewAV: true })
- }
- }
- }
-
- killByID(post_id) {
- const a = this.state.data
- const b = ycore.arrayRemoveByID(a, post_id)
- this.setState({ data: b })
- }
-
- addToRend(payload) {
- let a = this.state.data
- a.unshift(payload)
- this.setState({ data: a })
- }
-
- feedGet = {
- first: ()=>{
- try {
- const { get, uid, filters } = this.props
- if (this.props.custompayload) {
- this.setState({
- isEnd: true,
- NewAV: false,
- data: this.props.custompayload,
- loading: false,
- })
- return
- }
- if (!get) {
- ycore.yconsole.error('Please, fill params with an catch type...')
- return
- }
- this.toogleLoader()
- const payload = { fkey: 0, type: get, id: uid }
- ycore.comty_post.getFeed((err, res) => {
- if (err) {
- ycore.notify.error('Error when get data from this input')
- return
- }
- if (JSON.parse(res).api_status == '400') {
- this.setState({ invalid: true })
- return
- }
- try {
- const parsed = JSON.parse(res)['data']
- const isEnd =parsed.length < ycore.AppSettings.limit_post_catch ? true : false
- this.setState({ NewAV: false, isEnd: isEnd, data: parsed, loading: false })
- } catch (error) {
- ycore.yconsole.log(error)
- }
- }, payload)
- } catch (err) {
- ycore.notify.error('err')
- }
- },
- more(fkey){
- try {
- const { get, uid, filters } = this.props
- if (!get) {
- ycore.yconsole.error('Please, fill params with an catch type...')
- return
- }
- if (!fkey) {
- ycore.yconsole.warn(
- 'Please, provide a fkey for offset the feed, default using => 0'
- )
- }
- this.toogleLoader()
- const getLastPost = ycore.objectLast(this.state.data)
- ycore.yconsole.log('LAST POST ID =>', getLastPost.id)
-
- const payload = { fkey: getLastPost.id, type: get, id: uid }
- ycore.comty_post.getFeed((err, res) => {
- if (err) {
- return false
- }
- const oldData = this.state.data
- const parsed = JSON.parse(res)['data']
- const mix = oldData.concat(parsed)
- const isEnd =
- parsed.length < ycore.AppSettings.limit_post_catch ? true : false
- this.setState({ isEnd: isEnd, data: mix, loading: false }, () =>
- ycore.goTo.element(getLastPost.id)
- )
- return true
- }, payload)
- } catch (err) {
- ycore.notify.error(err)
- }
- }
- }
-
-
- render() {
- const { data, loading, isEnd, invalid, NewAV } = this.state
- const renderFeedPosts_payload = {data: data, loading: loading, isEnd: isEnd, feedGet: this.feedGet}
-
- if (invalid){
- return ComponentInvalid()
- }
- if (loading) {
- return (
-
-
-
- )
- }
- if (!loading) {
- return (
-
- {NewAV? ComponentNewAV(() => this.feedGet.first()) : null}
- {renderFeedPosts(renderFeedPosts_payload)}
-
- )
- }
- }
-}
-export default MainFeed
diff --git a/.prev/src/components/MainFeed/index.less b/.prev/src/components/MainFeed/index.less
deleted file mode 100644
index 599b9120..00000000
--- a/.prev/src/components/MainFeed/index.less
+++ /dev/null
@@ -1,4 +0,0 @@
-.main_feed_wrapper{
- scroll-behavior: smooth;
-
-}
diff --git a/.prev/src/components/MediaPlayer/index.js b/.prev/src/components/MediaPlayer/index.js
deleted file mode 100644
index 3854396b..00000000
--- a/.prev/src/components/MediaPlayer/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-import React from 'react'
-import classnames from 'classnames'
-import styles from './index.less'
-
-export default class MediaPlayer extends React.PureComponent {
- player() {
- const { file } = this.props
- let type
-
- const ImageExtensions = ['.png', '.jpg', '.jpeg', '.gif']
- const VideoExtensions = ['.mp4', '.mov', '.avi']
- const AudioExtensions = ['.mp3', '.ogg', '.wav']
-
- const FilesAllowed = ImageExtensions.concat(
- VideoExtensions,
- AudioExtensions
- )
-
- for (const prop in FilesAllowed) {
- if (file.includes(`${ImageExtensions[prop]}`)) {
- type = 'image'
- }
- if (file.includes(`${VideoExtensions[prop]}`)) {
- type = 'video'
- }
- if (file.includes(`${AudioExtensions[prop]}`)) {
- type = 'audio'
- }
- }
-
- if (type == 'video') {
- // const payload = {type: 'video', sources: [{src: file,}]}
- // return (
- //
- // )
- return (
-
-
-
- )
- }
- if (type == 'audio') {
- return (
-
-
-
- )
- }
- if (type == 'image') {
- return
- }
- }
- render() {
- return (
-
- {this.player()}
-
- )
- }
-}
diff --git a/.prev/src/components/MediaPlayer/index.less b/.prev/src/components/MediaPlayer/index.less
deleted file mode 100644
index 6478f35f..00000000
--- a/.prev/src/components/MediaPlayer/index.less
+++ /dev/null
@@ -1,80 +0,0 @@
-.PlayerContainer {
- width: 100%;
-
- img {
- width: 100%;
- overflow: hidden;
- margin: auto;
- }
-
- video {
- max-height: 600px;
- width: 100%;
- overflow: hidden;
- }
-
- audio {
- width: 100%;
- }
-
-
- &.entire {
- max-width: 52vw;
- max-height: 80vh;
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-70%, -50%);
-
- img {
- object-fit: contain;
- height: 100%;
- width: 100%;
- max-width: 52vw;
- max-height: 80vh;
- }
-
- audio {
- height: 100%;
- width: 100%;
- }
-
- video {
- object-fit: contain;
- height: 100%;
- width: 100%;
- max-width: 52vw;
- max-height: 80vh;
- }
- }
-
- &.mobile {
- max-width: 52vw;
- max-height: 80vh;
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
-
- img {
- object-fit: contain;
- height: 100%;
- width: 100%;
- max-width: 52vw;
- max-height: 80vh;
- }
-
- audio {
- height: 100%;
- width: 100%;
- }
-
- video {
- object-fit: contain;
- height: 100%;
- width: 100%;
- max-width: 52vw;
- max-height: 80vh;
- }
- }
-}
diff --git a/.prev/src/components/MediaPlayer/plyr.js b/.prev/src/components/MediaPlayer/plyr.js
deleted file mode 100644
index 6a65adfa..00000000
--- a/.prev/src/components/MediaPlayer/plyr.js
+++ /dev/null
@@ -1,134 +0,0 @@
-"use strict";
-
-function e(e) {
- return e && "object" == typeof e && "default" in e ? e.default : e
-}
-Object.defineProperty(exports, "__esModule", {
- value: !0
-});
-var t = e(require("react")),
- n = e(require("plyr"));
-
-function o(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
-}
-
-function i(e, t) {
- for (var n = 0; n < t.length; n++) {
- var o = t[n];
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o)
- }
-}
-
-function r(e) {
- return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
- return typeof e
- } : function (e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
- })(e)
-}
-
-function c(e) {
- return (c = "function" == typeof Symbol && "symbol" === r(Symbol.iterator) ? function (e) {
- return r(e)
- } : function (e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : r(e)
- })(e)
-}
-
-function s(e, t) {
- return !t || "object" !== c(t) && "function" != typeof t ? function (e) {
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return e
- }(e) : t
-}
-
-function a(e) {
- return (a = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) {
- return e.__proto__ || Object.getPrototypeOf(e)
- })(e)
-}
-
-function l(e, t) {
- return (l = Object.setPrototypeOf || function (e, t) {
- return e.__proto__ = t, e
- })(e, t)
-}
-require("plyr/dist/plyr.css");
-! function (e, t) {
- void 0 === t && (t = {});
- var n = t.insertAt;
- if (e && "undefined" != typeof document) {
- var o = document.head || document.getElementsByTagName("head")[0],
- i = document.createElement("style");
- i.type = "text/css", "top" === n && o.firstChild ? o.insertBefore(i, o.firstChild) : o.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e))
- }
-}('.yjs-plyr{width: 100%!important;position:relative;background-color:#4caf50;border:none;font-size:28px;color:#fff;padding:20px;width:200px;text-align:center;-webkit-transition-duration:.4s;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;box-shadow:0 8px 16px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.PlyrComponent:after{content:"";background:#f1f1f1;display:block;position:absolute;padding-top:300%;padding-left:350%;margin-left:-20px!important;margin-top:-120%;opacity:0;transition:all .8s}.PlyrComponent:active:after{padding:0;margin:0;opacity:1;transition:0s}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFDRSxpQkFBa0IsQ0FDbEIsd0JBQXlCLENBQ3pCLFdBQVksQ0FDWixjQUFlLENBQ2YsVUFBYyxDQUNkLFlBQWEsQ0FDYixXQUFZLENBQ1osaUJBQWtCLENBQ2xCLCtCQUFpQyxDQUNqQyx1QkFBeUIsQ0FDekIsb0JBQXFCLENBQ3JCLGVBQWdCLENBQ2hCLGNBQWUsQ0FDZixtRUFDRixDQUVBLHFCQUNFLFVBQVcsQ0FDWCxrQkFBbUIsQ0FDbkIsYUFBYyxDQUNkLGlCQUFrQixDQUNsQixnQkFBaUIsQ0FDakIsaUJBQWtCLENBQ2xCLDJCQUE2QixDQUM3QixnQkFBaUIsQ0FDakIsU0FBVSxDQUNWLGtCQUNGLENBRUEsNEJBQ0UsU0FBVSxDQUNWLFFBQVMsQ0FDVCxTQUFVLENBQ1YsYUFDRiIsImZpbGUiOiJzdHlsZXMuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLlBseXJDb21wb25lbnQge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICM0Q0FGNTA7XG4gIGJvcmRlcjogbm9uZTtcbiAgZm9udC1zaXplOiAyOHB4O1xuICBjb2xvcjogI0ZGRkZGRjtcbiAgcGFkZGluZzogMjBweDtcbiAgd2lkdGg6IDIwMHB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIC13ZWJraXQtdHJhbnNpdGlvbi1kdXJhdGlvbjogMC40czsgLyogU2FmYXJpICovXG4gIHRyYW5zaXRpb24tZHVyYXRpb246IDAuNHM7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBib3gtc2hhZG93OiAwIDhweCAxNnB4IDAgcmdiYSgwLDAsMCwwLjIpLCAwIDZweCAyMHB4IDAgcmdiYSgwLDAsMCwwLjE5KTtcbn1cblxuLlBseXJDb21wb25lbnQ6YWZ0ZXIge1xuICBjb250ZW50OiBcIlwiO1xuICBiYWNrZ3JvdW5kOiAjZjFmMWYxO1xuICBkaXNwbGF5OiBibG9jaztcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBwYWRkaW5nLXRvcDogMzAwJTtcbiAgcGFkZGluZy1sZWZ0OiAzNTAlO1xuICBtYXJnaW4tbGVmdDogLTIwcHggIWltcG9ydGFudDtcbiAgbWFyZ2luLXRvcDogLTEyMCU7XG4gIG9wYWNpdHk6IDA7XG4gIHRyYW5zaXRpb246IGFsbCAwLjhzXG59XG5cbi5QbHlyQ29tcG9uZW50OmFjdGl2ZTphZnRlciB7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgb3BhY2l0eTogMTtcbiAgdHJhbnNpdGlvbjogMHNcbn1cbiJdfQ== */');
-var u = function (e) {
- function r() {
- return o(this, r), s(this, a(r).apply(this, arguments))
- }
- var c, u, p;
- return function (e, t) {
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
- e.prototype = Object.create(t && t.prototype, {
- constructor: {
- value: e,
- writable: !0,
- configurable: !0
- }
- }), t && l(e, t)
- }(r, t.Component), c = r, (u = [{
- key: "componentDidMount",
- value: function () {
- this.player = new n(".yjs-plyr", this.props.options), this.player.source = this.props.sources
- }
- }, {
- key: "componentWillUnmount",
- value: function () {
- this.player.destroy()
- }
- }, {
- key: "render",
- value: function () {
- return t.createElement("video", {
- className: "yjs-plyr plyr"
- })
- }
- }]) && i(c.prototype, u), p && i(c, p), r
-}();
-u.defaultProps = {
- options: {
- controls: ["rewind", "play", "fast-forward", "progress", "current-time", "duration", "mute", "volume", "settings", "fullscreen"],
- i18n: {
- restart: "Restart",
- rewind: "Rewind {seektime}s",
- play: "Play",
- pause: "Pause",
- fastForward: "Forward {seektime}s",
- seek: "Seek",
- seekLabel: "{currentTime} of {duration}",
- played: "Played",
- buffered: "Buffered",
- currentTime: "Current time",
- duration: "Duration",
- volume: "Volume",
- mute: "Mute",
- unmute: "Unmute",
- enableCaptions: "Enable captions",
- disableCaptions: "Disable captions",
- download: "Download",
- enterFullscreen: "Enter fullscreen",
- exitFullscreen: "Exit fullscreen",
- frameTitle: "Player for {title}",
- captions: "Captions",
- settings: "Settings",
- menuBack: "Go back to previous menu",
- speed: "Speed",
- normal: "Normal",
- quality: "Quality",
- loop: "Loop"
- }
- },
-
-}, exports.PlyrComponent = u;
\ No newline at end of file
diff --git a/.prev/src/components/MobileWarning/index.js b/.prev/src/components/MobileWarning/index.js
deleted file mode 100644
index 880bd85a..00000000
--- a/.prev/src/components/MobileWarning/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from 'react'
-import styles from './index.less'
-import store from 'store'
-import * as antd from 'antd'
-
-export default class MobileWarning extends React.PureComponent {
- state = {
- resbypass: store.get('resbypass') || false,
- }
-
- ResByPassHandler = () => {
- this.setState({ resbypass: true })
- }
-
- render() {
- const { resbypass } = this.state
-
- if (resbypass == false) {
- return (
-
-
-
- This version of the application is not fully compatible with
- the resolution of this screen, a higher resolution is
- recommended for an optimal experience
-
- Please choose an option to continue
-
-
- this.ResByPassHandler()}
- >
- Continue
-
-
- }
- />
-
- )
- }
- return null
- }
-}
diff --git a/.prev/src/components/MobileWarning/index.less b/.prev/src/components/MobileWarning/index.less
deleted file mode 100644
index 62ea91e1..00000000
--- a/.prev/src/components/MobileWarning/index.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.mobilewarning {
- background-color: rgba(0, 0, 0, 0.975);
- color: white;
- width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- z-index: 100000;
- display: flex;
- justify-content: center;
- text-align: center;
-
- :global {
- .ant-result-title {
- color: white;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/components/PageTransition/animations.js b/.prev/src/components/PageTransition/animations.js
deleted file mode 100644
index 236f577c..00000000
--- a/.prev/src/components/PageTransition/animations.js
+++ /dev/null
@@ -1,780 +0,0 @@
-import { keyframes } from 'styled-components'
-
-export default {
- moveToLeft: {
- keyframes: keyframes`
- from { }
- to { transform: translateX(-100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveFromLeft: {
- keyframes: keyframes`
- from { transform: translateX(-100%) };
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveToRight: {
- keyframes: keyframes`
- from { }
- to { transform: translateX(100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveFromRight: {
- keyframes: keyframes`
- from { transform: translateX(100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveToTop: {
- keyframes: keyframes`
- from { }
- to { transform: translateY(-100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveFromTop: {
- keyframes: keyframes`
- from { transform: translateY(-100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveToBottom: {
- keyframes: keyframes`
- from { }
- to { transform: translateY(100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveFromBottom: {
- keyframes: keyframes`
- from { transform: translateY(100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- fade: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveToLeftFade: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(-100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveFromLeftFade: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(-100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveToRightFade: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveFromRightFade: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveToTopFade: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(-100%); }
- `,
- duration: 600,
- timing: 'ease',
- fill: 'both',
- },
- moveFromTopFade: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(-100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveToBottomFade: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- moveFromBottomFade: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(100%); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- scaleDown: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: scale(0.8); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- scaleUp: {
- keyframes: keyframes`
- from { opacity: 0; transform: scale(0.8); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- },
- scaleUpDown: {
- keyframes: keyframes`
- from { opacity: 0; transform: scale(1.2); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- },
- scaleDownUp: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: scale(1.2); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- },
- scaleDownCenter: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: scale(0.7); }
- `,
- duration: 400,
- timing: 'ease',
- fill: 'both',
- },
- scaleUpCenter: {
- keyframes: keyframes`
- from { opacity: 0; transform: scale(0.7); }
- `,
- duration: 400,
- timing: 'ease',
- fill: 'both',
- },
- rotateRightSideFirst: {
- keyframes: keyframes`
- 0% { }
- 40% { transform: rotateY(15deg); opacity: 0.8; animation-timing-function: ease-out; }
- 100% { transform: scale(0.8) translateZ(-200px); opacity:0; }
- `,
- duration: 800,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateLeftSideFirst: {
- keyframes: keyframes`
- 0% { }
- 40% { transform: rotateY(-15deg); opacity: 0.8; animation-timing-function: ease-out; }
- 100% { transform: scale(0.8) translateZ(-200px); opacity:0; }
- `,
- duration: 800,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateTopSideFirst: {
- keyframes: keyframes`
- 0% { }
- 40% { transform: rotateX(15deg); opacity: 0.8; animation-timing-function: ease-out; }
- 100% { transform: scale(0.8) translateZ(-200px); opacity:0; }
- `,
- duration: 800,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateBottomSideFirst: {
- keyframes: keyframes`
- 0% { }
- 40% { transform: rotateX(-15deg); opacity: 0.8; animation-timing-function: ease-out; }
- 100% {transform: scale(0.8) translateZ(-200px); opacity:0; }
- `,
- duration: 800,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- flipOutRight: {
- keyframes: keyframes`
- from { }
- to { transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 50%',
- },
- flipInLeft: {
- keyframes: keyframes`
- from { transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-out',
- fill: 'both',
- origin: '50% 50%',
- },
- flipOutLeft: {
- keyframes: keyframes`
- from { }
- to { transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 50%',
- },
- flipInRight: {
- keyframes: keyframes`
- from { transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-out',
- fill: 'both',
- origin: '50% 50%',
- },
- flipOutTop: {
- keyframes: keyframes`
- from { }
- to { transform: translateZ(-1000px) rotateX(90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 50%',
- },
- flipInBottom: {
- keyframes: keyframes`
- from { transform: translateZ(-1000px) rotateX(-90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-out',
- fill: 'both',
- origin: '50% 50%',
- },
- flipOutBottom: {
- keyframes: keyframes`
- from { }
- to { transform: translateZ(-1000px) rotateX(-90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 50%',
- },
- flipInTop: {
- keyframes: keyframes`
- from { transform: translateZ(-1000px) rotateX(90deg); opacity: 0.2; }
- `,
- duration: 500,
- timing: 'ease-out',
- fill: 'both',
- origin: '50% 50%',
- },
- rotateFall: {
- keyframes: keyframes`
- 0% { transform: rotateZ(0deg); }
- 20% { transform: rotateZ(10deg); animation-timing-function: ease-out; }
- 40% { transform: rotateZ(17deg); }
- 60% { transform: rotateZ(16deg); }
- 100% { transform: translateY(100%) rotateZ(17deg); }
- `,
- duration: 1000,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 0%',
- },
- rotateOutNewspaper: {
- keyframes: keyframes`
- from { }
- to { transform: translateZ(-3000px) rotateZ(360deg); opacity: 0; }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 50%',
- },
- rotateInNewspaper: {
- keyframes: keyframes`
- from { transform: translateZ(-3000px) rotateZ(-360deg); opacity: 0; }
- `,
- duration: 500,
- timing: 'ease-out',
- fill: 'both',
- origin: '50% 50%',
- },
- rotatePushLeft: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: rotateY(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotatePushRight: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: rotateY(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotatePushTop: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: rotateX(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotatePushBottom: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: rotateX(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotatePullRight: {
- keyframes: keyframes`
- from { opacity: 0; transform: rotateY(-90deg); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotatePullLeft: {
- keyframes: keyframes`
- from { opacity: 0; transform: rotateY(90deg); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotatePullTop: {
- keyframes: keyframes`
- from { opacity: 0; transform: rotateX(-90deg); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotatePullBottom: {
- keyframes: keyframes`
- from { opacity: 0; transform: rotateX(90deg); }
- `,
- duration: 500,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateFoldRight: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: translateX(100%) rotateY(90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateFoldLeft: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: translateX(-100%) rotateY(-90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateFoldTop: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: translateY(-100%) rotateX(90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateFoldBottom: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: translateY(100%) rotateX(-90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateUnfoldLeft: {
- keyframes: keyframes`
- from { opacity: 0; transform: translateX(-100%) rotateY(-90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateUnfoldRight: {
- keyframes: keyframes`
- from { opacity: 0; transform: translateX(100%) rotateY(90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateUnfoldTop: {
- keyframes: keyframes`
- from { opacity: 0; transform: translateY(-100%) rotateX(90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateUnfoldBottom: {
- keyframes: keyframes`
- from { opacity: 0; transform: translateY(100%) rotateX(-90deg); }
- `,
- duration: 700,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateRoomLeftOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(-100%) rotateY(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateRoomLeftIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(100%) rotateY(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateRoomRightOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(100%) rotateY(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateRoomRightIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(-100%) rotateY(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateRoomTopOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(-100%) rotateX(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateRoomTopIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(100%) rotateX(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateRoomBottomOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(100%) rotateX(90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateRoomBottomIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(-100%) rotateX(-90deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateCubeLeftOut: {
- keyframes: keyframes`
- 0% { }
- 50% { animation-timing-function: ease-out; transform: translateX(-50%) translateZ(-200px) rotateY(-45deg); }
- 100% { opacity: 0.3; transform: translateX(-100%) rotateY(-90deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateCubeLeftIn: {
- keyframes: keyframes`
- 0% { opacity: 0.3; transform: translateX(100%) rotateY(90deg); }
- 50% { animation-timing-function: ease-out; transform: translateX(50%) translateZ(-200px) rotateY(45deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateCubeRightOut: {
- keyframes: keyframes`
- 0% { }
- 50% { animation-timing-function: ease-out; transform: translateX(50%) translateZ(-200px) rotateY(45deg); }
- 100% { opacity: 0.3; transform: translateX(100%) rotateY(90deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateCubeRightIn: {
- keyframes: keyframes`
- 0% { opacity: 0.3; transform: translateX(-100%) rotateY(-90deg); }
- 50% { animation-timing-function: ease-out; transform: translateX(-50%) translateZ(-200px) rotateY(-45deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateCubeTopOut: {
- keyframes: keyframes`
- 0% {}
- 50% { animation-timing-function: ease-out; transform: translateY(-50%) translateZ(-200px) rotateX(45deg); }
- 100% { opacity: 0.3; transform: translateY(-100%) rotateX(90deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateCubeTopIn: {
- keyframes: keyframes`
- 0% { opacity: 0.3; transform: translateY(100%) rotateX(-90deg); }
- 50% { animation-timing-function: ease-out; transform: translateY(50%) translateZ(-200px) rotateX(-45deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateCubeBottomOut: {
- keyframes: keyframes`
- 0% { }
- 50% { animation-timing-function: ease-out; transform: translateY(50%) translateZ(-200px) rotateX(-45deg); }
- 100% { opacity: 0.3; -webkit-transform: translateY(100%) rotateX(-90deg); transform: translateY(100%) rotateX(-90deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateCubeBottomIn: {
- keyframes: keyframes`
- 0% { opacity: 0.3; -webkit-transform: translateY(-100%) rotateX(90deg); transform: translateY(-100%) rotateX(90deg); }
- 50% { animation-timing-function: ease-out; transform: translateY(-50%) translateZ(-200px) rotateX(45deg); }
- `,
- duration: 600,
- timing: 'ease-in',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateCarouselLeftOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(-150%) scale(0.4) rotateY(-65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateCarouselLeftIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(200%) scale(0.4) rotateY(65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateCarouselRightOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateX(200%) scale(0.4) rotateY(65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '0% 50%',
- },
- rotateCarouselRightIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateX(-200%) scale(0.4) rotateY(-65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '100% 50%',
- },
- rotateCarouselTopOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(-200%) scale(0.4) rotateX(65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateCarouselTopIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(200%) scale(0.4) rotateX(-65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateCarouselBottomOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0.3; transform: translateY(200%) scale(0.4) rotateX(-65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 0%',
- },
- rotateCarouselBottomIn: {
- keyframes: keyframes`
- from { opacity: 0.3; transform: translateY(-200%) scale(0.4) rotateX(65deg); }
- `,
- duration: 800,
- timing: 'ease',
- fill: 'both',
- origin: '50% 100%',
- },
- rotateSidesOut: {
- keyframes: keyframes`
- from { }
- to { opacity: 0; transform: translateZ(-500px) rotateY(90deg); }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '-50% 50%',
- },
- rotateSidesIn: {
- keyframes: keyframes`
- from { opacity: 0; transform: translateZ(-500px) rotateY(-90deg); }
- `,
- duration: 500,
- timing: 'ease-in',
- fill: 'both',
- origin: '150% 50%',
- },
- rotateSlideOut: {
- keyframes: keyframes`
- 0% { }
- 25% { opacity: 0.5; transform: translateZ(-500px); }
- 75% { opacity: 0.5; transform: translateZ(-500px) translateX(-200%); }
- 100% { opacity: 0.5; transform: translateZ(-500px) translateX(-200%); }
- `,
- duration: 1000,
- timing: 'ease',
- fill: 'both',
- },
- rotateSlideIn: {
- keyframes: keyframes`
- 0%, 25% { opacity: 0.5; transform: translateZ(-500px) translateX(200%); }
- 75% { opacity: 0.5; transform: translateZ(-500px); }
- 100% { opacity: 1; transform: translateZ(0) translateX(0); }
- `,
- duration: 1000,
- timing: 'ease',
- fill: 'both',
- },
-}
diff --git a/.prev/src/components/PageTransition/index.js b/.prev/src/components/PageTransition/index.js
deleted file mode 100644
index 31743946..00000000
--- a/.prev/src/components/PageTransition/index.js
+++ /dev/null
@@ -1,80 +0,0 @@
-import React, { memo } from 'react'
-import { Transition, TransitionGroup } from 'react-transition-group'
-import animations from './animations'
-import presets from './presets'
-import * as Styles from './styles'
-
-function PageTransition({
- children,
- enterAnimation: enterAnimationOverride,
- exitAnimation: exitAnimationOverride,
- preset,
- transitionKey,
- ...rest
-}) {
- const selectEnterAnimation = () => {
- if (enterAnimationOverride) {
- if (typeof enterAnimationOverride === 'string') {
- return animations[enterAnimationOverride]
- }
- return {
- ...animations[enterAnimationOverride.name],
- delay: enterAnimationOverride.delay,
- onTop: enterAnimationOverride.onTop,
- }
- }
- if (preset) {
- return {
- ...animations[presets[preset].enter.name],
- delay: presets[preset].enter.delay,
- onTop: presets[preset].enter.onTop,
- }
- }
- return 'rotateSlideIn'
- }
-
- const selectExitAnimation = () => {
- if (exitAnimationOverride) {
- if (typeof exitAnimationOverride === 'string') {
- return animations[exitAnimationOverride]
- }
- return {
- ...animations[exitAnimationOverride.name],
- delay: exitAnimationOverride.delay,
- onTop: exitAnimationOverride.onTop,
- }
- }
- if (preset) {
- return {
- ...animations[presets[preset].exit.name],
- delay: presets[preset].exit.delay,
- onTop: presets[preset].exit.onTop,
- }
- }
- return 'rotateSlideIn'
- }
-
- const enterAnimation = selectEnterAnimation()
- const exitAnimation = selectExitAnimation()
- const timeout = Math.max(enterAnimation.duration, exitAnimation.duration)
-
- return (
-
-
-
- {state => (
-
- {children}
-
- )}
-
-
-
- )
-}
-
-export default memo(PageTransition)
diff --git a/.prev/src/components/PageTransition/presets.js b/.prev/src/components/PageTransition/presets.js
deleted file mode 100644
index 31711350..00000000
--- a/.prev/src/components/PageTransition/presets.js
+++ /dev/null
@@ -1,552 +0,0 @@
-export default {
- moveToLeftFromRight: {
- exit: {
- name: 'moveToLeft',
- },
- enter: {
- name: 'moveFromRight',
- },
- },
- moveToRightFromLeft: {
- exit: {
- name: 'moveToRight',
- },
- enter: {
- name: 'moveFromLeft',
- },
- },
- moveToTopFromBottom: {
- exit: {
- name: 'moveToTop',
- },
- enter: {
- name: 'moveFromBottom',
- },
- },
- moveToBottomFromTop: {
- exit: {
- name: 'moveToBottom',
- },
- enter: {
- name: 'moveFromTop',
- },
- },
- fadeFromRight: {
- exit: {
- name: 'fade',
- },
- enter: {
- name: 'moveFromRight',
- onTop: true,
- },
- },
- fadeFromLeft: {
- exit: {
- name: 'fade',
- },
- enter: {
- name: 'moveFromLeft',
- onTop: true,
- },
- },
- fadeFromBottom: {
- exit: {
- name: 'fade',
- },
- enter: {
- name: 'moveFromBottom',
- onTop: true,
- },
- },
- fadeFromTop: {
- exit: {
- name: 'fade',
- },
- enter: {
- name: 'moveFromTop',
- onTop: true,
- },
- },
- fadeLeftFadeRight: {
- exit: {
- name: 'moveToLeftFade',
- },
- enter: {
- name: 'moveFromRightFade',
- },
- },
- fadeRightFadeLeft: {
- exit: {
- name: 'moveToRightFade',
- },
- enter: {
- name: 'moveFromLeftFade',
- },
- },
- fadeTopFadeBottom: {
- exit: {
- name: 'moveToTopFade',
- },
- enter: {
- name: 'moveFromBottomFade',
- },
- },
- fadeBottomFadeTop: {
- exit: {
- name: 'moveToBottomFade',
- },
- enter: {
- name: 'moveFromTopFade',
- },
- },
- scaleDownFromRight: {
- exit: {
- name: 'scaleDown',
- },
- enter: {
- name: 'moveFromRight',
- onTop: true,
- },
- },
- scaleDownFromLeft: {
- exit: {
- name: 'scaleDown',
- },
- enter: {
- name: 'moveFromLeft',
- onTop: true,
- },
- },
- scaleDownFromBottom: {
- exit: {
- name: 'scaleDown',
- },
- enter: {
- name: 'moveFromBottom',
- onTop: true,
- },
- },
- scaleDownFromTop: {
- exit: {
- name: 'scaleDown',
- },
- enter: {
- name: 'moveFromTop',
- onTop: true,
- },
- },
- scaleDownScaleDown: {
- exit: {
- name: 'scaleDown',
- },
- enter: {
- name: 'scaleUpDown',
- delay: 300,
- },
- },
- scaleUpScaleUp: {
- exit: {
- name: 'scaleDownUp',
- },
- enter: {
- name: 'scaleUp',
- delay: 300,
- },
- },
- moveToLeftScaleUp: {
- exit: {
- name: 'moveToLeft',
- onTop: true,
- },
- enter: {
- name: 'scaleUp',
- },
- },
- moveToRightScaleUp: {
- exit: {
- name: 'moveToRight',
- onTop: true,
- },
- enter: {
- name: 'scaleUp',
- },
- },
- moveToTopScaleUp: {
- exit: {
- name: 'moveToTop',
- onTop: true,
- },
- enter: {
- name: 'scaleUp',
- },
- },
- moveToBottomScaleUp: {
- exit: {
- name: 'moveToBottom',
- onTop: true,
- },
- enter: {
- name: 'scaleUp',
- },
- },
- scaleDownScaleUp: {
- exit: {
- name: 'scaleDownCenter',
- },
- enter: {
- name: 'scaleUpCenter',
- delay: 400,
- },
- },
- glueLeftFromRight: {
- exit: {
- name: 'rotateRightSideFirst',
- },
- enter: {
- name: 'moveFromRight',
- delay: 200,
- onTop: true,
- },
- },
- glueRightFromLeft: {
- exit: {
- name: 'rotateLeftSideFirst',
- },
- enter: {
- name: 'moveFromLeft',
- delay: 200,
- onTop: true,
- },
- },
- glueBottomFromTop: {
- exit: {
- name: 'rotateTopSideFirst',
- },
- enter: {
- name: 'moveFromTop',
- delay: 200,
- onTop: true,
- },
- },
- glueTopFromBottom: {
- exit: {
- name: 'rotateBottomSideFirst',
- },
- enter: {
- name: 'moveFromBottom',
- delay: 200,
- onTop: true,
- },
- },
- flipRight: {
- exit: {
- name: 'flipOutRight',
- },
- enter: {
- name: 'flipInLeft',
- delay: 500,
- },
- },
- flipLeft: {
- exit: {
- name: 'flipOutLeft',
- },
- enter: {
- name: 'flipInRight',
- delay: 500,
- },
- },
- flipTop: {
- exit: {
- name: 'flipOutTop',
- },
- enter: {
- name: 'flipInBottom',
- delay: 500,
- },
- },
- flipBottom: {
- exit: {
- name: 'flipOutBottom',
- },
- enter: {
- name: 'flipInTop',
- delay: 500,
- },
- },
- fall: {
- exit: {
- name: 'rotateFall',
- onTop: true,
- },
- enter: {
- name: 'scaleUp',
- },
- },
- newspaper: {
- exit: {
- name: 'rotateOutNewspaper',
- },
- enter: {
- name: 'rotateInNewspaper',
- delay: 500,
- },
- },
- pushLeftFromRight: {
- exit: {
- name: 'rotatePushLeft',
- },
- enter: {
- name: 'moveFromRight',
- },
- },
- pushRightFromLeft: {
- exit: {
- name: 'rotatePushRight',
- },
- enter: {
- name: 'moveFromLeft',
- },
- },
- pushTopFromBottom: {
- exit: {
- name: 'rotatePushTop',
- },
- enter: {
- name: 'moveFromBottom',
- },
- },
- pushBottomFromTop: {
- exit: {
- name: 'rotatePushBottom',
- },
- enter: {
- name: 'moveFromTop',
- },
- },
- pushLeftPullRight: {
- exit: {
- name: 'rotatePushLeft',
- },
- enter: {
- name: 'rotatePullRight',
- delay: 180,
- },
- },
- pushRightPullLeft: {
- exit: {
- name: 'rotatePushRight',
- },
- enter: {
- name: 'rotatePullLeft',
- delay: 180,
- },
- },
- pushTopPullBottom: {
- exit: {
- name: 'rotatePushTop',
- },
- enter: {
- name: 'rotatePullBottom',
- delay: 180,
- },
- },
- pushBottomPullTop: {
- exit: {
- name: 'rotatePushBottom',
- },
- enter: {
- name: 'rotatePullTop',
- delay: 180,
- },
- },
- foldLeftFromRight: {
- exit: {
- name: 'rotateFoldLeft',
- },
- enter: {
- name: 'moveFromRightFade',
- },
- },
- foldRightFromLeft: {
- exit: {
- name: 'rotateFoldRight',
- },
- enter: {
- name: 'moveFromLeftFade',
- },
- },
- foldTopFromBottom: {
- exit: {
- name: 'rotateFoldTop',
- },
- enter: {
- name: 'moveFromBottomFade',
- },
- },
- foldBottomFromTop: {
- exit: {
- name: 'rotateFoldBottom',
- },
- enter: {
- name: 'moveFromTopFade',
- },
- },
- moveToRightUnfoldLeft: {
- exit: {
- name: 'moveToRightFade',
- },
- enter: {
- name: 'rotateUnfoldLeft',
- },
- },
- moveToLeftUnfoldRight: {
- exit: {
- name: 'moveToLeftFade',
- },
- enter: {
- name: 'rotateUnfoldRight',
- },
- },
- moveToBottomUnfoldTop: {
- exit: {
- name: 'moveToBottomFade',
- },
- enter: {
- name: 'rotateUnfoldTop',
- },
- },
- moveToTopUnfoldBottom: {
- exit: {
- name: 'moveToTopFade',
- },
- enter: {
- name: 'rotateUnfoldBottom',
- },
- },
- roomToLeft: {
- exit: {
- name: 'rotateRoomLeftOut',
- onTop: true,
- },
- enter: {
- name: 'rotateRoomLeftIn',
- },
- },
- roomToRight: {
- exit: {
- name: 'rotateRoomRightOut',
- onTop: true,
- },
- enter: {
- name: 'rotateRoomRightIn',
- },
- },
- roomToTop: {
- exit: {
- name: 'rotateRoomTopOut',
- onTop: true,
- },
- enter: {
- name: 'rotateRoomTopIn',
- },
- },
- roomToBottom: {
- exit: {
- name: 'rotateRoomBottomOut',
- onTop: true,
- },
- enter: {
- name: 'rotateRoomBottomIn',
- },
- },
- cubeToLeft: {
- exit: {
- name: 'rotateCubeLeftOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCubeLeftIn',
- },
- },
- cubeToRight: {
- exit: {
- name: 'rotateCubeRightOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCubeRightIn',
- },
- },
- cubeToTop: {
- exit: {
- name: 'rotateCubeTopOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCubeTopIn',
- },
- },
- cubeToBottom: {
- exit: {
- name: 'rotateCubeBottomOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCubeBottomIn',
- },
- },
- carouselToLeft: {
- exit: {
- name: 'rotateCarouselLeftOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCarouselLeftIn',
- },
- },
- carouselToRight: {
- exit: {
- name: 'rotateCarouselRightOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCarouselRightIn',
- },
- },
- carouselToTop: {
- exit: {
- name: 'rotateCarouselTopOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCarouselTopIn',
- },
- },
- carouselToBottom: {
- exit: {
- name: 'rotateCarouselBottomOut',
- onTop: true,
- },
- enter: {
- name: 'rotateCarouselBottomIn',
- },
- },
- slides: {
- exit: {
- name: 'rotateSidesOut',
- },
- enter: {
- name: 'rotateSidesIn',
- delay: 200,
- },
- },
- slide: {
- exit: {
- name: 'rotateSlideOut',
- },
- enter: {
- name: 'rotateSlideIn',
- },
- },
-}
diff --git a/.prev/src/components/PageTransition/styles.js b/.prev/src/components/PageTransition/styles.js
deleted file mode 100644
index bb6e4380..00000000
--- a/.prev/src/components/PageTransition/styles.js
+++ /dev/null
@@ -1,54 +0,0 @@
-import styled, { css } from 'styled-components'
-
-const createAnimationStyles = ({
- keyframes,
- delay,
- duration,
- timing,
- fill,
- origin,
- onTop,
-}) => css`
- animation-name: ${keyframes};
- animation-delay: ${delay};
- animation-duration: ${duration}ms;
- animation-timing-function: ${timing};
- animation-fill-mode: ${fill};
- transform-origin: ${origin || '50% 50%'};
- ${onTop &&
- css`
- z-index: 1;
- `}
-`
-
-const stateMap = {
- entering: ({ enterAnimation }) => {
- return css`
- ${createAnimationStyles(enterAnimation)};
- `
- },
- exiting: ({ exitAnimation }) => {
- return css`
- ${createAnimationStyles(exitAnimation)};
- `
- },
-}
-
-export const PageTransitionGroup = styled.div`
- position: relative;
- width: 100%;
- height: 100%;
- perspective: 1200px;
-`
-
-export const PageTransition = styled.div`
- backface-visibility: hidden;
- height: 100%;
- left: 0;
- position: absolute;
- top: 0;
- transform-style: preserve-3d;
- transform: translate3d(0, 0, 0);
- width: 100%;
- ${({ state }) => stateMap[state]};
-`
diff --git a/.prev/src/components/PostCard/index.js b/.prev/src/components/PostCard/index.js
deleted file mode 100644
index ce1428a4..00000000
--- a/.prev/src/components/PostCard/index.js
+++ /dev/null
@@ -1,272 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import styles from './index.less'
-import { CustomIcons, Like_button, MediaPlayer } from 'components'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import classnames from 'classnames'
-import * as MICON from '@material-ui/icons'
-
-const { Meta } = antd.Card
-
-// Set default by configuration
-const emptyPayload = {
- user: 'Post Empty',
- ago: 'This Post is empty',
- avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
- content: 'Empty',
-}
-
-class PostCard extends React.PureComponent {
- constructor(props) {
- super(props),
- this.state = {
- visibleMoreMenu: false,
- postPinned: this.props.payload.is_post_pinned,
- postSaved: this.props.payload.is_post_saved,
- postReported: this.props.payload.is_post_reported,
- postBoosted: this.props.payload.is_post_boosted,
- ReportIgnore: false,
- }
- }
- handleVisibleChange = flag => {
- this.setState({ visibleMoreMenu: flag });
- };
-
- toogleMoreMenu(){
- this.setState({visibleMoreMenu: !this.state.visibleMoreMenu})
- }
-
- goToPost(postID) {
- localStorage.setItem('p_back_uid', postID)
- const payload = { post_id: postID }
- ycore.comty_post.get((err, res) => {
- if (err) {
- return false
- }
- ycore.SecondarySwap.openPost(res)
- }, payload)
- }
-
- render() {
- const { payload, customActions } = this.props
- const ActShowMode = ycore.AppSettings.auto_hide_postbar
- const {
- id,
- post_time,
- postText,
- postFile,
- publisher,
- post_likes,
- is_post_pinned,
- is_liked,
- post_comments,
- } = payload || emptyPayload
- const handlePostActions = {
- delete: post_id => {
- const payload = { post_id: post_id }
- ycore.comty_post.delete((err, res) => {
- if (err) {
- return false
- }
- ycore.FeedHandler.killByID(post_id)
- }, payload)
- },
- save: post_id => {
- const payload = { post_id: post_id }
- ycore.comty_post.save((err, res) => {
- if (err) {
- return false
- }
- if (this.state.postSaved == false) {
- ycore.notify.success('Post Saved')
- this.setState({ postSaved: true })
- return
- } else {
- ycore.notify.info('Removed from Saved')
- this.setState({ postSaved: false })
- }
- }, payload)
- },
- report: post_id => {
- ycore.app_modals.report_post(post_id)
- },
- boost: post_id => {
- const payload = { post_id: post_id }
- ycore.comty_post.__boost((err, res) => {
- if (err) {
- return false
- }
- if (this.state.postBoosted == false) {
- ycore.notify.success('Post Boosted')
- this.setState({ postBoosted: true })
- return
- } else {
- ycore.notify.info('Post Unboosted')
- this.setState({ postBoosted: false })
- }
- }, payload)
- },
- }
- const defaultActions = [
-
-
-
,
- 0 ? true : false}>
- this.goToPost(id)} />
- ,
- ]
- const actions = customActions || defaultActions
-
- const MoreMenu = (
-
- {ycore.IsThisPost.owner(publisher.id) ? (
-
- handlePostActions.delete(id) & this.toogleMoreMenu()}
- okText="Yes"
- cancelText="No"
- >
- Remove post
-
-
-
- ) : null}
- {ycore.IsThisPost.owner(publisher.id) ? (
- ycore.IsThisUser.pro(publisher.id) ? (
- handlePostActions.boost(id) & this.toogleMoreMenu()}
- key="boost_post"
- >
- {' '}
- {this.state.postBoosted ? 'Unboost' : 'Boost'}
-
- ) : null
- ) : null}
- {ycore.IsThisPost.owner(publisher.id) ? : null}
- handlePostActions.save(id) & this.toogleMoreMenu()}
- key="save_post"
- >
- {' '}
- {this.state.postSaved ? 'Unsave post' : 'Save Post'}
-
- {this.state.postReported? null:
- handlePostActions.report(id) & this.toogleMoreMenu() }
- key="report_post"
- >
- Report post
-
- }
-
- )
-
- return (
-
-
this.goToPost(id)}
- hoverable
- className={ActShowMode ? null : styles.showMode}
- actions={actions}
- >
- {this.state.ReportIgnore ? null : this.state.postReported ? (
-
-
-
It seems that this post has been reported
-
The content may be inappropriate or compromising
-
{
- this.setState({ ReportIgnore: true })
- }}
- >
- Ignore
-
-
- ) : null}
-
- }
- title={
-
-
- ycore.router.go(`@${publisher.username}`)
- }
- className={styles.titleUser}
- >
- @{publisher.username}
- {ycore.booleanFix(publisher.verified) ? (
-
- ) : null}
- {ycore.booleanFix(publisher.nsfw_flag) ? (
-
- NSFW
-
- ) : null}{' '}
-
-
-
- {ycore.booleanFix(is_post_pinned) ? (
-
- ) : null}
-
-
- }
- description={{post_time} }
- bordered="false"
- />
- {postText ? (
-
- {' '}
-
{' '}
-
- ) : null}
- {postFile ? (
-
-
-
- ) : null}
-
-
-
-
-
-
- )
- }
-}
-export default PostCard
diff --git a/.prev/src/components/PostCard/index.less b/.prev/src/components/PostCard/index.less
deleted file mode 100644
index 11ae7bb5..00000000
--- a/.prev/src/components/PostCard/index.less
+++ /dev/null
@@ -1,230 +0,0 @@
-@import '~themes/index.less';
-
-.post_card_flaggedWarning {
- border-radius: @post_card_general_border-rd;
- width: 100%;
- text-align: center;
- position: absolute;
- z-index: 20;
- background: @post_card_flaggedWarning_backgroud;
- font-family: @__Global_general_font_family;
- padding: @post_card_flaggedWarning_padding;
-
- :global {
- .anticon {
- font-size: @post_card_flaggedWarning_iconSize;
- }
- }
-}
-
-.post_card_wrapper {
- box-shadow: @post_card_wrapper_shadow;
- border-radius: @post_card_general_border-rd;
- max-width: 510px;
- min-width: 265px;
- width: auto;
- margin: 23px auto 50px auto;
-
- :global {
- .ant-card-meta-detail>div:not(:last-child) {
- margin: 0
- }
-
- .ant-card {
- border-radius: @post_card_general_border-rd;
- border: 0;
- border-top: 1px solid #4646460c;
- }
-
- .ant-card-body {
- padding: 0;
- }
-
- .ant-card-actions {
- border-top: 0;
- background: @post_card_wrapper_actions_backgroud;
- height: 30px;
- position: relative;
- transition: opacity @__Global_Components_transitions_dur linear, position @__Global_Components_transitions_dur linear, transform @__Global_Components_transitions_dur linear;
- border-radius: 0 0 10px 10px;
- opacity: 0;
-
- &.showMode {
- opacity: 1;
- transform: translate(0, 15px);
- }
- }
-
- .ant-card-actions:hover {
- opacity: 1;
- transform: translate(0, 15px);
- transition: opacity @__Global_Components_transitions_dur linear, position @__Global_Components_transitions_dur linear, transform @__Global_Components_transitions_dur linear;
- }
-
- .ant-card-actions>li>.anticon {
- font-size: 16px;
- line-height: 22px;
- width: 40px;
- height: 40px;
- background: @post_card_wrapper_actions_icon_backgroud;
- border-radius: 23px;
- }
-
- .ant-card-actions>li {
- margin: -20px 0 0 0;
- border-right: 0;
-
- .ant-badge-count {
- width: 20px;
- text-align: left;
-
- span {
- font-size: 12px;
- }
-
- .ant-scroll-number-only>p.ant-scroll-number-only-unit {
- height: 20px;
- width: 20px;
- margin: 0;
- line-height: 20px;
- padding: 0 0 0 1px;
- }
- }
-
- span {
- font-size: 16px;
- line-height: 22px;
- width: 40px;
- height: 40px;
- background: @post_card_wrapper_actions_icon_backgroud;
- border-radius: 23px;
- margin: auto;
- }
-
- svg {
- height: 20px;
- width: 20px;
- height: 100%;
- vertical-align: middle;
- }
- }
- }
-}
-
-.post_include {
- padding: 13px 0 5px 0;
- transition: all 150ms linear;
-
- &.blur {
- filter: blur(10px);
- }
-}
-
-.showMode {
- :global {
- ul {
- opacity: 1 !important;
- transform: translate(0, 15px);
- }
- }
-}
-
-
-.post_card_title {
- display: flex;
-
- h4 {
- cursor: pointer;
- }
-
-}
-
-.postAvatar {
- position: absolute;
- left: -8px;
- top: -8px;
- display: flex;
-}
-
-.titleUser {
- display: flex;
- font-family: @__Global_general_font_family;
- margin: 0 0 0 50px;
-}
-
-.textAgo {
- display: flex;
- font-size: 10px;
- margin: 0 0 0 53px;
-}
-
-.PostTags {
- float: right;
- width: 100%;
- z-index: 10;
-
- :global {
- .anticon {
- color: @post_card_wrapper_tags_color_default;
- float: right;
- margin: -0 6px 0 0;
- font-size: 17px;
- }
-
- }
-}
-
-.post_card_content {
- word-break: break-all;
- display: flex;
- border-radius: 3px;
- margin: 23px 24px 23px 24px;
-
- h3 {
- font-family: @__Global_general_font_family;
- color: @post_card_wrapper_post_content_color;
- font-weight: @post_card_wrapper_post_content_weight;
- font-size: @post_card_wrapper_post_content_fontSize;
- letter-spacing: @post_card_wrapper_post_content_letterSpacing;
- }
-}
-
-.post_card_file {
- display: flex;
- margin: 23px 0 5px 0;
- max-height: 600px;
- overflow: hidden;
-
- h3 {
- color: rgb(85, 85, 85);
- font-weight: 470;
- }
-}
-
-.likebtn {
- :global {
- svg {
- color: rgba(0, 0, 0, 0.45);
- }
-
- svg:hover {
- color: rgb(233, 35, 68);
- transition: all 0.2s linear;
- }
- }
-}
-
-.ellipsisIcon {
- color: rgba(0, 0, 0, 0.45);
- width: 100%;
- position: absolute;
- text-align: center;
- margin: auto;
- font-size: 30px;
- transition: opacity 150ms linear;
-}
-
-.ellipsisIcon:hover {
- opacity: 0;
- transition: opacity 150ms linear;
-}
\ No newline at end of file
diff --git a/.prev/src/components/PostCreator/index.js b/.prev/src/components/PostCreator/index.js
deleted file mode 100644
index adbbc68f..00000000
--- a/.prev/src/components/PostCreator/index.js
+++ /dev/null
@@ -1,407 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import styles from './index.less'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import $ from 'jquery'
-import * as MICONS from '@material-ui/icons'
-
-import Post_options from './local_components/post_options'
-import { optionBox } from './local_components/post_options'
-
-function getBase64(img, callback) {
- const reader = new FileReader()
- reader.addEventListener('load', () => callback(reader.result))
- reader.readAsDataURL(img)
-}
-
-export function HandleVisibility() {
- window.PostCreatorComponent.ToogleVisibility()
-}
-
-class PostCreator extends React.PureComponent {
- constructor(props) {
- super(props),
- window.PostCreatorComponent = this,
- this.state = {
- visible: true,
- FadeIN: true,
- keys_remaining: ycore.AppSettings.MaxLengthPosts,
- rawtext: '',
- posting: false,
- posting_ok: false,
- shareWith: 'any',
- uploader: false,
- Schedule: false,
- }
- }
-
- renderPostPlayer(payload) {
- const { file, fileURL } = this.state
- const videofilter = file.type.includes('video')
- const imagefilter = file.type.includes('image')
- const audiofilter = file.type.includes('audio')
- if (imagefilter) {
- return (
-
-
-
this.handleDeleteFile()}
- icon={ }
- />
-
-
-
-
-
- )
- }
- if (videofilter) {
- return (
-
-
-
this.handleDeleteFile()}
- icon={ }
- />
-
-
-
-
-
-
-
- )
- }
- if (audiofilter) {
- return (
-
- )
- }
- return null
- }
- ToogleVisibility() {
- this.setState({ visible: !this.state.visible })
- }
- ToogleUpload() {
- this.setState({ uploader: !this.state.uploader })
- }
- handleDeleteFile = () => {
- this.setState({ fileURL: null })
- }
- handleFileUpload = info => {
- if (info.file.status === 'uploading') {
- this.setState({ loading: true })
- return
- }
- if (info.file.status === 'done') {
- this.setState({ file: info.file.originFileObj, uploader: false })
- getBase64(info.file.originFileObj, fileURL => {
- this.setState({ fileURL, loading: false })
- })
- }
- }
-
- beforeUpload = file => {
- const filter =
- file.type === 'image/jpeg' ||
- file.type === 'audio/mp3' ||
- file.type === 'audio/wav' ||
- file.type === 'audio/ogg' ||
- file.type === 'image/png' ||
- file.type === 'image/jpg' ||
- file.type === 'image/gif' ||
- file.type === 'video/mp4'
- if (!filter) {
- antd.message.error(`${file.type} This file is not valid!`)
- }
- const maxsize =
- file.size / 1024 / 1024 < ycore.AppSettings.MaximunAPIPayload
- if (!maxsize) {
- antd.message.error(
- `Image must smaller than ${ycore.AppSettings.MaximunAPIPayload} KB!`
- )
- }
- return filter && maxsize
- }
-
- handleChanges = ({ target: { value } }) => {
- this.setState({
- rawtext: value,
- keys_remaining: ycore.AppSettings.MaxLengthPosts - value.length,
- })
- }
-
- handleKeysProgressBar() {
- const { keys_remaining } = this.state
- if (keys_remaining <= (ycore.AppSettings.MaxLengthPosts / 100) * 30) {
- return 'exception'
- } else return 'active'
- }
-
- FlushPostState() {
- this.setState({
- posting_ok: true,
- posting: false,
- rawtext: '',
- fileURL: '',
- file: '',
- })
- setTimeout(() => {
- this.setState({ posting_ok: false })
- }, 1000)
- ycore.FeedHandler.refresh()
- return true
- }
-
- handlePublishPost = e => {
- const { rawtext, shareWith, file, fileURL} = this.state
- if (!rawtext && !fileURL) {
- return false
- }
- this.setState({
- posting: true,
- keys_remaining: ycore.AppSettings.MaxLengthPosts,
- })
- const post_options = optionBox.get()
-
- const payload = {
- privacy: ycore.GetPostPrivacy.bool(shareWith),
- text: rawtext,
- file: file,
- }
- ycore.comty_post.new((err, res) => {
- if (err) {
- ycore.notify.error(err)
- return false
- }
- const status_temp_error = JSON.parse(res)['data'].error
- status_temp_error? ycore.notify.error('It seems that a processing error has occurred, your publication has not been published.') : null
- const id_temp_parse = JSON.parse(res)['data'].id
-
- const pro_boost_val = ycore.ReturnValueFromMap({ data: post_options, key: 'pro_boost' })
- const allow_comments_val = ycore.ReturnValueFromMap({ data: post_options, key: 'allow_comments' })
- console.log(id_temp_parse)
- ycore.sync.emmitPost(id_temp_parse)
- ycore.yconsole.log(`pro_boost => ${pro_boost_val} | allow_comments => ${allow_comments_val}`)
-
- if (pro_boost_val) {
- ycore.yconsole.log(`Boosting post with ID => ${id_temp_parse}`)
- ycore.comty_post.__boost(
- (err, res) => {
- return true
- },
- { post_id: id_temp_parse }
- )
- }
- if (
- !allow_comments_val
- ) {
- ycore.yconsole.log(`Disabling comments with ID => ${id_temp_parse}`)
- ycore.comty_post.__disableComments(
- (err, res) => {
- return true
- },
- { post_id: id_temp_parse }
- )
- }
- this.FlushPostState()
- // ycore.FeedHandler.addToRend(JSON.parse(res)['data'])
- }, payload)
- }
- dropRef = React.createRef()
-
- handleDragIn = e => {
- e.preventDefault()
- e.stopPropagation()
- if (this.state.uploader == true) {
- return
- }
- this.setState({ uploader: true })
- }
- handleDragOut = e => {
- e.preventDefault()
- e.stopPropagation()
- if (this.state.uploader == false) {
- return
- }
- this.setState({ uploader: false })
- }
-
- componentDidMount() {
- const _this = this
- $('body').bind('paste', function(je) {
- var e = je.originalEvent
- for (var i = 0; i < e.clipboardData.items.length; i++) {
- var item = e.clipboardData.items[i]
- ycore.yconsole.log('Item: ' + item.type)
- if (item.type.indexOf('image') != -1) {
- //item.
- let a;
- a = item.getAsFile()
- _this.setState({ file: a })
- ycore.ReadFileAsB64(a, res => {
- _this.setState({ fileURL: res })
- })
- } else {
- // ignore not images
- ycore.yconsole.log('Discarding not image paste data')
- }
- }
- })
- let div = this.dropRef.current
- div.addEventListener('dragenter', this.handleDragIn)
- div.addEventListener('dragleave', this.handleDragOut)
- }
- componentWillUnmount() {
- let div = this.dropRef.current
- div.removeEventListener('dragenter', this.handleDragIn)
- div.removeEventListener('dragleave', this.handleDragOut)
- }
-
- canPost() {
- const { fileURL, keys_remaining } = this.state
-
- const isTypedSomething = keys_remaining < ycore.AppSettings.MaxLengthPosts
- const isUploadedFile = fileURL ? true : false
-
- return isUploadedFile || isTypedSomething
- }
-
- render() {
- const { userData } = this.props
- const { keys_remaining, visible, fileURL } = this.state
- const percent = (
- (keys_remaining / ycore.AppSettings.MaxLengthPosts) *
- 100
- ).toFixed(2)
- const changeShare = ({ key }) => {
- this.setState({ shareWith: key })
- }
-
- const shareOptionsMenu = (
-
-
- {ycore.GetPostPrivacy.decorator('any')}
-
-
- {ycore.GetPostPrivacy.decorator('only_follow')}
-
-
- {ycore.GetPostPrivacy.decorator('only_followers')}
-
-
- {ycore.GetPostPrivacy.decorator('private')}
-
-
- )
-
- if (visible) {
- return (
-
-
-
- {this.state.uploader ? (
-
-
-
- Drop your file here o click for upload
-
-
- ) : (
- <>
-
-
-
-
-
-
- ) : this.state.posting ? (
-
- ) : (
-
- )
- }
- />
-
- >
- )}
-
-
- {fileURL ? this.renderPostPlayer(this.state.fileURL) : null}
-
-
-
-
- )
- }
- return null
- }
-}
-export default PostCreator
diff --git a/.prev/src/components/PostCreator/index.less b/.prev/src/components/PostCreator/index.less
deleted file mode 100644
index d67fbd61..00000000
--- a/.prev/src/components/PostCreator/index.less
+++ /dev/null
@@ -1,313 +0,0 @@
-@import '~themes/index.less';
-
-.cardWrapper {
- // box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
- border-radius: 7px;
- max-width: 510px;
- min-width: 265px;
- width: auto;
- margin: 7px auto 50px auto;
-
- :global {
- textarea {
- font-weight: 500;
- resize: none;
- }
-
- textarea:focus {
- outline: none !important;
- border: 0 !important;
- }
-
- textarea:hover {
- outline: none !important;
- border: 0 !important;
- }
-
- .ant-card-meta-detail>div:not(:last-child) {
- margin: 0
- }
-
- .ant-card {
- border-radius: 7px;
- border: 0;
- border-top: 1px solid #4646460c;
- }
-
- .ant-card-body {
- padding: 5px 15px 5px 15px;
- }
-
- .ant-card-actions {
- border-top: 0;
- background: #EBEBEB;
- opacity: 0;
- height: 30px;
- position: relative;
- transition: opacity 150ms linear, position 150ms linear, transform 150ms linear;
- border-radius: 0 0 10px 10px;
- }
-
- .ant-card-actions:hover {
- opacity: 1;
- transform: translate(0, 15px);
- transition: opacity 150ms linear, position 150ms linear, transform 150ms linear;
- }
-
- .ant-card-actions>li {
- margin: -20px 0 0 0;
- border-right: 0;
-
- i {
-
- vertical-align: middle;
- height: 40px;
- width: 40px;
- background-color: #fff;
- border-radius: 24px;
- }
-
- svg {
- height: 20px;
- width: 20px;
- height: 100%;
- vertical-align: middle;
- }
- }
- }
-}
-
-.titleAvatar {
- width: 45px;
- height: 45px;
- display: flex;
-
- :global {
- img {
- width: 45px;
- height: 45px;
- border-radius: 12px;
- }
- }
-}
-
-.inputWrapper {
- display: flex;
- z-index: 10;
- position: relative;
- width: 100%;
- padding: 18px 7px 0 7px;
- transition: height 150ms linear;
-
- :global {
- .ant-btn-primary {
- z-index: 10;
- position: relative;
- border-radius: 0 10px 10px 0;
- height: 100%;
- vertical-align: bottom;
- border: none;
- box-shadow: none;
- }
-
- .ant-input {
- z-index: 10;
- position: relative;
- border-color: transparent !important;
- box-shadow: none;
- border-radius: 3px 0 0 0;
- height: 100%;
- padding: 5px 10px 5px 10px;
- transition: height 150ms linear;
- width: 100%;
-
- }
-
- .ant-input:hover {
- border-color: #1890ff;
- }
-
- .ant-input-affix-wrapper {
- height: 100%;
- }
- }
-}
-
-.progressHandler {
- z-index: 10;
- position: relative;
- margin: 0 7px 0 7px;
-
- :global {
- .ant-progress-bg {
- border-radius: 0 0 10px 10px;
- }
-
- .ant-progress-inner {
- border-radius: 0 0 14px 14px;
- width: calc(100% - 32px);
- vertical-align: top;
- }
- }
-}
-
-.postExtra {
- width: 100%;
- height: 100%;
- position: relative;
- margin: 0 0 40px 0;
-
- .shareWith {
- color: rgb(53, 53, 53);
- float: right;
- font-size: 11px;
- line-height: 30px;
- }
-
- :global {
- .MuiSvgIcon-root {
- width: 1em;
- height: 1em;
- display: inline-block;
- font-size: 18px;
- transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
- flex-shrink: 0;
- margin: 8px;
- line-height: 1px;
- user-select: none;
- }
-
- .ant-btn .anticon {
- transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
- margin: 8px;
- }
-
- .ant-btn {
- width: 35px;
- height: 35px;
- float: left;
- padding: 0;
- border-radius: 11px;
- margin: 0 10px;
- background-color: #eeeeee;
- border-color: transparent;
- }
-
- .ant-btn:hover {
- border-color: transparent;
- }
-
- }
-}
-
-.uploader {
- display: flex;
- position: relative;
- border-radius: 10px;
- z-index: 30;
- width: 100%;
- height: 100%;
-
- span {
- width: 100%;
- }
-
- :global {
- .ant-upload.ant-upload-drag {
- background: #fafafa;
- border: 1px dashed #d9d9d9;
- border-radius: 12px;
- transition: border-color 0.3s;
- }
-
- .anticon svg {
- display: inline-block;
- font-size: 30px;
- }
- }
-}
-
-.imagePreviewWrapper {
- position: relative;
- width: 100%;
- height: 100%;
- // top: -100px;
- margin: 0 0 15px 0;
- background-color: #eeeeee;
-
- .imagePreview {
- z-index: 5;
- position: relative;
- width: 50%;
- margin: auto;
- border-radius: 8px;
- transition: all 150ms linear;
-
- img {
- width: 100%;
- border: 0.5px rgba(56, 56, 56, 0.459) solid;
- }
-
- video {
- width: 100%;
- border: 0.5px rgba(56, 56, 56, 0.459) solid;
- }
-
- transition: all 150ms linear;
-
- }
-
- .imageOverlay {
- z-index: 10;
- position: relative;
- opacity: 0;
- transition: all 150ms linear;
- margin: auto;
- }
-}
-
-.imagePreviewWrapper:hover .imagePreview {
- opacity: 0.5;
- transition: all 150ms linear;
-}
-
-.imagePreviewWrapper:hover .imageOverlay {
- opacity: 1;
- transition: all 150ms linear;
-
-}
-
-.proccessUnset {
- opacity: 0;
- transition: opacity 250ms linear;
- animation: proccessUnset 250ms linear;
-}
-
-.proccessSet {
- transition: opacity 250ms linear;
- animation: proccessSet 250ms linear;
-}
-
-@keyframes proccessSet {
- 0% {
- opacity: 0;
- }
-
- 100% {
- opacity: 1;
- }
-}
-
-@keyframes proccessUnset {
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-}
-
-.fontct {
- font-family: "Poppins", sans-serif;
-}
\ No newline at end of file
diff --git a/.prev/src/components/PostCreator/local_components/post_options.js b/.prev/src/components/PostCreator/local_components/post_options.js
deleted file mode 100644
index 6064139f..00000000
--- a/.prev/src/components/PostCreator/local_components/post_options.js
+++ /dev/null
@@ -1,151 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import { Post_Options } from 'globals/post_options.js'
-import styles from './post_options.less'
-
-export const optionBox = {
- toogle: () => {
- window.postoptions_box_class.handleToggleToolbox()
- return true
- },
- get: () => {
- return window.postoptions_box_class.state.options_repo
- },
-}
-
-export default class Post_options extends React.Component {
- constructor(props) {
- super(props),
- window.postoptions_box_class = this,
- this.state = {
- options_repo: Post_Options,
- options_box: false,
- }
- }
-
- onChangeOption(checked, id) {
- ycore.yconsole.log(`${id} to ${checked}`)
- }
-
- handleToggleToolbox = () => {
- this.setState({ options_box: !this.state.options_box })
- }
-
- onChangeSwitch(item) {
- try {
- const to = !item.value
- const updatedValue = [...this.state.options_repo].map(ita =>
- ita === item ? Object.assign(ita, { value: to }) : ita
- )
- this.setState({ options_repo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.key} to value ${to}`)
- } catch (err) {
- console.log(err)
- }
- }
-
- require(i) {
- if (i) {
- try {
- switch (i) {
- case 'pro':
- return ycore.IsThisUser.pro() ? false : true
- case 'dev':
- return ycore.IsThisUser.dev() ? false : true
- default:
- break
- }
- } catch (err) {
- ycore.notify.error(err)
- return false
- }
- }
- return false
- }
-
- rendersets = item => {
- let e = item.type
- switch (e) {
- case 'switch':
- return (
- this.onChangeSwitch(item)}
- />
- )
- default:
- break
- }
- }
-
- renderSettings = () => {
- return (
- (
-
- {item.icon}
-
- {this.require(item.require)
- ? `You need ${item.require}`
- : this.rendersets(item)}
-
- )}
- />
- )
- }
- render() {
- return (
-
-
-
- Post Options
-
-
-
-
-
Share Options
- {this.renderSettings()}
-
-
-
Add some Extra
-
}
- disabled={true}
- type="primary"
- >
- {' '}
- Insert an Poll{' '}
-
-
}
- disabled={true}
- type="primary"
- >
- {' '}
- Insert an Background{' '}
-
-
-
-
-
- )
- }
-}
diff --git a/.prev/src/components/PostCreator/local_components/post_options.less b/.prev/src/components/PostCreator/local_components/post_options.less
deleted file mode 100644
index e1fad5e0..00000000
--- a/.prev/src/components/PostCreator/local_components/post_options.less
+++ /dev/null
@@ -1,57 +0,0 @@
-@import '~themes/index.less';
-
-.optionsWrapper {
- font-family: "Poppins", sans-serif;
-
- :global {
- .ant-drawer-body {
- -ms-flex-positive: 1;
- flex-grow: 1;
- padding: 12px;
- overflow: auto;
- font-size: 14px;
- line-height: 1.5715;
- word-wrap: break-word;
- }
-
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin-top: 0;
- margin-bottom: 0;
- color: rgba(0, 0, 0, 0.85);
- font-weight: 500;
- }
-
- .ant-list-item {
- display: -ms-flexbox;
- display: flex;
- -ms-flex-align: center;
- align-items: center;
- -ms-flex-pack: justify;
- justify-content: space-between;
- padding: 8px 0;
- }
- }
-}
-
-.PostOptionsWrapper {
- margin: 0 10px 0 10px;
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-column-gap: 20px;
- grid-row-gap: 20px;
- justify-items: stretch;
- align-items: stretch;
-
- .optionItem {
- display: inline;
- }
-}
-
-.optionItemIcon {
- margin: 0 5px 0 0;
-}
\ No newline at end of file
diff --git a/.prev/src/components/ScrollBar/index.js b/.prev/src/components/ScrollBar/index.js
deleted file mode 100644
index ce752b5d..00000000
--- a/.prev/src/components/ScrollBar/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import ScrollBar from 'react-perfect-scrollbar'
-import 'react-perfect-scrollbar/dist/css/styles.css'
-import './index.less'
-
-export default ScrollBar
diff --git a/.prev/src/components/ScrollBar/index.less b/.prev/src/components/ScrollBar/index.less
deleted file mode 100644
index 124d94be..00000000
--- a/.prev/src/components/ScrollBar/index.less
+++ /dev/null
@@ -1,35 +0,0 @@
-@import '~themes/index.less';
-
-:global {
-
- .ps--active-x>.ps__rail-x,
- .ps--active-y>.ps__rail-y {
- background-color: red;
-
- }
-
- .ps__rail-x:hover>.ps__thumb-x,
- .ps__rail-x:focus>.ps__thumb-x {
- height: 8px;
- }
-
- .ps__rail-y:hover>.ps__thumb-y,
- .ps__rail-y:focus>.ps__thumb-y {
- width: 8px;
- }
-
- .ps__rail-y,
- .ps__rail-x {
- z-index: 9;
- }
-
- .ps__thumb-y {
- width: 4px;
- right: 4px;
- }
-
- .ps__thumb-x {
- height: 4px;
- bottom: 4px;
- }
-}
diff --git a/.prev/src/components/SearchCard/index.js b/.prev/src/components/SearchCard/index.js
deleted file mode 100644
index e93d50f9..00000000
--- a/.prev/src/components/SearchCard/index.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import styles from './index.less'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import { CustomIcons } from 'components'
-
-const { Meta } = antd.Card
-
-class SearchCard extends React.PureComponent {
- render() {
- const { source } = this.props
- const { username, avatar, about, id } = source
- const DevInfo = `ID #${id} | Dev ${
- ycore.booleanFix(source.dev) ? 'yes' : 'no'
- } | `
- const AdminInfo = `RID #${source.country_id} | IP ${source.ip_address} | `
-
- const DataStrip = {
- title: e => {
- if (this.props.type == 'Users') {
- return `@${username}`
- }
- if (this.props.type == 'Groups') {
- return `${source.name}`
- }
- return null
- },
- description: e => {
- if (this.props.type == 'Users') {
- return `${DevInfo}${AdminInfo}`
- }
- if (this.props.type == 'Groups') {
- return `GID #${source.group_id} | Created ${source.registered} | CAT ID #${source.category_id} / ${source.category} |`
- }
- return null
- },
- about: e => {
- return about
- },
- }
- return (
-
- }
- title={
-
-
ycore.router.go(`@${username}`)}
- className={styles.titleUser}
- >
- {DataStrip.title()}
-
-
- {ycore.booleanFix(source.verified) ? (
-
- ) : null}{' '}
-
-
- }
- description={
- ycore.IsThisUser.dev() ? (
-
- {DataStrip.description()}
-
- ) : null
- }
- bordered="false"
- />
-
- {' '}
-
{' '}
-
-
-
- )
- }
-}
-export default SearchCard
diff --git a/.prev/src/components/SearchCard/index.less b/.prev/src/components/SearchCard/index.less
deleted file mode 100644
index 2c73e901..00000000
--- a/.prev/src/components/SearchCard/index.less
+++ /dev/null
@@ -1,105 +0,0 @@
-@import '~themes/index.less';
-
-.cardWrapper {
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
- display: flex;
- border-radius: 7px;
- max-width: 510px;
- min-width: 265px;
- width: auto;
- margin: 23px auto 50px auto;
-
- :global {
- .ant-card-meta-detail>div:not(:last-child) {
- margin: 0
- }
-
- .ant-card {
- border-radius: 7px;
- border: 0;
- border-top: 1px solid #4646460c;
- }
-
- .ant-card-body {
- padding: 13px 0 5px 0;
- }
-
- .ant-card-actions {
- border-top: 0;
- background: #EBEBEB;
- opacity: 0;
- height: 30px;
- position: relative;
- transition: opacity 150ms linear, position 150ms linear, transform 150ms linear;
- border-radius: 0 0 10px 10px;
- }
-
- .ant-card-actions:hover {
- opacity: 1;
- transform: translate(0, 15px);
- transition: opacity 150ms linear, position 150ms linear, transform 150ms linear;
- }
-
- .ant-card-actions>li {
- margin: -20px 0 0 0;
- border-right: 0;
-
- i {
-
- vertical-align: middle;
- height: 40px;
- width: 40px;
- background-color: #fff;
- border-radius: 24px;
- }
-
- svg {
- height: 20px;
- width: 20px;
- height: 100%;
- vertical-align: middle;
- }
- }
- }
-}
-
-.postAvatar {
- position: absolute;
- left: -8px;
- top: -8px;
- display: flex;
-}
-
-.titleUser {
- display: flex;
- font-family: 'Poppins', sans-serif;
- margin: 0 0 0 50px;
-}
-
-.textAgo {
- display: flex;
- font-size: 10px;
- margin: 0 0 0 53px;
-}
-
-.PostTags {
- float: right;
- color: rgb(249, 179, 64);
- width: 100%;
- z-index: 10;
-
- i {
- float: right;
- margin: -0 6px 0 0;
- ;
- font-size: 17px;
- }
-}
-
-.titleWrapper {
- display: flex;
-
- h4 {
- cursor: pointer;
- }
-}
diff --git a/.prev/src/components/UserBadges/index.js b/.prev/src/components/UserBadges/index.js
deleted file mode 100644
index 623f618c..00000000
--- a/.prev/src/components/UserBadges/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from 'react'
-import styles from './index.less'
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-import { BadgesType } from 'globals/badges_list'
-
-export default class UserBadges extends React.Component {
- render() {
- const { values } = this.props
- console.log(BadgesType)
- return (
-
- {ycore.booleanFix(values.nsfw_flag) ? (
-
NSFW
- ) : null}
- {ycore.booleanFix(values.is_pro) ? (
-
- CPRO™
-
- ) : null}
- {ycore.booleanFix(values.dev) ? (
-
- DEVELOPER
-
- ) : null}
-
- )
- }
-}
diff --git a/.prev/src/components/UserBadges/index.less b/.prev/src/components/UserBadges/index.less
deleted file mode 100644
index e69de29b..00000000
diff --git a/.prev/src/components/UserProfile/components/Follow_btn.js b/.prev/src/components/UserProfile/components/Follow_btn.js
deleted file mode 100644
index 84568a66..00000000
--- a/.prev/src/components/UserProfile/components/Follow_btn.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from 'react'
-import styles from './Follow_btn.scss'
-import classnames from 'classnames'
-
-export default class Follow_btn extends React.Component {
- render() {
- return (
-
- {this.props.followed ? 'Following' : 'Follow'}
-
- )
- }
-}
diff --git a/.prev/src/components/UserProfile/components/follow_btn.scss b/.prev/src/components/UserProfile/components/follow_btn.scss
deleted file mode 100644
index 99c9364a..00000000
--- a/.prev/src/components/UserProfile/components/follow_btn.scss
+++ /dev/null
@@ -1,65 +0,0 @@
-$width: 120px;
-$height: 40px;
-$border: 0;
-
-$violet: #6559ae;
-$orange: #ff7159;
-
-$border-radius: 8px;
-
-$deg: 120deg;
-$size: 400%;
-$dur: 15s;
-
-@mixin clip-frame($width, $height, $border) {
- -webkit-clip-path: polygon(0% 100%, $border 100%, $border $border, $width - $border $border, $width - $border $height - $border, $border $height - $border, $border 100%, 100% 100%, 100% 0%, 0% 0%);
-}
-
-.like_btn {
- width: 100px;
- height: 30px;
- line-height: 28px;
- padding: 5px 15px 5px 15px;
- @extend .text-formatting;
-
- &:hover {
- color: #7e7e7e;
- }
-
- &.nofollowed {
- &:hover {
- border: none;
- content: '';
- color: white;
- border-radius: $border-radius;
- background: linear-gradient($deg, $violet, $orange, $violet);
- background-size: $size $size;
- animation: gradient $dur ease-in-out infinite, border 1s forwards ease-in-out reverse;
- }
- }
-}
-
-/* helpers */
-
-.text-formatting {
- text-decoration: none;
- text-align: center;
- vertical-align: middle;
- letter-spacing: 1px;
-}
-
-/* motion */
-
-@keyframes gradient {
- 0% {
- background-position: 14% 0%;
- }
-
- 50% {
- background-position: 87% 100%;
- }
-
- 100% {
- background-position: 14% 0%;
- }
-}
diff --git a/.prev/src/components/UserProfile/index.js b/.prev/src/components/UserProfile/index.js
deleted file mode 100644
index 34f2772c..00000000
--- a/.prev/src/components/UserProfile/index.js
+++ /dev/null
@@ -1,232 +0,0 @@
-import React from 'react'
-import styles from './styles.less'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import { PageHeaderWrapper } from '@ant-design/pro-layout'
-import { CustomIcons, MainFeed, PostCreator } from 'components'
-import { SetHeaderSearchType } from 'components/HeaderSearch'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import Follow_btn from './components/Follow_btn.js'
-import { BadgesType } from 'globals/badges_list'
-import classnames from 'classnames'
-
-const isMobile = localStorage.getItem('mobile_src')
-
-class UserProfile extends React.PureComponent {
- constructor(props) {
- super(props),
- (this.state = {
- invalid: false,
- UUID: '',
- RenderValue: {},
- loading: true,
- Followed: '',
- UserTags: [],
- })
- }
-
- require(i) {
- if (i) {
- try {
- switch (i) {
- case 'pro':
- return ycore.booleanFix(this.state.RenderValue.is_pro)
- case 'dev':
- return ycore.booleanFix(this.state.RenderValue.dev)
- case 'nsfw':
- return ycore.booleanFix(this.state.RenderValue.nsfw_flag)
- }
- } catch (err) {
- ycore.notify.error(err)
- return false
- }
- }
- return false
- }
-
- handleFollowUser = () => {
- const payload = { user_id: this.state.UUID }
- ycore.comty_user.follow((err, res) => {
- if (err) {
- return false
- }
- this.setState({ Followed: !this.state.Followed })
- return
- }, payload)
- }
-
- componentDidMount() {
- this.initUser(this.props.regx)
- SetHeaderSearchType.disable()
- }
-
- initUser = e => {
- const parsed = e.shift()
- const raw = parsed.toString()
- const string = raw.replace('/@', '')
-
- const payload = { key: string }
- ycore.comty_user.find((err, res) => {
- err ? ycore.notify.error(err) : null
- try {
- const rp = JSON.parse(res)
- ycore.yconsole.log(rp)
- if (!rp['0']) {
- ycore.yconsole.log('Bad response / User not found')
- const val = { id: null, username: 'User not found!' }
- this.setState({ invalid: true, RenderValue: val, loading: false })
- ycore.router.go(`main`)
- antd.message.warning(`Its seams like @${string} not exist`)
- return
- }
- const c1 = rp['0'].username.toLowerCase()
- const c2 = string.toLowerCase()
- if (c1 !== c2) {
- ycore.yconsole.log(`Using aproximate user! => ${c1} / ${c2}`)
- ycore.router.go(`@${c1}`)
- }
-
- this.setState({
- UUID: rp['0'].user_id,
- RenderValue: rp['0'],
- loading: false,
- Followed: ycore.booleanFix(rp['0'].is_following),
- })
-
- ycore.comty_user.__tags(
- (err, res) => {
- if (err) return false
- let fn = []
- const a = JSON.parse(res)['tags']
- const b = Object.entries(Object.assign({}, a[0]))
- const objectArray = b.slice(1, b.length)
-
- objectArray.forEach(([key, value]) => {
- if (value == 'true') {
- BadgesType.map(item => {
- item.id === key ? (item ? fn.push(item) : null) : null
- })
- }
- })
- BadgesType.map(item => {
- this.require(item.require) ? fn.push(item) : null
- })
- this.setState({ UserTags: fn })
- },
- { id: this.state.UUID }
- )
- } catch (err) {
- ycore.notify.error(err)
- }
- }, payload)
- }
-
- render() {
-
-const moreMenu = (
-
- 1st antd.Menu item
- 2nd antd.Menu item
-
-);
-
- const { loading, UUID, invalid, RenderValue } = this.state
- return (
-
- {loading ? (
-
- ) : (
-
- {invalid ? null : (
-
-
-
-
-
-
-
-
-
- {this.state.UserTags.length > 0 ? (
-
(
-
-
- {item.title} {item.icon}
-
-
- )}
- />
- ) : null}
-
- {ycore.IsThisUser.same(RenderValue.id) ? null : (
-
this.handleFollowUser()}
- >
-
-
- )}
-
-
- {RenderValue.username}
-
- {ycore.booleanFix(RenderValue.verified) ? (
-
- ) : null}
-
-
- { ycore.IsThisUser.same(UUID)?
-
-
-
- : null }
-
-
-
-
-
-
- }
- />
-
- )}
- {ycore.IsThisUser.same(UUID) ? (
-
- ) : null}
-
-
- )}
-
- )
- }
-}
-export default UserProfile
diff --git a/.prev/src/components/UserProfile/styles.less b/.prev/src/components/UserProfile/styles.less
deleted file mode 100644
index 727d2b1a..00000000
--- a/.prev/src/components/UserProfile/styles.less
+++ /dev/null
@@ -1,166 +0,0 @@
-@import '~themes/index.less';
-
-.textOverflow() {
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-
-// mixins for clearfix
-// ------------------------
-.clearfix() {
- zoom: 1;
-
- &::before,
- &::after {
- display: table;
- content: ' ';
- }
-
- &::after {
- clear: both;
- height: 0;
- font-size: 0;
- visibility: hidden;
- }
-}
-
-.userWrapper {
- padding: 0 68px 15px 68px;
- margin: auto;
- &.mobile{
- max-width: 510px;
- min-width: 265px;
- width: auto;
- padding: 0 15px 0 15px;
- }
- :global {
- .ant-page-header-content {
- padding-top: 0;
- overflow: initial !important;
- }
-
- .ant-page-header {
- padding: 20px 0 3px 0;
- }
-
- .ant-pro-page-header-wrap-page-header-warp {
- border-radius: 0 0 20px 20px;
- }
- }
-}
-
-.TagWrappers {
- width: 100%;
- float: right;
- position: relative;
- margin: 0 0 7px 0 !important;
-}
-
-.UserCover {
- border-radius: 15px 15px 0 0;
- position: relative;
- margin: -32px auto auto auto;
- max-height: 400px;
- overflow: hidden;
-
- img {
- width: calc(100% + 30px);
- overflow: hidden;
- margin: auto;
- }
-}
-
-.follow_wrapper {
- margin: 0 7px 0 7px;
- position: relative;
- float: right;
-}
-
-.avatar {
- transform: translate(-25px, -45px);
- max-height: 200px;
- max-width: 120px;
-
- &>span {
- position: relative;
- z-index: 10;
- width: 100%;
- height: 100%;
- }
-
- :global {
- .ant-avatar {
- box-shadow: 13px 13px 17px 4px rgba(69, 69, 69, 0.151);
- border-radius: 7px;
-
- img {
- width: 120px;
- }
- }
- }
-}
-
-.pageHeaderContent {
- vertical-align: top;
- display: flex;
-
- .content {
- font-family: "Poppins", sans-serif;
- color: @text-color-secondary;
- width: 100%;
-
- .contentTitle {
- padding: 0 10px 10px 0;
- color: @heading-color;
- font-weight: 500;
- font-size: 20px;
- line-height: 28px;
- }
- }
-}
-
-.user_more_menu{
- float: right;
- font-size: 18px;
-}
-
-
-@media screen and (max-width: @screen-md) {
- .extraContent {
- margin-left: -16px;
- }
-
- .projectList {
- .projectGrid {
- width: 50%;
- }
- }
-}
-
-@media screen and (max-width: @screen-sm) {
- .pageHeaderContent {
- display: block;
- margin: 10px;
-
- .content {
- margin-left: 0;
- }
- }
-
- .extraContent {
- .statItem {
- float: none;
- }
- }
-}
-
-@media screen and (max-width: @screen-xs) {
- .projectList {
- .projectGrid {
- width: 100%;
- }
- }
-}
-
diff --git a/.prev/src/components/YulioID/index.js b/.prev/src/components/YulioID/index.js
deleted file mode 100644
index 64a5eea3..00000000
--- a/.prev/src/components/YulioID/index.js
+++ /dev/null
@@ -1,240 +0,0 @@
-import React, { Component } from 'react'
-import { connect } from 'dva'
-import { Form, Icon as LegacyIcon } from '@ant-design/compatible'
-
-import { Button, Input, Drawer } from 'antd'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-
-import styles from './index.less'
-
-const FormItem = Form.Item
-
-@connect(({ loading }) => ({ loading }))
-@Form.create()
-class YulioID extends Component {
- constructor(props) {
- super(props)
- this.state = {
- // Drawers Visibility (Default on False)
- MainLoginVisible: true,
- ShowLoading: false,
- Answered: false,
- transition: false,
- }
- }
- // Handlers & others
- handleUsername(text) {
- this.setState({ RawUsername: text.target.value })
- }
- handlePassword(text) {
- this.setState({ RawPassword: text.target.value })
- }
- handleRetry = () => {
- this.setState({ ShowLoading: false, StateException: false, StateIcon: '' })
- }
- handleEnter = e => {
- this.handleLogin()
- }
-
- handleLogin = () => {
- var prefix = '[YID]: '
- const { RawUsername, RawPassword } = this.state
- var EncPassword = btoa(RawPassword)
- var EncUsername = btoa(RawUsername)
-
- if (!EncUsername || !EncPassword) {
- var message = 'Incomplete information!'
- ycore.yconsole.log(prefix, message)
- }
-
- if (EncUsername && EncPassword) {
- this.setState({ ShowLoading: true, StateMessage: 'Wait a sec...' })
- if (ycore.AppSettings.InfiniteLogin == true) {
- ycore.yconsole.log(prefix, 'InfiniteLogin is enabled! Disabled getAuth')
- } else {
- ycore.yconsole.log(prefix, 'Initialising login process...')
- const payload = { EncUsername, EncPassword }
- ycore.app_session.login((err, res) => {
- this.handleResponse(res)
- }, payload)
- }
- }
- }
-
- handleResponse = response => {
- if (response == '200') {
- ycore.LoginPage.transitionToogle()
- this.setState({
- StateIcon: 'login',
- StateMessage: 'Wait a sec...',
- StateException: false,
- })
-
- }
- if (response == '400') {
- this.setState({
- StateIcon: 'exclamation-circle',
- StateMessage: 'Invalid credentials',
- StateException: true,
- })
- }
- if (response == '404') {
- this.setState({
- StateIcon: 'exclamation-circle',
- StateMessage: 'Invalid Data',
- StateException: true,
- })
- }
- if (response == '500') {
- this.setState({
- StateIcon: 'cluster',
- StateMessage: 'Server Error',
- StateException: true,
- })
- }
- }
-
- render() {
- const { visible } = this.props
- const { getFieldDecorator } = this.props.form
- const { ShowLoading, StateIcon, StateMessage, StateException } = this.state
-
- return (
-
-
-
-
- YulioID™
-
-
-
-
-
-
-
- )
- }
-}
-
-export default YulioID
diff --git a/.prev/src/components/YulioID/index.less b/.prev/src/components/YulioID/index.less
deleted file mode 100644
index 3aa46d12..00000000
--- a/.prev/src/components/YulioID/index.less
+++ /dev/null
@@ -1,485 +0,0 @@
- @import '~themes/index.less';
-
- .loginWrapper {
- :global {
- .ant-drawer-right.ant-drawer-open.no-mask {
- right: 1px;
- -ms-transform: translateX(1px);
- transform: translateX(1px);
- width: 100%;
- }
-
- .ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {
- width: 100%;
- border-radius: 20px 0 0 20px;
- }
-
- .ant-drawer-body {
- height: 100%;
- }
-
- .ant-drawer {
- box-shadow: none;
- border-radius: 20px 0 0 20px;
- max-width: 512px;
- width: 100%;
- }
-
- .ant-drawer-content {
- background: #ffffff9f;
- border-radius: 20px 0 0 20px;
- }
- }
- }
-
- .StateIcon {
- font-size: 24px;
- margin: 13px;
- }
-
- .StateIcon_exception {
- font-size: 24px;
- margin: 13px;
- color: red !important;
-
- :global {
- i {
- color: red !important;
-
- }
- }
- }
-
- .mainlp {
- flex-direction: column;
- justify-content: center;
- align-items: center;
- display: flex;
- width: 100%;
- word-break: keep-all;
-
- color: @foregroundColor;
- text-align: left;
- }
-
- .mainlp .sectionlp {
- border: 1px solid @accentColor;
- position: relative;
- padding: 40px 40px 50px;
- }
-
- .mainlp .sectionlp>h6 {
- color: @accentColor;
- background: @canvasColor;
- position: absolute;
- top: -10px;
- left: 20px;
- padding: 0 10px;
- }
-
- .mainlp .sectionlp .h6lp.subheader {
- color: @grayColor;
- margin-top: 20px;
- margin-bottom: 20px;
- width: 100%;
- }
-
- @media (max-width: 992px) {
- section:not(:last-child) {
- border-width: 0 0 1px;
- }
-
- section:last-child {
- border-width: 0;
- }
- }
-
-
-
-
- .buttons {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- }
-
- .buttons>* {
- flex: 1 1 calc(50% - 20px);
- margin-top: 20px;
- }
-
- .buttons>*:nth-child(odd) {
- margin-right: 20px;
- }
-
- a.buttonlp,
- input.buttonlp,
- .buttonlp {
- outline: none;
- width: 100%;
- text-align: center;
- display: inline-block;
- border: none;
- font: 500 16px/1 "Poppins", sans-serif;
- padding: 20px;
- cursor: pointer;
- border-radius: @borderRadius;
- background: @primaryColor;
- color: @backgroundColor;
- position: relative;
- top: 0;
- transition: 0.2s ease;
- }
-
- a.buttonlp:hover,
- a.buttonlp.hover,
- input.buttonlp:hover,
- input.buttonlp.hover,
- .buttonlp:hover,
- .buttonlp.hover {
- top: -3px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
- }
-
- a.buttonlp:active,
- a.buttonlp.active,
- input.buttonlp:active,
- .input.buttonlp.active,
- .buttonlp:active,
- .buttonlp.active {
- background: @primaryShade4;
- outline: none;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- top: 0;
- }
-
- a.buttonlp.disabled,
- input.buttonlp.disabled,
- .buttonlp.disabled {
- opacity: 0.4;
- user-select: none;
- pointer-events: none;
- }
-
- a.buttonlp.medium,
- input.buttonlp.medium,
- .buttonlp.medium {
- padding: 15px 18px;
- width: auto;
- }
-
- a.buttonlp.small,
- input.buttonlp.small,
- .buttonlp.small {
- padding: 10px 12px;
- width: auto;
- font-size: 14px;
- font-weight: 500;
- }
-
- a.buttonlp.secondary,
- input.buttonlp.secondary,
- .buttonlp.secondary {
- background: @secondaryColor;
- }
-
- a.buttonlp.secondary:active,
- a.buttonlp.secondary:focus,
- a.buttonlp.secondary.active,
- input.buttonlp.secondary:active,
- input.buttonlp.secondary:focus,
- input.buttonlp.secondary.active,
- .buttonlp.secondary:active,
- .buttonlp.secondary:focus,
- .buttonlp.secondary.active {
- background: @secondaryShade4;
- outline: none;
- }
-
- a.buttonlp.accent,
- input.buttonlp.accent,
- .buttonlp.accent {
- background: @accentColor;
- }
-
- a.buttonlp.accent:active,
- a.buttonlp.accent:focus,
- a.buttonlp.accent.active,
- input.buttonlp.accent:active,
- input.buttonlp.accent:focus,
- input.buttonlp.accent.active,
- .buttonlp.accent:active,
- .buttonlp.accent:focus,
- .buttonlp.accent.active {
- background: @accentShade4;
- }
-
- a.buttonlp.accent2,
- input.buttonlp.accent2,
- .buttonlp.accent2 {
- background: @accent2Color;
- }
-
- a.buttonlp.accent2:active,
- a.buttonlp.accent2:focus,
- a.buttonlp.accent2.active,
- input.buttonlp.accent2:active,
- input.buttonlp.accent2:focus,
- input.buttonlp.accent2.active,
- .buttonlp.accent2:active,
- .buttonlp.accent2:focus,
- .buttonlp.accent2.active {
- background: @accent2Shade4;
- }
-
- a.buttonlp.accent3,
- input.buttonlp.accent3,
- .buttonlp.accent3 {
- background: @accent3Color;
- }
-
- a.buttonlp.accent3:active,
- a.buttonlp.accent3:focus,
- a.buttonlp.accent3.active,
- input.buttonlp.accent3:active,
- input.buttonlp.accent3:focus,
- input.buttonlp.accent3.active,
- .buttonlp.accent3:active,
- .buttonlp.accent3:focus,
- .buttonlp.accent3.active {
- background: @accent3Shade4;
- }
-
- /*inputs*/
- .input__wrapper {
- margin-bottom: 10px;
-
- :global {
- .ant-col {
- width: 100%;
- }
- }
- }
-
- .inputRG__wrapper {
- margin-bottom: 0px;
- }
-
- .labelform {
- font-weight: 500;
- display: block;
- margin-bottom: 5px;
- }
-
- .inputform,
- select,
- textarea {
- height: 50px;
- font-size: 16px;
- border: 2px solid @neutralShade3;
- width: 100%;
- padding: 12px;
- font-family: "Poppins";
- border-radius: @borderRadius;
- color: @foregroundColor;
- background: @backgroundColor;
- }
-
- .inputform:focus,
- .inputform.active,
- select:focus,
- select.active,
- textarea:focus,
- textarea.active {
- outline: none;
- border-color: @primaryColor;
- }
-
- .inputform:disabled,
- select:disabled,
- textarea:disabled {
- cursor: not-allowed;
- background: @neutralShade1;
- opacity: 0.6;
- }
-
- Input .inputPasswordform {
- height: 50px;
- font-size: 16px;
- border: 2px solid @neutralShade3;
- width: 100%;
- padding: 12px;
- font-family: "Poppins";
- border-radius: @borderRadius;
- color: @foregroundColor;
- background: @backgroundColor;
- }
-
- Input .inputPasswordform:focus {
- outline: none;
- border-color: @primaryColor;
- }
-
- .inputform.input {
- height: 56px;
- font-size: 18px;
- padding: 15px;
- }
-
-
- /*spinner*/
- .spinner+.labellp {
- font-size: 14px;
- font-weight: 500;
- margin-top: 8px;
- display: inline-block;
- text-transform: uppercase;
- color: @primaryShade4;
- }
-
- .spinner1 .spinner {
- max-width: 50px;
- margin: auto;
- height: 20px;
- position: relative;
- }
-
- .spinner1 .spinner:after {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: @primaryColor;
- animation: spinnerLeftRight 1s infinite;
- }
-
- .spinner1 .spinner:before {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: @primaryShade2;
- opacity: 1;
- animation: spinnerLeftRight 1s infinite 0.06s;
- }
-
- @keyframes spinnerLeftRight {
- 0% {
- left: 85%;
- }
-
- 50% {
- left: -10%;
- }
-
- 100% {
- left: 85%;
- }
- }
-
-
-
- .formlogin {
- width: 95%;
- height: auto;
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- background: #ffffff44;
- margin: 20px 10px 20px 10px;
- position: relative;
- overflow: hidden;
- vertical-align: middle;
- }
-
- .formlogin .checkbox {
- margin-bottom: 30px;
- }
-
- .formlogin .spinner__wrapper {
- place-items: center;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- background: rgba(255, 255, 255, 0.85);
-
- }
-
-
- .preheader {
- position: relative;
- top: 0;
-
- h1 {
- font: 700 48px "Nunito", sans-serif;
- text-align: center;
- margin-bottom: 10px;
- }
-
- h6 {
- padding: 3em 0 0 0;
- line-height: 1px;
- display: flex;
- font: 500 16px/1 "Poppins", sans-serif;
- text-transform: uppercase;
-
- img {
- vertical-align: middle;
- height: 17px;
- }
- }
- }
-
- .moreActions {
- display: flex;
- margin: auto;
- align-content: center;
- position: relative;
- width: 100%;
-
- :global {
- .ant-btn {
- margin: auto;
- }
- }
- }
-
- @media (max-width: 472px) {
- .moreActions {
- display: grid;
- align-content: center;
- position: relative;
- width: 100%;
-
- :global {
- .ant-btn {
- margin: 5px;
- }
- }
- }
- }
-
- .resultbox {
- h6 {
- font-family: "Poppins", sans-serif;
- text-align: center;
- font-size: 16px;
- margin: auto;
- vertical-align: middle;
- }
-
- .retryBTN {
- text-align: center;
- width: 100%;
- position: absolute;
- bottom: 0;
- margin: auto;
- vertical-align: bottom;
- }
-
- margin: auto;
- }
\ No newline at end of file
diff --git a/.prev/src/components/index.js b/.prev/src/components/index.js
deleted file mode 100644
index 7583c7a5..00000000
--- a/.prev/src/components/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// @alias from 'components'
-
-// Helpers & Misc
-import MobileWarning from './MobileWarning'
-import CustomIcons from './CustomIcons'
-import Loader from './Loader/Loader.js'
-import ScrollBar from './ScrollBar'
-import App_about from './App_about'
-
-// App Layout Components
-import * as MyLayout from './Layout/index.js'
-import HeaderSearch from './HeaderSearch'
-import PageTransition from './PageTransition'
-import YulioID from './YulioID'
-
-// User Components
-import UserBadges from './UserBadges'
-import UserProfile from './UserProfile'
-import SearchCard from './SearchCard'
-
-// Post Components
-import MediaPlayer from './MediaPlayer'
-import PostCard from './PostCard'
-import Like_button from './Like_button'
-import MainFeed from './MainFeed'
-import PostCreator from './PostCreator'
-
-// Mix & Export all
-export {
- App_about,
- MediaPlayer,
- UserBadges,
- MobileWarning,
- PageTransition,
- SearchCard,
- HeaderSearch,
- YulioID,
- UserProfile,
- MyLayout,
- Loader,
- ScrollBar,
- PostCard,
- PostCreator,
- CustomIcons,
- Like_button,
- MainFeed,
-}
diff --git a/.prev/src/layouts/BaseLayout.js b/.prev/src/layouts/BaseLayout.js
deleted file mode 100644
index 0e790821..00000000
--- a/.prev/src/layouts/BaseLayout.js
+++ /dev/null
@@ -1,57 +0,0 @@
-import React, { PureComponent, Fragment } from 'react'
-import PropTypes from 'prop-types'
-import { connect } from 'dva'
-import { Helmet } from 'react-helmet'
-import { Loader } from 'components'
-import { queryLayout } from 'utils'
-import NProgress from 'nprogress'
-import config from 'config'
-import withRouter from 'umi/withRouter'
-import {AppSettings} from 'ycore'
-
-import PublicLayout from './PublicLayout'
-import PrimaryLayout from './PrimaryLayout'
-import './BaseLayout.less'
-
-const LayoutMap = {
- primary: PrimaryLayout,
- public: PublicLayout,
-}
-
-@withRouter
-@connect(({ loading }) => ({ loading }))
-class BaseLayout extends PureComponent {
- previousPath = ''
-
- render() {
- const { loading, children, location } = this.props
- const Container = LayoutMap[queryLayout(config.layouts, location.pathname)]
-
- const currentPath = location.pathname + location.search
- if (currentPath !== this.previousPath) {
- NProgress.start()
- }
-
- if (!loading.global) {
- NProgress.done()
- this.previousPath = currentPath
- }
-
- return (
-
-
- {config.siteName}
-
- {Loader( AppSettings.InfiniteLoading? {spinning: true} : loading )}
-
- {children}
-
- )
- }
-}
-
-BaseLayout.propTypes = {
- loading: PropTypes.object,
-}
-
-export default BaseLayout
diff --git a/.prev/src/layouts/BaseLayout.less b/.prev/src/layouts/BaseLayout.less
deleted file mode 100644
index b2d128b5..00000000
--- a/.prev/src/layouts/BaseLayout.less
+++ /dev/null
@@ -1,74 +0,0 @@
-@import '~themes/index.less';
-
-:global {
- #nprogress {
- pointer-events: none;
-
- .bar {
- background: transparent;
- position: fixed;
- z-index: 2048;
- top: 0;
- left: 0;
- right: 0;
- width: 100%;
- height: 2px;
- }
-
- .peg {
- display: block;
- position: absolute;
- right: 0;
- width: 100px;
- height: 100%;
- box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color;
- opacity: 1;
- transform: rotate(3deg) translate(0, -4px);
- }
-
- .spinner {
- display: block;
- position: fixed;
- z-index: 1031;
- top: 15px;
- right: 15px;
- }
-
- .spinner-icon {
- width: 18px;
- height: 18px;
- box-sizing: border-box;
- border: solid 2px transparent;
- border-top-color: @primary-color;
- border-left-color: @primary-color;
- border-radius: 50%;
-
- :local {
- animation: nprogress-spinner 400ms linear infinite;
- }
- }
- }
-
- .nprogress-custom-parent {
- overflow: hidden;
- position: relative;
-
- #nprogress {
-
- .bar,
- .spinner {
- position: absolute;
- }
- }
- }
-}
-
-@keyframes nprogress-spinner {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-}
diff --git a/.prev/src/layouts/PrimaryLayout.js b/.prev/src/layouts/PrimaryLayout.js
deleted file mode 100644
index 84d15a0a..00000000
--- a/.prev/src/layouts/PrimaryLayout.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/* global window */
-/* global document */
-import React from 'react'
-import PropTypes from 'prop-types'
-import withRouter from 'umi/withRouter'
-import { connect } from 'dva'
-import {
- MyLayout,
- PageTransition,
- HeaderSearch,
- MobileWarning,
-} from 'components'
-import { enquireScreen, unenquireScreen } from 'enquire-js'
-import store from 'store'
-import classnames from 'classnames'
-
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-
-import styles from './PrimaryLayout.less'
-
-const { Content } = antd.Layout
-const { Sider, Control, Secondary, WindowAppBar } = MyLayout
-
-@withRouter
-@connect(({ app, loading }) => ({ app, loading }))
-class PrimaryLayout extends React.Component {
- constructor(props) {
- super(props)
- window.PrimaryComponent = this
- this.state = {
- collapsed: ycore.AppSettings.default_collapse_sider ? true : false,
- isMobile: false,
- desktop_mode: false,
- userData: '',
- }
- }
-
- componentDidMount() {
- this.setState({
- userData: ycore.userData(),
- })
-
- this.enquireHandler = enquireScreen(mobile => {
- const { isMobile } = this.state
- if (isMobile !== mobile) {
- this.setState({
- isMobile: mobile,
- })
- store.set('mobile_src', mobile)
- }
- })
- }
-
- componentWillUnmount() {
- unenquireScreen(this.enquireHandler)
- }
-
- onCollapseChange = () => {
- const fromStore = store.get('collapsed')
- this.setState({ collapsed: !this.state.collapsed })
- store.set('collapsed', !fromStore)
- }
-
- render() {
- const { app, location, dispatch, children } = this.props
- const { userData, collapsed, isMobile } = this.state
- const { onCollapseChange } = this
- const { theme } = app
-
- const SiderProps = {
- theme,
- userData,
- isMobile,
- collapsed,
- onCollapseChange,
- onThemeChange(theme) {
- dispatch({
- type: 'app/handleThemeChange',
- payload: theme,
- })
- },
- }
-
- const SecondaryProps = {
- userData,
- isMobile,
- }
-
- return (
-
- {/* {isMobile ? : null} */}
-
-
-
-
-
-
-
-
-
-
-
- )
- }
-}
-
-PrimaryLayout.propTypes = {
- children: PropTypes.element.isRequired,
- location: PropTypes.object,
- dispatch: PropTypes.func,
- app: PropTypes.object,
- loading: PropTypes.object,
-}
-
-export default PrimaryLayout
diff --git a/.prev/src/layouts/PrimaryLayout.less b/.prev/src/layouts/PrimaryLayout.less
deleted file mode 100644
index 29d41079..00000000
--- a/.prev/src/layouts/PrimaryLayout.less
+++ /dev/null
@@ -1,51 +0,0 @@
-@import '~themes/index.less';
-
-.__ControlBar {
- width: 100%;
- position: absolute;
- bottom: 0;
- z-index: 30;
-}
-
-.primary_layout {
- overflow: hidden;
- background-color: @primary_layout_backgroud;
- margin: auto;
- &.mobile{
- >.primary_layout_container {
- border-radius: 0;
- margin: 0;
- padding: 0;
- overflow-y: overlay;
- overflow-x: hidden;
- }
- .primary_layout_content{
- padding: 35px 15px 15px 15px;
- }
- }
-}
-
-// PRIMARY LAYOUT
-.primary_layout_container {
- transition: background-color @__Global_layout_transitions-dur linear;
- background-color: @primary_layout_container_backgroud;
- border-radius: @primary_layout_container_border-rd;
-
- overflow-x: hidden;
- margin: 0 0 0 10px;
- width: 100vw;
- height: 100vh;
-
- position: relative;
- bottom: 0;
- align-self: center;
- float: left;
-}
-
-.primary_layout_content {
- vertical-align: middle;
- width: 100%;
- float: right;
- padding: @primary_layout_content_padding;
- transition: all @__Global_layout_transitions-dur ease;
-}
diff --git a/.prev/src/layouts/PublicLayout.js b/.prev/src/layouts/PublicLayout.js
deleted file mode 100644
index caaaf5cc..00000000
--- a/.prev/src/layouts/PublicLayout.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default ({ children }) => {
- return children
-}
diff --git a/.prev/src/layouts/index.js b/.prev/src/layouts/index.js
deleted file mode 100644
index 6fd7231c..00000000
--- a/.prev/src/layouts/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import React, { Component } from 'react'
-import withRouter from 'umi/withRouter'
-import { ConfigProvider } from 'antd'
-import { I18nProvider } from '@lingui/react'
-import { langFromPath, defaultLanguage } from 'utils'
-import en_US from 'antd/lib/locale-provider/en_US'
-import BaseLayout from './BaseLayout'
-
-const languages = {
- en: en_US,
-}
-
-@withRouter
-class Layout extends Component {
- state = {
- catalogs: {},
- }
-
- language = defaultLanguage
-
- componentDidMount() {
- const language = langFromPath(this.props.location.pathname)
- this.language = language
- this.loadCatalog(language)
- }
-
- shouldComponentUpdate(nextProps, nextState) {
- const language = langFromPath(nextProps.location.pathname)
- const preLanguage = this.language
- const { catalogs } = nextState
-
- if (preLanguage !== language && !catalogs[language]) {
- this.loadCatalog(language)
- this.language = language
- return false
- }
- this.language = language
-
- return true
- }
-
- loadCatalog = async language => {
- const catalog = await import(
- /* webpackMode: "lazy", webpackChunkName: "i18n-[index]" */
- `@lingui/loader!../locales/${language}/messages.json`
- )
-
- this.setState(state => ({
- catalogs: {
- ...state.catalogs,
- [language]: catalog,
- },
- }))
- }
-
- render() {
- const { location, children } = this.props
- const { catalogs } = this.state
-
- let language = langFromPath(location.pathname)
- // If the language pack is not loaded or is loading, use the default language
- if (!catalogs[language]) language = defaultLanguage
-
- return (
-
-
- {children}
-
-
- )
- }
-}
-
-export default Layout
diff --git a/.prev/src/locales/en/messages.json b/.prev/src/locales/en/messages.json
deleted file mode 100644
index 4e8253ac..00000000
--- a/.prev/src/locales/en/messages.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "/dashboard": "/dashboard",
- "Add Param": "Add Param",
- "Address": "Address",
- "Age": "Age",
- "Are you sure delete this record?": "Are you sure delete this record?",
- "Author": "Author",
- "Avatar": "Avatar",
- "Categories": "Categories",
- "Clear notifications": "Clear notifications",
- "Comments": "Comments",
- "Create": "Create",
- "Create User": "Create User",
- "CreateTime": "CreateTime",
- "Dark": "Dark",
- "Delete": "Delete",
- "Email": "Email",
- "Female": "Female",
- "Gender": "Gender",
- "Hi,": "Hi,",
- "Image": "Image",
- "Light": "Light",
- "Male": "Male",
- "Name": "Name",
- "NickName": "NickName",
- "Not Found": "Not Found",
- "Operation": "Operation",
- "Params": "Params",
- "Password": "Password",
- "Phone": "Phone",
- "Pick an address": "Pick an address",
- "Please pick an address": "Please pick an address",
- "Publised": "Publised",
- "Publish Date": "Publish Date",
- "Reset": "Reset",
- "Search": "Search",
- "Search Name": "Search Name",
- "Send": "Send",
- "Sign in": "Sign in",
- "Sign out": "Sign out",
- "Switch Theme": "Switch Theme",
- "Tags": "Tags",
- "The input is not valid E-mail!": "The input is not valid E-mail!",
- "The input is not valid phone!": "The input is not valid phone!",
- "Title": "Title",
- "Total {total} Items": "Total {total} Items",
- "Unpublished": "Unpublished",
- "Update": "Update",
- "Update User": "Update User",
- "Username": "Username",
- "Views": "Views",
- "Visibility": "Visibility",
- "You have viewed all notifications.": "You have viewed all notifications."
-}
\ No newline at end of file
diff --git a/.prev/src/models/app.js b/.prev/src/models/app.js
deleted file mode 100644
index 67911895..00000000
--- a/.prev/src/models/app.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/* global window */
-import { router } from 'utils'
-import store from 'store'
-import { pathMatchRegexp } from 'utils'
-import config from 'config'
-import * as ycore from 'ycore'
-
-export default {
- namespace: 'app',
- state: {
- AppSettings: store.get('app_settings') || config.defaultSettings,
- theme: store.get('theme') || 'light',
- locationQuery: {},
- },
- subscriptions: {
- setupHistory({ dispatch, history }) {
- history.listen(location => {
- dispatch({
- type: 'updateState',
- payload: {
- locationPathname: location.pathname,
- locationQuery: location.query,
- },
- })
- })
- },
-
- setupRequestCancel({ history }) {
- history.listen(() => {
- const { cancelRequest = new Map() } = window
- cancelRequest.forEach((value, key) => {
- if (value.pathname !== window.location.pathname) {
- value.cancel('Canceling...')
- cancelRequest.delete(key)
- }
- })
- })
- },
- setup({ dispatch }) {
- dispatch({ type: 'query' })
- },
- },
- effects: {
- *query({ payload }, { call, put, select }) {
- const validBackup = ycore.validate.backup()
- if (ycore.validate.session() == true) {
- if (pathMatchRegexp(['/', '/login'], window.location.pathname)) {
- router.push({ pathname: '/main' })
- }
- ycore.QueryRuntime()
-
- return true
- } else if (!pathMatchRegexp(['', '/login'], window.location.pathname)) {
- if (validBackup == true) {
- ycore.app_session.logout()
- } else {
- router.push({ pathname: '/login' })
- }
- }
- if (pathMatchRegexp([''], window.location.pathname)) {
- router.push({ pathname: '/login' })
- }
- },
- },
- reducers: {
- updateState(state, { payload }) {
- return {
- ...state,
- ...payload,
- }
- },
-
- handleThemeChange(state, { payload }) {
- store.set('theme', payload)
- state.theme = payload
- },
-
- allNotificationsRead(state) {
- state.notifications = []
- },
- },
-}
diff --git a/.prev/src/pages/$page/index.js b/.prev/src/pages/$page/index.js
deleted file mode 100644
index 37a3c3fc..00000000
--- a/.prev/src/pages/$page/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { PureComponent } from 'react'
-import { UserProfile } from 'components'
-import __m from '../__m/index.js'
-import { pathMatchRegexp } from 'utils'
-import Error404 from '../404.js'
-import * as ycore from 'ycore'
-
-class PageIndexer extends PureComponent {
- render() {
- const { location } = this.props
- const matchUser = pathMatchRegexp('/@:id', location.pathname)
- const matchMaster = pathMatchRegexp('/__m', location.pathname)
-
- if (matchUser) {
- ycore.yconsole.log(`User matched! ${location.pathname}`)
- return (
-
-
-
- )
- }
- if (matchMaster) {
- return ycore.IsThisUser.dev() || ycore.IsThisUser.admin() ? (
- <__m />
- ) : (
-
- )
- }
- // By default return Error 404
- return (
-
-
-
- )
- }
-}
-
-export default PageIndexer
diff --git a/.prev/src/pages/$page/index.less b/.prev/src/pages/$page/index.less
deleted file mode 100644
index cc1b09bf..00000000
--- a/.prev/src/pages/$page/index.less
+++ /dev/null
@@ -1,14 +0,0 @@
-.content {
- line-height: 2.4;
- font-size: 13px;
-
- .item {
- display: flex;
-
- &>div {
- &:first-child {
- width: 100px;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/404.js b/.prev/src/pages/404.js
deleted file mode 100644
index ddc21062..00000000
--- a/.prev/src/pages/404.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react'
-import { Icon as LegacyIcon } from '@ant-design/compatible'
-import { Page } from 'components'
-import styles from './404.less'
-
-const Error404 = () => (
-
-
-
OBA BLYAT
-
- ERROR 404
-
-
-)
-
-export default Error404
diff --git a/.prev/src/pages/404.less b/.prev/src/pages/404.less
deleted file mode 100644
index ac10f8cc..00000000
--- a/.prev/src/pages/404.less
+++ /dev/null
@@ -1,55 +0,0 @@
-/* devanagari */
-@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v6/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');
- unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
-}
-
-/* latin-ext */
-@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v6/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
- unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
-}
-
-/* latin */
-@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v6/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-
-.error {
- background-color: transparent;
- color: black;
- text-align: center;
- position: absolute;
- top: 30%;
- margin-top: -50px;
- left: 50%;
- margin-left: -100px;
- width: 200px;
-
- :global .anticon {
- font-size: 48px;
- margin-bottom: 16px;
- }
-
- h1 {
- font-family: 'Poppins', sans-serif;
-
- }
-
- p {
- font-family: 'Poppins', sans-serif;
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/__m/index.js b/.prev/src/pages/__m/index.js
deleted file mode 100644
index a8bd4faf..00000000
--- a/.prev/src/pages/__m/index.js
+++ /dev/null
@@ -1,232 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import jwt from 'jsonwebtoken'
-
-import styles from './style.less'
-import MainFeed from '../../components/MainFeed'
-
-const UserData = ycore.userData()
-
-export default class __m extends React.Component {
- constructor(props) {
- super(props),
- (this.state = {
- s_id: '',
- coninfo: 'Getting info...',
- s_token: '',
- s_ses: '',
- })
- }
-
- componentDidMount() {
- this.handleSID()
- this.handleToken()
- }
-
- handleSID() {
- ycore.comty_get.session_id((err, response) => {
- if (err) {
- return ycore.notify.error(err)
- }
- this.setState({ s_id: response })
- })
- }
- handleToken() {
- const a = ycore.token_data.getRaw()
- const b = jwt.decode(a)
- this.setState({ s_token: b })
- {
- ycore.validate.session(res => {
- this.setState({ s_ses: res })
- })
- }
- }
- handleDesktop() {
- const a = localStorage.getItem('desktop_src')
- let to
- if ( a == 'false') {
- to = true
- } else {
- to = false
- }
- ycore.notify.proccess('Switching to ', to ? 'Desktop Mode' : 'Normal Mode')
- localStorage.setItem('desktop_src', to)
- setTimeout(() => ycore.RefreshONCE(), 2000)
- }
- DescompileSDCP() {
- let result = {}
- for (var i = 0; i < UserData.length; i++) {
- result[UserData[i].key] = UserData[i].value
- }
- console.log([result])
- }
-
- render() {
- const arrayOfSDCP = Object.entries(UserData).map(e => ({ [e[0]]: e[1] }))
- const { UserID, UserToken, expiresIn } = this.state.s_token
- const { ValidSDCP, ValidCookiesToken, final } = this.state.s_ses
-
- const AddDummy = {
- id: '3',
- publisher: { id: '1' },
- post_id: '1',
- user_id: '48',
- recipient_id: '0',
- postText: 'New by ID Dummy Payload',
- }
-
- return (
-
-
-
- yCore™ Server
-
-
-
-
-
- Server UID
-
- {ycore.__server.getKey()}
-
-
-
- Your SID
-
- {this.state.s_id}
-
-
-
- Current Session
-
- Raw => {JSON.stringify(this.state.s_token)}
- UID => {UserID}
- Session Token => {UserToken}
- expiresIn => {expiresIn}
-
- ValidSDCP => {JSON.stringify(ValidSDCP)}
- ValidCookiesToken => {JSON.stringify(ValidCookiesToken)}
- Valid? => {JSON.stringify(final)}
-
-
-
- {' '}
- Using v{ycore.AppInfo.version} | User @{UserData.username}#
- {UserData.id} |{' '}
-
-
-
-
-
-
- Test yCore™{' '}
-
-
-
-
ycore.notify.error('Yep, its not empty, jeje funny')}
- >
- {' '}
- Send empty notify.error(){' '}
-
-
- ycore.notify.error(`
- ycore.GetPosts(uid, get, '0', (err, result) => {
- const parsed = JSON.parse(result)['data']
- const isEnd = parsed.length < ycore.AppSettings.limit_post_catch? true : false
- this.setState({ isEnd: isEnd, data: parsed, loading: false })
- })`)
- }
- >
- {' '}
- Send mock notify.error(){' '}
-
-
-
ycore.notify.error('Error Mock 1')}>
- {' '}
- notify.error{' '}
-
-
ycore.notify.proccess('Proccess Mock 1')}>
- {' '}
- notify.proccess{' '}
-
-
this.handleDesktop()}>
- {' '}
- Switch to Desktop_mode{' '}
-
-
-
ycore.app_modals.report_post()}>
- Open report_post modal
-
-
-
ycore.sync.emmitPost()}>
- Emmit Post feed
-
-
-
-
-
- SDCP™
-
-
-
-
-
- UserData
-
-
-
- {JSON.stringify(arrayOfSDCP)}
-
-
-
-
-
-
-
- MainFeed | ENV Test
-
-
-
-
- ycore.FeedHandler.addToRend(AddDummy)}>
- {' '}
- ADD DUMMY{' '}
-
- ycore.FeedHandler.killByID(3)}>
- {' '}
- KillByID (3){' '}
-
-
-
-
-
-
- )
- }
-}
diff --git a/.prev/src/pages/__m/style.less b/.prev/src/pages/__m/style.less
deleted file mode 100644
index ad2d7dc7..00000000
--- a/.prev/src/pages/__m/style.less
+++ /dev/null
@@ -1,31 +0,0 @@
-@import '~themes/index.less';
-
-.Wrapper {
- padding: 10px;
-}
-
-.titleHeader {
- position: relative;
- width: 100%;
- height: 40px;
- background-color: #fff;
- border-radius: 8px;
- line-height: 40px;
- padding: 0 30px 0 15px;
-
- h1 {
- font-family: "Poppins", sans-serif;
- font-size: 14px;
- color: #1890ff;
- }
-
-}
-
-.sectionWrapper {
- word-break: break-all;
- max-width: 100%;
- text-overflow: clip;
- margin: 15px auto 15px 0;
- padding: 15px;
- background-color: rgb(236, 236, 236);
-}
\ No newline at end of file
diff --git a/.prev/src/pages/about/index.js b/.prev/src/pages/about/index.js
deleted file mode 100644
index 928dcb1b..00000000
--- a/.prev/src/pages/about/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react'
-import { App_about } from 'components'
-
-class AppAbout extends React.Component {
- render() {
- return
- }
-}
-export default AppAbout
diff --git a/.prev/src/pages/about/index.less b/.prev/src/pages/about/index.less
deleted file mode 100644
index 5dd1b8b1..00000000
--- a/.prev/src/pages/about/index.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.aboutWrapper {
- margin: auto;
- max-width: 70vw;
- width: 500px;
- vertical-align: middle;
- position: relative;
- background-color: rgba(73, 72, 72, 0.349);
-
- img {
- width: 100%;
- padding: 15px;
- }
-}
-
-.appName {
- font-family: "Poppins", sans-serif;
- font-size: 27px;
-}
\ No newline at end of file
diff --git a/.prev/src/pages/events/index.js b/.prev/src/pages/events/index.js
deleted file mode 100644
index a8c63e65..00000000
--- a/.prev/src/pages/events/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-
-export default class Events extends React.PureComponent{
- render(){
- return(
-
- )
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/events/index.less b/.prev/src/pages/events/index.less
deleted file mode 100644
index f7661901..00000000
--- a/.prev/src/pages/events/index.less
+++ /dev/null
@@ -1 +0,0 @@
-@import '~themes/index.less';
\ No newline at end of file
diff --git a/.prev/src/pages/g/$group/index.js b/.prev/src/pages/g/$group/index.js
deleted file mode 100644
index 3d774581..00000000
--- a/.prev/src/pages/g/$group/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-import React, { PureComponent } from 'react'
-import { pathMatchRegexp } from 'utils'
-import { SearchCard } from 'components'
-import styles from './styles.less'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-
-class GroupIndexer extends PureComponent {
- constructor(props) {
- super(props),
- (this.state = {
- SearchResult: '',
- loading: true,
- })
- }
- toogleLoading() {
- this.setState({ loading: !this.state.loading })
- }
- componentDidMount() {
- try {
- const { location } = this.props
- const matchSearch = pathMatchRegexp('/s/:id', location.pathname)
- const parsed = matchSearch.shift()
- const raw = parsed.toString()
- const string = raw.replace('/s/', '')
- } catch (err) {
- ycore.notify.error(err)
- }
- }
-
- EntryComponent = (t, source) => {
- try {
- return (
-
- )
- } catch (error) {
- return (
-
- Render Error
-
- )
- }
- }
-
- render() {
- const { location } = this.props
- const matchSearch = pathMatchRegexp('/g/:id', location.pathname)
-
- const parsed = matchSearch.shift()
- const raw = parsed.toString()
- const string = raw.replace('/g/', '')
-
- if (matchSearch) {
- return (
-
-
- Results of {string}{' '}
-
-
-
- {this.state.loading
- ? null
- : this.renderResult(this.state.SearchResult)}
-
-
-
- )
- }
-
- return (
-
-
Render Error
-
- )
- }
-}
-
-export default GroupIndexer
diff --git a/.prev/src/pages/g/$group/styles.less b/.prev/src/pages/g/$group/styles.less
deleted file mode 100644
index 6ced630f..00000000
--- a/.prev/src/pages/g/$group/styles.less
+++ /dev/null
@@ -1,20 +0,0 @@
-@import '~themes/index.less';
-
-.searchHeader {
- font-family: "Nunito", sans-serif;
- font-size: 40px;
- text-align: center;
- margin-top: 7px;
-}
-
-.results {
- padding: 10px;
-}
-
-.searchEntry {
- :global {
- .antd-card {
- margin: auto;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/index.js b/.prev/src/pages/index.js
deleted file mode 100644
index 183c0a9e..00000000
--- a/.prev/src/pages/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import React, { PureComponent } from 'react'
-import * as ycore from 'ycore'
-
-class Index extends PureComponent {
- render() {
- ycore.router.go(`login`)
- }
-}
-
-export default Index
diff --git a/.prev/src/pages/login/index.js b/.prev/src/pages/login/index.js
deleted file mode 100644
index 6832aa16..00000000
--- a/.prev/src/pages/login/index.js
+++ /dev/null
@@ -1,132 +0,0 @@
-import React from 'react'
-import { AppInfo } from 'ycore'
-import styles from './index.less'
-import classnames from 'classnames'
-
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-
-import { RegistrationForm } from './register.js'
-import { NormalLoginForm } from './login.js'
-
-import { siteName } from 'config'
-
-export function transitionToogle() {
- window.LoginComponent.setState({
- transition: !window.LoginComponent.state.transition,
- })
- window.LoginComponent.toogleYulioID()
-}
-
-class Login extends React.PureComponent {
- constructor(props) {
- super(props)
- window.LoginComponent = this
- this.state = {
- transition: false,
- using: 1,
- }
- }
- switchType = {
- f: a => {
- this.setState({ using: a })
- },
- login: () => {
- this.switchType.f(1)
- },
- register: () => {
- this.switchType.f(2)
- },
- forgot: () => {
- this.switchType.f(3)
- },
- }
-
- renderType(t) {
- const a = this.state.using
- if (t) {
- switch (a) {
- case 1:
- return `Sign in ${siteName}`
- case 2:
- return 'Register'
- case 3:
- return 'Forgot'
- default:
- return 'Auth'
- }
- } else {
- switch (a) {
- case 1:
- return
- case 2:
- return
- case 3:
- return null
- default:
- return
- }
- }
- }
-
- renderHelperButtons = () => {
- if (this.state.using == 1) {
- return (
-
-
this.switchType.forgot()}>
- Forgotten password
-
-
this.switchType.register()}>
- Create an account
-
-
- )
- }
- if (this.state.using == 2 || 3) {
- return (
-
-
this.switchType.login()}>
- Login
-
-
- )
- }
- }
-
- render() {
- return (
-
-
- ⚠ Using v{AppInfo.version} {AppInfo.stage}
-
-
-
-
-
-
- YulioID™
-
-
{this.renderType(true)}
-
-
- {this.renderType()}
- {this.renderHelperButtons()}
-
-
-
-
- )
- }
-}
-export default Login
diff --git a/.prev/src/pages/login/index.less b/.prev/src/pages/login/index.less
deleted file mode 100644
index ef8e2646..00000000
--- a/.prev/src/pages/login/index.less
+++ /dev/null
@@ -1,235 +0,0 @@
-@import '~themes/index.less';
-
-
-.login_wrapper{
- width: 100%;
- height: 100%;
- font-family: "Poppins", sans-serif!important;
- h1,h2,h3,h4,h5,h6{color: #333;}
- position: absolute;
- top: 0;
- left: 0;
- display: flex;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 20px;
- margin: auto;
-
- overflow-y: scroll;
- overflow-x: hidden;
- &.goOut{
- .auth_box{
- -webkit-animation-name: fadeOutLeft;
- animation-name: fadeOutLeft;
- }
- }
- transition: all 300ms ease-in-out;
-}
-
-
-.auth_box{
- display: flex;
- transition: all 300ms ease-in-out;
-
- .yid_logo {
- vertical-align: middle;
- height: 17px;
- }
- :global{
- input:-webkit-autofill,
- input:-webkit-autofill:hover,
- input:-webkit-autofill:focus,
- textarea:-webkit-autofill,
- textarea:-webkit-autofill:hover,
- textarea:-webkit-autofill:focus,
- select:-webkit-autofill,
- select:-webkit-autofill:hover,
- select:-webkit-autofill:focus {
- border: 0;
- -webkit-text-fill-color: #333;
- -webkit-box-shadow: 0 0 0px 1000px #ffffff98 inset;
- box-shadow: #fff 0px 0px 0px 1000px inset;
- transition: background-color 5000s ease-in-out 0s;
- }
-
- .ant-input-affix-wrapper {
- width: 100%;
- height: 40px;
- padding: 4px 11px;
- color: #333;
- font-size: 14px;
- line-height: 1.5715;
- background-color: #fff; //rgba(255, 255, 255, 0.596);
- border: 1.5px #2F66DF solid;
- border-radius: 7px;
- }
- }
-}
-
-.centering_wrapper{
- width: 100%;
- text-align: center;
-}
-
-.left_body{
- z-index: 50;
- transform: translate(12px,0);
- float: left;
- width: 30%;
- color: #333;
- background-color: #fff;
- padding: 20px;
- border-radius: 12px 0 0 12px;
- box-shadow: 0px 10px 20px 0px rgba(51,51,51,0.52);
- transition: all 300ms ease-in-out;
-
-}
-.right_body{
- z-index: 51;
- float: right;
- width: 70%;
- max-height: -webkit-fill-available;
- height: 150px;
- padding: 20px 50px 20px 50px;
- color: #333;
- background-color: #fff;
- border-radius: 12px;
- box-shadow: 0px 10px 20px 0px rgba(51,51,51,0.52);
- transition: all 300ms ease-in-out;
-}
-
-
-
-.helper_login_btn{
- transform: translate(-20px, -14px);
-}
-
-
-.login_helper_footer{
- width: 100%;
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- margin: auto;
- :global{
- .ant-btn{
- margin: auto;
- padding: 0 5px 0 5px;
- }
- }
-
- transform: translate(0, -10px);
-
-}
-
-
-@keyframes go-out {
- 0% {
- filter: blur(0px)
- }
-
- 100% {
- filter: blur(15px)
- }
-}
-
-// // Full format
-// @media (min-width: 486px){
-// .login_wrapper {
-// min-height: 580px;
-// }
-// .auth_box {
-// width: 784px;
-// }
-// }
-
-// Medium format max-width: 830px
-@media (min-width: 486px){
- .auth_box {
- padding: 0 16px 40px;
- width: 500px;
- min-height: 500px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .left_body{
- width: 100%;
- float: none;
- border-radius: 12px 12px 0 0;
- padding: 20px 20px 20px 20px;
- transform: translate(0, 22px);
- }
- .right_body{
- width: 100%;
- float: none;
- padding: 20px 60px 20px 60px;
- }
-}
-
-// Mobile format
-@media (max-width: 485px){
- .auth_box {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 70px 16px 40px;
- width: 100%;
- height: 100%;
- min-height: 500px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- border-radius: 0;
- }
- .left_body{
- box-shadow: none;
- width: 100%;
- float: none;
- position: absolute;
- top: 0;
- margin-top: 30px;
- transform: translate(0, 0);
- }
- .right_body{
- box-shadow: none;
- width: 100%;
- float: none;
- padding: 20px 20px 20px 20px;
- }
-}
-
-.register_form{
-
-}
-
-@-webkit-keyframes fadeOutLeft {
- from {
- opacity: 1;
- }
-
- to {
- opacity: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
- }
-}
-
-@keyframes fadeOutLeft {
- from {
- opacity: 1;
- }
-
- to {
- opacity: 0;
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
- }
-}
diff --git a/.prev/src/pages/login/login.js b/.prev/src/pages/login/login.js
deleted file mode 100644
index 231bd947..00000000
--- a/.prev/src/pages/login/login.js
+++ /dev/null
@@ -1,221 +0,0 @@
-import React from 'react'
-import styles from './index.less'
-
-import Fade from 'react-reveal/Fade'
-import HeadShake from 'react-reveal/HeadShake';
-
-import * as antd from 'antd'
-import * as ycore from 'ycore'
-
-import { Form, Input, Button, Checkbox } from 'antd'
-import {
- UserOutlined,
- LockOutlined,
- BulbOutlined,
- SwapLeftOutlined
-} from '@ant-design/icons'
-
-export class NormalLoginForm extends React.PureComponent {
- state = {
- step: 1,
- validating: false,
- error_count: 0,
- step_error: false,
- step_show: true,
- swpass: false,
- }
-
- next = values => {
- let a = this.state.step
- const b = btoa(Object.values(values).toString())
- switch (a) {
- case 1:
- const payload = { username: Object.values(values).toString() }
- ycore.get_early.user((err, res) => {
- if (err || !res) return false
- try {
- const res_data = JSON.parse(res)
-
- if (res_data.api_status == 200) {
- a++
- this.anim_transition(300)
- this.setState({
- step_error: false,
- early_data: res_data.data,
- form_rawd_1: b,
- step: a,
- })
- }
- if (res_data.api_status == 400) {
- this.anim_error()
- }
- } catch (error) {
- return false
- }
- }, payload)
-
- return true
- case 2:
- this.setState({ form_rawd_2: b, step: a })
- this.auth()
- return true
- default:
- return false
- }
- }
-
- back() {
- let a = this.state.step
- if (a > 1) {
- a--
- this.anim_transition(150)
- }
-
- this.setState({ step: a })
- }
-
- anim_transition(duration) {
- this.setState({ step_show: false })
- setTimeout(() => {
- this.setState({ step_show: true })
- }, duration || 1000)
- }
- anim_error() {
- this.setState({ step_error: true, error_count: (this.state.error_count + 1) })
- }
-
- auth() {
- const { form_rawd_1, form_rawd_2 } = this.state
- if (!form_rawd_1 || !form_rawd_2) return false
- const frame = { EncUsername: form_rawd_1, EncPassword: form_rawd_2 }
-
- this.setState({ step_error: false, validating: true })
- ycore.app_session.login((err, res) => {
- switch (res) {
- case '200': {
- this.anim_transition(300)
- ycore.LoginPage.transitionToogle()
- return
- }
- case '400': {
- console.log('Credentials error')
- this.setState({ validating: false })
- this.anim_error()
- return
- }
- case '500': {
- console.log('Server error')
- this.setState({ validating: false })
- this.back()
- return
- }
- default:
- this.back()
- this.setState({ validating: false })
- return false
- }
- }, frame)
- }
-
- renderState = () => {
- switch (this.state.step) {
- case 1:
- return (
-
- )
- case 2:
- return (
-
- )
- case 3: {
- return Wait a sec...
- }
- default:
- return null
- }
- }
-
- render() {
- return (
-
-
- {this.renderState()}
-
-
- )
- }
-}
diff --git a/.prev/src/pages/login/register.js b/.prev/src/pages/login/register.js
deleted file mode 100644
index c74a5b49..00000000
--- a/.prev/src/pages/login/register.js
+++ /dev/null
@@ -1,162 +0,0 @@
-import React, { useState } from 'react'
-import {
- MailOutlined,
- TagOutlined,
- LockOutlined,
-} from '@ant-design/icons'
-
-import styles from './index.less'
-import {
- Form,
- Input,
- Tooltip,
- Cascader,
- Select,
- Row,
- Col,
- Checkbox,
- Button,
- AutoComplete,
-} from 'antd'
-import { QuestionCircleOutlined } from '@ant-design/icons'
-import ReCAPTCHA from 'react-google-recaptcha'
-import { g_recaptcha_key } from 'config'
-
-function capchaOnChange(value) {
- console.log('Captcha value:', value)
-}
-
-
-
-export const RegistrationForm = () => {
-
- const onFinish = values => {
- console.log('Received values of form: ', values)
- }
-
- return (
-
-
- }
- placeholder="ramdomuser"/>
-
-
- }
- placeholder="example@no-real.com"
- />
-
-
-
- }
- placeholder="example@no-real.com"/>
-
-
-
({
- validator(rule, value) {
- if (!value || getFieldValue('password') === value) {
- return Promise.resolve()
- }
-
- return Promise.reject(
- 'The two passwords that you entered do not match!'
- )
- },
- }),
- ]}
- >
- }
- placeholder="example@no-real.com"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- value
- ? Promise.resolve()
- : Promise.reject('Should accept agreement'),
- },
- ]}
- >
-
- I have read the agreement
-
-
-
-
- Register
-
-
-
-
- )
-}
diff --git a/.prev/src/pages/main/index.js b/.prev/src/pages/main/index.js
deleted file mode 100644
index 5f1e604a..00000000
--- a/.prev/src/pages/main/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import { PostCreator, MainFeed } from 'components'
-import styles from './index.less'
-
-export default class Main extends React.Component {
- render() {
- return (
-
- )
- }
-}
diff --git a/.prev/src/pages/main/index.less b/.prev/src/pages/main/index.less
deleted file mode 100644
index 7c81e1c2..00000000
--- a/.prev/src/pages/main/index.less
+++ /dev/null
@@ -1,6 +0,0 @@
-@import '~themes/index.less';
-
-.mainWrapper {
- position: relative;
- padding: 20px;
-}
diff --git a/.prev/src/pages/marketplace/index.js b/.prev/src/pages/marketplace/index.js
deleted file mode 100644
index 269da609..00000000
--- a/.prev/src/pages/marketplace/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-
-export default class Marketplace extends React.PureComponent{
- render(){
- return(
-
- )
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/marketplace/index.less b/.prev/src/pages/marketplace/index.less
deleted file mode 100644
index f7661901..00000000
--- a/.prev/src/pages/marketplace/index.less
+++ /dev/null
@@ -1 +0,0 @@
-@import '~themes/index.less';
\ No newline at end of file
diff --git a/.prev/src/pages/p/$post/index.js b/.prev/src/pages/p/$post/index.js
deleted file mode 100644
index e4f70dda..00000000
--- a/.prev/src/pages/p/$post/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react'
-import { pathMatchRegexp } from 'utils'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-
-export default class Indexer_Post extends React.Component {
- constructor(props) {
- super(props),
- (this.state = {
- loading: true,
- swaped: false,
- UUID: '',
- })
- }
-
- toSwap(id) {
- const payload = { post_id: id }
- ycore.comty_post.get((err, res) => {
- if (err) {
- return false
- }
- ycore.SecondarySwap.openPost(res)
- }, payload)
- }
-
- componentDidMount() {
- try {
- const { location } = this.props
- const regexp = pathMatchRegexp('/p/:id', location.pathname)
- const match = regexp.shift().toString()
-
- const string = match.replace('/p/', '')
- this.setState({ UUID: string })
- if (string) {
- this.toSwap(string)
- }
- } catch (err) {
- ycore.notify.error(err)
- }
- }
-
- render() {
- ycore.router.go('main')
- return null
- }
-}
diff --git a/.prev/src/pages/pro/index.js b/.prev/src/pages/pro/index.js
deleted file mode 100644
index 0b681393..00000000
--- a/.prev/src/pages/pro/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react'
-
-export default class Go_Pro extends React.Component {
- render() {
- return Your PRO
- }
-}
diff --git a/.prev/src/pages/s/$search/index.js b/.prev/src/pages/s/$search/index.js
deleted file mode 100644
index 75ce960d..00000000
--- a/.prev/src/pages/s/$search/index.js
+++ /dev/null
@@ -1,163 +0,0 @@
-import React, { PureComponent } from 'react'
-import { pathMatchRegexp } from 'utils'
-import { SearchCard } from 'components'
-import styles from './styles.less'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-
-class SearchPageIndexer extends PureComponent {
- constructor(props) {
- super(props),
- (this.state = {
- SearchResult: '',
- loading: true,
- })
- }
- toogleLoading() {
- this.setState({ loading: !this.state.loading })
- }
- componentDidMount() {
- try {
- const { location } = this.props
- const matchSearch = pathMatchRegexp('/s/:id', location.pathname)
- const parsed = matchSearch.shift()
- const raw = parsed.toString()
- const string = raw.replace('/s/', '')
-
- const payload = { key: string }
- ycore.comty_search.keywords((err, res) => {
- if (err) {
- ycore.notify.error(err)
- }
- ycore.yconsole.log('Founded entries => ', JSON.parse(res))
- this.setState({ SearchResult: res })
- this.toogleLoading()
- }, payload)
- } catch (err) {
- ycore.notify.error(err)
- }
- }
-
- renderResult = source => {
- try {
- const Empty = (
-
- )
-
- // TO DO: Settings serach & Post Search
- const usersParsed = JSON.parse(source)['users']
- const groupsParsed = JSON.parse(source)['groups']
- const pagesParsed = JSON.parse(source)['pages']
-
- const users = () => {
- if (usersParsed.length >= 1) {
- ycore.yconsole.log('Users => ', usersParsed)
- return this.EntryComponent('Users', usersParsed)
- }
- }
- const groups = () => {
- if (groupsParsed.length >= 1) {
- ycore.yconsole.log('Groups => ', groupsParsed)
- return this.EntryComponent('Groups', groupsParsed)
- }
- }
- const pages = () => {
- if (pagesParsed.length >= 1) {
- ycore.yconsole.log('Pages => ', pagesParsed)
- return this.EntryComponent('Pages', pagesParsed)
- }
- }
-
- if (
- !usersParsed.length >= 1 &&
- !groupsParsed.length >= 1 &&
- !pagesParsed.length >= 1
- ) {
- return Empty
- }
-
- return [users(), groups(), pages()]
- } catch (error) {
- return (
-
- Render Error
-
- )
- }
- }
- EntryComponent = (t, source) => {
- try {
- return (
-
- )
- } catch (error) {
- return (
-
- Render Error
-
- )
- }
- }
-
- render() {
- const { location } = this.props
- const matchSearch = pathMatchRegexp('/s/:id', location.pathname)
-
- const parsed = matchSearch.shift()
- const raw = parsed.toString()
- const string = raw.replace('/s/', '')
-
- if (matchSearch) {
- ycore.yconsole.log(`Search matched! ${location.pathname}`)
- return (
-
-
- Results of {string}{' '}
-
-
-
- {this.state.loading
- ? null
- : this.renderResult(this.state.SearchResult)}
-
-
-
- )
- }
-
- return (
-
-
Render Error
-
- )
- }
-}
-
-export default SearchPageIndexer
diff --git a/.prev/src/pages/s/$search/styles.less b/.prev/src/pages/s/$search/styles.less
deleted file mode 100644
index 6ced630f..00000000
--- a/.prev/src/pages/s/$search/styles.less
+++ /dev/null
@@ -1,20 +0,0 @@
-@import '~themes/index.less';
-
-.searchHeader {
- font-family: "Nunito", sans-serif;
- font-size: 40px;
- text-align: center;
- margin-top: 7px;
-}
-
-.results {
- padding: 10px;
-}
-
-.searchEntry {
- :global {
- .antd-card {
- margin: auto;
- }
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/saves/index.js b/.prev/src/pages/saves/index.js
deleted file mode 100644
index 6b12a01c..00000000
--- a/.prev/src/pages/saves/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import { MainFeed } from 'components'
-import styles from './index.less'
-
-export default class PostSaved extends React.PureComponent{
- state = {
- loading: true,
- data: null,
- }
- componentDidMount(){
- ycore.comty_post.getSaved((err,res) => {
- if (err) return false
- try {
- const a = JSON.parse(res)['data']
- this.setState({ data: a, loading: false })
- } catch (error) {
- ycore.notify.exception('Error cathing saved posts... ', error)
- }
- })
- }
- renderSavedPost(){
- const { data } = this.state
- try {
- if (data.length < 1) {
- return
- }
- return
- } catch (err) {
-
- }
- }
- render(){
- return(
-
-
-
Saved Post
-
-
- {this.renderSavedPost()}
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/saves/index.less b/.prev/src/pages/saves/index.less
deleted file mode 100644
index bb96e995..00000000
--- a/.prev/src/pages/saves/index.less
+++ /dev/null
@@ -1,14 +0,0 @@
-@import '~themes/index.less';
-
-.saved_post_wrapper{
-
-}
-.saved_post_title{
- font-family: @__Global_general_font_family;
-}
-.saved_post_content{
- margin-top: 10px;
- padding: 10px;
- background-color: #ffffff8e;
- border-radius: 12px;
-}
\ No newline at end of file
diff --git a/.prev/src/pages/settings/components/about.js b/.prev/src/pages/settings/components/about.js
deleted file mode 100644
index 34a9abff..00000000
--- a/.prev/src/pages/settings/components/about.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react'
-import { App_about } from 'components'
-
-export default class AppAbout extends React.Component {
- render() {
- return
- }
-}
-
diff --git a/.prev/src/pages/settings/components/base.js b/.prev/src/pages/settings/components/base.js
deleted file mode 100644
index f7374d3a..00000000
--- a/.prev/src/pages/settings/components/base.js
+++ /dev/null
@@ -1,146 +0,0 @@
-import React, { Component, Fragment } from 'react'
-import { List, Switch, Button, notification, InputNumber } from 'antd'
-import { ListSettings } from '../../../../globals/settings.js'
-import { ControlBar } from 'ycore'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import Icon from '@ant-design/icons'
-import { CustomIcons } from 'components'
-
-class Base extends Component {
- constructor(props) {
- super(props),
- (this.state = {
- SettingRepo: ListSettings,
- forSave: false,
- })
- }
-
- componentDidMount() {
- if (!localStorage.getItem('app_settings')) {
- ycore.yconsole.warn(
- 'The settings for this app in your Account isnt set yet, Using stock settings...'
- )
- }
- }
-
- rendersets = item => {
- let e = item.type
- switch (e) {
- case 'switch':
- return (
- this.onChangeSwitch(item)}
- />
- )
- case 'numeric':
- return (
- this.onChangeNumeric(item, value)}
- />
- )
- default:
- break
- }
- }
-
- SettingRender = data => {
- try {
- return (
-
- (
-
-
- {this.rendersets(item)}
-
- )}
- />
-
- )
- } catch (err) {
- return ycore.yconsole.log(err)
- }
- }
- handleControlBar() {
- const ListControls = [
-
- }
- onClick={() => this.saveChanges()}
- >
- Save
-
-
,
- ]
- ControlBar.set(ListControls)
- }
-
- saveChanges() {
- localStorage.setItem('app_settings', JSON.stringify(this.state.SettingRepo))
- this.setState({ forSave: false })
- notification.success({
- message: 'Settings saved',
- description:
- 'The configuration has been saved, it may for some configuration to make changes you need to reload the application',
- })
- setTimeout(ycore.RefreshONCE(), 1000)
- ControlBar.close()
- }
-
- onChangeSwitch(item) {
- try {
- this.handleControlBar()
- const to = !item.value
- const updatedValue = [...this.state.SettingRepo].map(ita =>
- ita === item ? Object.assign(ita, { value: to }) : ita
- )
- this.setState({ SettingRepo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
- } catch (err) {
- console.log(err)
- }
- }
- onChangeNumeric(value, item) {
- this.HandleChangeNumeric(value)
- }
- HandleChangeNumeric(item, value) {
- try {
- this.handleControlBar()
- console.log(item.SettingID, value)
- const updatedValue = [...this.state.SettingRepo].map(ita =>
- ita === item ? Object.assign(ita, { value: value }) : ita
- )
- this.setState({ SettingRepo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
- } catch (err) {
- console.log(err)
- }
- }
- render() {
- return (
-
-
-
- Behaviors
-
- {this.SettingRender(this.state.SettingRepo)}
-
-
- )
- }
-}
-
-export default Base
diff --git a/.prev/src/pages/settings/components/earnings/index.js b/.prev/src/pages/settings/components/earnings/index.js
deleted file mode 100644
index db1aa206..00000000
--- a/.prev/src/pages/settings/components/earnings/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-
-export default class Earnings extends React.Component {
- render() {
- return (
-
-
- Redeem an Code
-
-
- )
- }
-}
diff --git a/.prev/src/pages/settings/components/notification/index.js b/.prev/src/pages/settings/components/notification/index.js
deleted file mode 100644
index 3edd9135..00000000
--- a/.prev/src/pages/settings/components/notification/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import styles from './index.less'
-
-export default class NotificationView extends React.Component {
- render() {
- return (
-
-
- Notifications
-
-
- )
- }
-}
-
diff --git a/.prev/src/pages/settings/components/notification/index.less b/.prev/src/pages/settings/components/notification/index.less
deleted file mode 100644
index 6cc5b5c2..00000000
--- a/.prev/src/pages/settings/components/notification/index.less
+++ /dev/null
@@ -1,17 +0,0 @@
-@import '~themes/index.less';
-
-.main {
-
- :global {
- h2 {
- font-weight: 500;
- }
-
- .anticon {
- color: #2d2d2d;
-
- }
-
-
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/settings/components/security/index.js b/.prev/src/pages/settings/components/security/index.js
deleted file mode 100644
index 496a31a2..00000000
--- a/.prev/src/pages/settings/components/security/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as Icons from '@ant-design/icons'
-import * as antd from 'antd'
-import styles from './index.less'
-
-import Sessions_Manager from './sessions.js'
-
-const { Menu } = antd
-export default class SecurityView extends React.Component {
- state = {
- current: 'privacy',
- }
-
- handleClick = e => {
- this.setState({
- current: e.key,
- })
- }
-
- renderChildren = () => {
- const { current } = this.state
- switch (current) {
- case 'privacy':
- return null
- case 'credentials':
- return null
- case 'sessions':
- return
- default:
- break
- }
- return null
- }
-
- render() {
- return (
-
-
- Your Security & Privacy
-
-
-
- Privacy
-
-
-
- Credentials
-
-
-
- Sessions
-
-
- {this.renderChildren()}
-
-
- )
- }
-}
-
diff --git a/.prev/src/pages/settings/components/security/index.less b/.prev/src/pages/settings/components/security/index.less
deleted file mode 100644
index 6cc5b5c2..00000000
--- a/.prev/src/pages/settings/components/security/index.less
+++ /dev/null
@@ -1,17 +0,0 @@
-@import '~themes/index.less';
-
-.main {
-
- :global {
- h2 {
- font-weight: 500;
- }
-
- .anticon {
- color: #2d2d2d;
-
- }
-
-
- }
-}
\ No newline at end of file
diff --git a/.prev/src/pages/settings/components/security/sessions.js b/.prev/src/pages/settings/components/security/sessions.js
deleted file mode 100644
index 01c168c1..00000000
--- a/.prev/src/pages/settings/components/security/sessions.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-
-export default class Sessions_Manager extends React.Component {
- state = {
- sessions_data: '',
- }
- componentDidMount() {
- ycore.comty_get.session_id((err, res) => {
- this.setState({ sid: res })
- })
- ycore.comty_get.sessions((err, res) => {
- const a = JSON.parse(res)['data']
- this.setState({ sessions_data: a })
- })
- }
- render() {
- return (
-
-
(
-
-
- Session #{item.id}
- {this.state.sid == item.session_id ? 'This Session' : null}
-
- {item.platform}
- {item.ip_address}
- {item.time}
-
-
- )}
- />
-
- )
- }
-}
diff --git a/.prev/src/pages/settings/index.js b/.prev/src/pages/settings/index.js
deleted file mode 100644
index d64a2207..00000000
--- a/.prev/src/pages/settings/index.js
+++ /dev/null
@@ -1,108 +0,0 @@
-import React from 'react'
-import { Menu } from 'antd'
-import * as Icons from '@ant-design/icons'
-import styles from './style.less'
-
-import NotificationView from './components/notification/index.js'
-import SecurityView from './components/security/index.js'
-import Earnings from './components/earnings/index.js'
-
-import Base from './components/base.js'
-import AppAbout from './components/about.js'
-
-const { Item } = Menu
-const menuMap = {
- base: (
-
- General
-
- ),
- sync: (
-
- Sync™
-
- ),
- security: (
-
- Security & Privacity
-
- ),
- notification: (
-
- Notification
-
- ),
- earnings: (
-
- Earnings
-
- ),
- about: (
-
- About
-
- ),
-}
-
-class GeneralSettings extends React.Component {
- constructor(props) {
- super(props)
- this.state = {
- selectKey: 'base',
- }
- }
-
- getMenu = () => {
- return Object.keys(menuMap).map(item => (
- - {menuMap[item]}
- ))
- }
-
- selectKey = key => {
- this.setState({
- selectKey: key,
- })
- }
-
- renderChildren = () => {
- const { selectKey } = this.state
- switch (selectKey) {
- case 'base':
- return
- case 'security':
- return
- case 'notification':
- return
- case 'about':
- return
- case 'earnings':
- return
- default:
- break
- }
- return null
- }
-
- render() {
- const { selectKey } = this.state
- return (
-
-
-
- Settings{' '}
-
- this.selectKey(key)}
- >
- {this.getMenu()}
-
-
-
{this.renderChildren()}
-
- )
- }
-}
-
-export default GeneralSettings
diff --git a/.prev/src/pages/settings/style.less b/.prev/src/pages/settings/style.less
deleted file mode 100644
index 178377a6..00000000
--- a/.prev/src/pages/settings/style.less
+++ /dev/null
@@ -1,77 +0,0 @@
-@import '~themes/index.less';
-
-.main {
- font-family: "Nunito", sans-serif;
- margin: 20px 0 0 0;
- display: flex;
- width: 100%;
- height: 100%;
- overflow: auto;
- color: @__Global_layout_color;
- background-color: #ffffff;
- padding: 15px;
- border-radius: 10px;
-
- .leftMenu {
- width: 224px;
-
- :global {
- .ant-menu-inline {
- color: @__Global_layout_color;
- background-color: transparent;
- border: none;
- }
-
- .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
- font-weight: bold;
- }
- }
- }
-
- .right {
- flex: 1;
- padding-top: 8px;
- padding-right: 40px;
- padding-bottom: 8px;
- padding-left: 40px;
-
- .title {
- margin-bottom: 12px;
- color: @__Global_layout_color;
- font-weight: 500;
- font-size: 20px;
- line-height: 28px;
- }
- }
-
- :global {
- .ant-list-item {
- padding-top: 7px;
- padding-bottom: 7px;
- }
-
- .ant-list-split .ant-list-item {
- border-bottom: 0;
- }
-
- .ant-list-item-meta-title {
- color: rgba(0, 0, 0, 0.733);
- font-size: 14px;
- }
- }
-}
-
-@media screen and (max-width: @screen-md) {
- .main {
- flex-direction: column;
-
- .leftMenu {
- width: 100%;
- border: none;
- }
-
- .right {
- padding: 40px;
- }
- }
-}
diff --git a/.prev/src/themes/antd-design.less b/.prev/src/themes/antd-design.less
deleted file mode 100644
index 370b40aa..00000000
--- a/.prev/src/themes/antd-design.less
+++ /dev/null
@@ -1,839 +0,0 @@
-/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
-@import '../../node_modules/antd/lib/style/themes/default.less';
-
-// -------- Colors -----------
-@primary-color: @blue-6;
-@info-color: @blue-6;
-@success-color: @green-6;
-@processing-color: @blue-6;
-@error-color: @red-6;
-@highlight-color: @red-6;
-@warning-color: @gold-6;
-@normal-color: #d9d9d9;
-@white: #fff;
-@black: #000;
-
-// Color used by default to control hover and active backgrounds and for
-// alert info backgrounds.
-@primary-1: color(~`colorPalette('@{primary-color}', 1) `); // replace tint(@primary-color, 90%)
-@primary-2: color(~`colorPalette('@{primary-color}', 2) `); // replace tint(@primary-color, 80%)
-@primary-3: color(~`colorPalette('@{primary-color}', 3) `); // unused
-@primary-4: color(~`colorPalette('@{primary-color}', 4) `); // unused
-@primary-5: color(~`colorPalette('@{primary-color}', 5) `); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
-@primary-6: @primary-color; // color used to control the text color of active buttons, don't use, use @primary-color
-@primary-7: color(~`colorPalette('@{primary-color}', 7) `); // replace shade(@primary-color, 5%)
-@primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
-@primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
-@primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
-
-// Base Scaffolding Variables
-// ---
-
-// Background color for ``
-@body-background: rgb(249, 249, 249);
-// Base background color for most components
-@component-background: #fff;
-@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
- 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
- 'Segoe UI Emoji', 'Segoe UI Symbol';
-@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
-@text-color: fade(@black, 65%);
-@text-color-secondary: fade(@black, 45%);
-@text-color-inverse: @white;
-@icon-color: inherit;
-@icon-color-hover: fade(@black, 75%);
-@heading-color: fade(#000, 85%);
-@heading-color-dark: fade(@white, 100%);
-@text-color-dark: fade(@white, 85%);
-@text-color-secondary-dark: fade(@white, 65%);
-@text-selection-bg: @primary-color;
-@font-variant-base: tabular-nums;
-@font-feature-settings-base: 'tnum';
-@font-size-base: 14px;
-@font-size-lg: @font-size-base + 2px;
-@font-size-sm: 12px;
-@heading-1-size: ceil(@font-size-base * 2.71);
-@heading-2-size: ceil(@font-size-base * 2.14);
-@heading-3-size: ceil(@font-size-base * 1.71);
-@heading-4-size: ceil(@font-size-base * 1.42);
-@line-height-base: 1.5;
-@border-radius-base: 4px;
-@border-radius-sm: 2px;
-
-// vertical paddings
-@padding-lg: 24px; // containers
-@padding-md: 16px; // small containers and buttons
-@padding-sm: 12px; // Form controls and items
-@padding-xs: 8px; // small items
-
-// vertical padding for all form controls
-@control-padding-horizontal: @padding-sm;
-@control-padding-horizontal-sm: @padding-xs;
-
-// The background colors for active and hover states for things like
-// list items or table cells.
-@item-active-bg: @primary-1;
-@item-hover-bg: @primary-1;
-
-// ICONFONT
-@iconfont-css-prefix: anticon;
-
-// LINK
-@link-color: @primary-color;
-@link-hover-color: color(~`colorPalette('@{link-color}', 5) `);
-@link-active-color: color(~`colorPalette('@{link-color}', 7) `);
-@link-decoration: none;
-@link-hover-decoration: none;
-
-// Animation
-@ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
-@ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
-@ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
-@ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
-@ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
-@ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
-@ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
-@ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
-@ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
-@ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
-@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
-@ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
-@ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
-@ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
-
-// Border color
-@border-color-base: hsv(0, 0, 85%); // base border outline a component
-@border-color-split: hsv(0, 0, 91%); // split border inside a component
-@border-color-inverse: @white;
-@border-width-base: 1px; // width of the border for a component
-@border-style-base: solid; // style of a components border
-
-// Outline
-@outline-blur-size: 0;
-@outline-width: 2px;
-@outline-color: @primary-color;
-
-@background-color-light: hsv(0, 0, 98%); // background of header and selected item
-@background-color-base: hsv(0, 0, 96%); // Default grey background color
-
-// Disabled states
-@disabled-color: fade(#000, 25%);
-@disabled-bg: @background-color-base;
-@disabled-color-dark: fade(#fff, 35%);
-
-// Shadow
-@shadow-color: rgba(0, 0, 0, 0.15);
-@shadow-color-inverse: @component-background;
-@box-shadow-base: @shadow-1-down;
-@shadow-1-up: 0 -2px 8px @shadow-color;
-@shadow-1-down: 0 2px 8px @shadow-color;
-@shadow-1-left: -2px 0 8px @shadow-color;
-@shadow-1-right: 2px 0 8px @shadow-color;
-@shadow-2: 0 4px 12px @shadow-color;
-
-// Buttons
-@btn-font-weight: 400;
-@btn-border-radius-base: @border-radius-base;
-@btn-border-radius-sm: @border-radius-base;
-@btn-border-width: @border-width-base;
-@btn-border-style: @border-style-base;
-@btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
-@btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
-@btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
-
-@btn-primary-color: #fff;
-@btn-primary-bg: @primary-color;
-
-@btn-default-color: @text-color;
-@btn-default-bg: @component-background;
-@btn-default-border: @border-color-base;
-
-@btn-danger-color: #fff;
-@btn-danger-bg: color(~`colorPalette('@{error-color}', 5) `);
-@btn-danger-border: color(~`colorPalette('@{error-color}', 5) `);
-
-@btn-disable-color: @disabled-color;
-@btn-disable-bg: @disabled-bg;
-@btn-disable-border: @border-color-base;
-
-@btn-padding-base: 0 @padding-md - 1px;
-@btn-font-size-lg: @font-size-lg;
-@btn-font-size-sm: @font-size-base;
-@btn-padding-lg: @btn-padding-base;
-@btn-padding-sm: 0 @padding-xs - 1px;
-
-@btn-height-base: 32px;
-@btn-height-lg: 40px;
-@btn-height-sm: 24px;
-
-@btn-circle-size: @btn-height-base;
-@btn-circle-size-lg: @btn-height-lg;
-@btn-circle-size-sm: @btn-height-sm;
-
-@btn-square-size: @btn-height-base;
-@btn-square-size-lg: @btn-height-lg;
-@btn-square-size-sm: @btn-height-sm;
-
-@btn-group-border: @primary-5;
-
-// Checkbox
-@checkbox-size: 16px;
-@checkbox-color: @primary-color;
-@checkbox-check-color: #fff;
-@checkbox-border-width: @border-width-base;
-
-// Descriptions
-@descriptions-bg: #fafafa;
-
-// Dropdown
-@dropdown-selected-color: @primary-color;
-
-// Empty
-@empty-font-size: @font-size-base;
-
-// Radio
-@radio-size: 16px;
-@radio-dot-color: @primary-color;
-
-// Radio buttons
-@radio-button-bg: @btn-default-bg;
-@radio-button-checked-bg: @btn-default-bg;
-@radio-button-color: @btn-default-color;
-@radio-button-hover-color: @primary-5;
-@radio-button-active-color: @primary-7;
-
-// Media queries breakpoints
-// Extra small screen / phone
-@screen-xs: 480px;
-@screen-xs-min: @screen-xs;
-
-// Small screen / tablet
-@screen-sm: 576px;
-@screen-sm-min: @screen-sm;
-
-// Medium screen / desktop
-@screen-md: 768px;
-@screen-md-min: @screen-md;
-
-// Large screen / wide desktop
-@screen-lg: 992px;
-@screen-lg-min: @screen-lg;
-
-// Extra large screen / full hd
-@screen-xl: 1200px;
-@screen-xl-min: @screen-xl;
-
-// Extra extra large screen / large desktop
-@screen-xxl: 1600px;
-@screen-xxl-min: @screen-xxl;
-
-// provide a maximum
-@screen-xs-max: (@screen-sm-min - 1px);
-@screen-sm-max: (@screen-md-min - 1px);
-@screen-md-max: (@screen-lg-min - 1px);
-@screen-lg-max: (@screen-xl-min - 1px);
-@screen-xl-max: (@screen-xxl-min - 1px);
-
-// Grid system
-@grid-columns: 24;
-@grid-gutter-width: 0;
-
-// Layout
-@layout-body-background: #f0f2f5;
-@layout-header-background: #424242;
-@layout-footer-background: @layout-body-background;
-@layout-header-height: 64px;
-@layout-header-padding: 0 50px;
-@layout-footer-padding: 24px 50px;
-@layout-sider-background: @layout-header-background;
-@layout-trigger-height: 48px;
-@layout-trigger-background: #2d2d2d;
-@layout-trigger-color: #fff;
-@layout-zero-trigger-width: 36px;
-@layout-zero-trigger-height: 42px;
-// Layout light theme
-@layout-sider-background-light: #fff;
-@layout-trigger-background-light: #fff;
-@layout-trigger-color-light: @text-color;
-
-// z-index list, order by `z-index`
-@zindex-table-fixed: auto;
-@zindex-affix: 10;
-@zindex-back-top: 10;
-@zindex-badge: 10;
-@zindex-picker-panel: 10;
-@zindex-popup-close: 10;
-@zindex-modal: 1000;
-@zindex-modal-mask: 1000;
-@zindex-message: 1010;
-@zindex-notification: 1010;
-@zindex-popover: 1030;
-@zindex-dropdown: 1050;
-@zindex-picker: 1050;
-@zindex-tooltip: 1060;
-
-// Animation
-@animation-duration-slow: 0.3s; // Modal
-@animation-duration-base: 0.2s;
-@animation-duration-fast: 0.1s; // Tooltip
-
-//CollapsePanel
-@collapse-panel-border-radius: @border-radius-base;
-
-//Dropdown
-@dropdown-vertical-padding: 5px;
-@dropdown-font-size: @font-size-base;
-@dropdown-line-height: 22px;
-
-// Form
-// ---
-@label-required-color: @highlight-color;
-@label-color: @heading-color;
-@form-warning-input-bg: @input-bg;
-@form-item-margin-bottom: 24px;
-@form-item-trailing-colon: true;
-@form-vertical-label-padding: 0 0 8px;
-@form-vertical-label-margin: 0;
-@form-item-label-colon-margin-right: 8px;
-@form-item-label-colon-margin-left: 2px;
-@form-error-input-bg: @input-bg;
-
-// Input
-// ---
-@input-height-base: 32px;
-@input-height-lg: 40px;
-@input-height-sm: 24px;
-@input-padding-horizontal: @control-padding-horizontal - 1px;
-@input-padding-horizontal-base: @input-padding-horizontal;
-@input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
-@input-padding-horizontal-lg: @input-padding-horizontal;
-@input-padding-vertical-base: 4px;
-@input-padding-vertical-sm: 1px;
-@input-padding-vertical-lg: 6px;
-@input-placeholder-color: hsv(0, 0, 75%);
-@input-color: @text-color;
-@input-border-color: @border-color-base;
-@input-bg: @component-background;
-@input-number-handler-active-bg: #f4f4f4;
-@input-number-handler-hover-bg: @primary-5;
-@input-number-handler-bg: @component-background;
-@input-number-handler-border-color: @border-color-base;
-@input-addon-bg: @background-color-light;
-@input-hover-border-color: @primary-5;
-@input-disabled-bg: @disabled-bg;
-@input-outline-offset: 0 0;
-
-// Select
-// ---
-@select-border-color: @border-color-base;
-@select-item-selected-font-weight: 600;
-@select-dropdown-bg: @component-background;
-@select-item-selected-bg: @background-color-light;
-@select-item-active-bg: @item-active-bg;
-
-// Anchor
-// ---
-@anchor-border-color: @border-color-split;
-
-// Tooltip
-// ---
-// Tooltip max width
-@tooltip-max-width: 250px;
-// Tooltip text color
-@tooltip-color: #fff;
-// Tooltip background color
-@tooltip-bg: rgba(0, 0, 0, 0.75);
-// Tooltip arrow width
-@tooltip-arrow-width: 5px;
-// Tooltip distance with trigger
-@tooltip-distance: @tooltip-arrow-width - 1px + 4px;
-// Tooltip arrow color
-@tooltip-arrow-color: @tooltip-bg;
-
-// Popover
-// ---
-// Popover body background color
-@popover-bg: @component-background;
-// Popover text color
-@popover-color: @text-color;
-// Popover maximum width
-@popover-min-width: 177px;
-// Popover arrow width
-@popover-arrow-width: 6px;
-// Popover arrow color
-@popover-arrow-color: @popover-bg;
-// Popover outer arrow width
-// Popover outer arrow color
-@popover-arrow-outer-color: @popover-bg;
-// Popover distance with trigger
-@popover-distance: @popover-arrow-width + 4px;
-
-// Modal
-// --
-@modal-body-padding: 24px;
-@modal-header-bg: @component-background;
-@modal-footer-bg: transparent;
-@modal-footer-border-color-split: @border-color-split;
-@modal-mask-bg: fade(@black, 45%);
-
-// Progress
-// --
-@progress-default-color: @processing-color;
-@progress-remaining-color: @background-color-base;
-@progress-text-color: @text-color;
-@progress-radius: 100px;
-
-// Menu
-// ---
-@menu-inline-toplevel-item-height: 40px;
-@menu-item-height: 40px;
-@menu-collapsed-width: 80px;
-@menu-bg: @component-background;
-@menu-popup-bg: @component-background;
-@menu-item-color: @text-color;
-@menu-highlight-color: @primary-color;
-@menu-item-active-bg: @item-active-bg;
-@menu-item-active-border-width: 3px;
-@menu-item-group-title-color: @text-color-secondary;
-@menu-icon-size: @font-size-base;
-@menu-icon-size-lg: @font-size-lg;
-
-@menu-item-vertical-margin: 4px;
-@menu-item-font-size: @font-size-base;
-@menu-item-boundary-margin: 8px;
-@menu-icon-size: @font-size-base;
-@menu-icon-size-lg: @font-size-lg;
-@menu-dark-selected-item-icon-color: @white;
-@menu-dark-selected-item-text-color: @white;
-@dark-menu-item-hover-bg: transparent;
-
-// dark theme
-@menu-dark-color: @text-color-secondary-dark;
-@menu-dark-bg: #2d2d2d;
-@menu-dark-arrow-color: #fff;
-@menu-dark-submenu-bg: #2d2d2d;
-@menu-dark-highlight-color: #fff;
-@menu-dark-item-active-bg: @primary-color;
-@menu-dark-selected-item-icon-color: @white;
-@menu-dark-selected-item-text-color: @white;
-@menu-dark-item-hover-bg: transparent;
-// Spin
-// ---
-@spin-dot-size-sm: 14px;
-@spin-dot-size: 20px;
-@spin-dot-size-lg: 32px;
-
-// Table
-// --
-@table-header-bg: @background-color-light;
-@table-header-color: @heading-color;
-@table-header-sort-bg: @background-color-base;
-@table-body-sort-bg: rgba(0, 0, 0, 0.01);
-@table-row-hover-bg: @primary-1;
-@table-selected-row-color: inherit;
-@table-selected-row-bg: #fafafa;
-@table-body-selected-sort-bg: @table-selected-row-bg;
-@table-selected-row-hover-bg: @table-selected-row-bg;
-@table-expanded-row-bg: #fbfbfb;
-@table-padding-vertical: 16px;
-@table-padding-horizontal: 16px;
-@table-border-radius-base: @border-radius-base;
-@table-footer-bg: @background-color-light;
-@table-footer-color: @heading-color;
-
-// Tag
-// --
-@tag-default-bg: @background-color-light;
-@tag-default-color: @text-color;
-@tag-font-size: @font-size-sm;
-
-// TimePicker
-// ---
-@time-picker-panel-column-width: 56px;
-@time-picker-panel-width: @time-picker-panel-column-width * 3;
-@time-picker-selected-bg: @background-color-base;
-
-// Carousel
-// ---
-@carousel-dot-width: 16px;
-@carousel-dot-height: 3px;
-@carousel-dot-active-width: 24px;
-
-// Badge
-// ---
-@badge-height: 20px;
-@badge-dot-size: 6px;
-@badge-font-size: @font-size-sm;
-@badge-font-weight: normal;
-@badge-status-size: 6px;
-@badge-text-color: @component-background;
-
-// Rate
-// ---
-@rate-star-color: @yellow-6;
-@rate-star-bg: @border-color-split;
-
-// Card
-// ---
-@card-head-color: @heading-color;
-@card-head-background: transparent;
-@card-head-padding: 16px;
-@card-inner-head-padding: 12px;
-@card-padding-base: 24px;
-@card-actions-background: @background-color-light;
-@card-skeleton-bg: #cfd8dc;
-@card-background: @component-background;
-@card-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
-@card-radius: @border-radius-sm;
-
-// Comment
-// ---
-@comment-padding-base: 16px 0;
-@comment-nest-indent: 44px;
-@comment-font-size-base: @font-size-base;
-@comment-font-size-sm: @font-size-sm;
-@comment-author-name-color: @text-color-secondary;
-@comment-author-time-color: #ccc;
-@comment-action-color: @text-color-secondary;
-@comment-action-hover-color: #595959;
-
-// Tabs
-// ---
-@tabs-card-head-background: @background-color-light;
-@tabs-card-height: 40px;
-@tabs-card-active-color: @primary-color;
-@tabs-title-font-size: @font-size-base;
-@tabs-title-font-size-lg: @font-size-lg;
-@tabs-title-font-size-sm: @font-size-base;
-@tabs-ink-bar-color: @primary-color;
-@tabs-bar-margin: 0 0 16px 0;
-@tabs-horizontal-margin: 0 32px 0 0;
-@tabs-horizontal-padding: 12px 16px;
-@tabs-horizontal-padding-lg: 16px;
-@tabs-horizontal-padding-sm: 8px 16px;
-@tabs-vertical-padding: 8px 24px;
-@tabs-vertical-margin: 0 0 16px 0;
-@tabs-scrolling-size: 32px;
-@tabs-highlight-color: @primary-color;
-@tabs-hover-color: @primary-5;
-@tabs-active-color: @primary-7;
-@tabs-card-gutter: 2px;
-@tabs-card-tab-active-border-top: 2px solid transparent;
-
-// BackTop
-// ---
-@back-top-color: #fff;
-@back-top-bg: @text-color-secondary;
-@back-top-hover-bg: @text-color;
-
-// Avatar
-// ---
-@avatar-size-base: 32px;
-@avatar-size-lg: 40px;
-@avatar-size-sm: 24px;
-@avatar-font-size-base: 18px;
-@avatar-font-size-lg: 24px;
-@avatar-font-size-sm: 14px;
-@avatar-bg: #ccc;
-@avatar-color: #fff;
-@avatar-border-radius: @border-radius-base;
-
-// Switch
-// ---
-@switch-height: 22px;
-@switch-sm-height: 16px;
-@switch-sm-checked-margin-left: -(@switch-sm-height - 3px);
-@switch-disabled-opacity: 0.4;
-@switch-color: @primary-color;
-@switch-shadow-color: fade(#00230b, 20%);
-
-// Pagination
-// ---
-@pagination-item-size: 32px;
-@pagination-item-size-sm: 24px;
-@pagination-font-family: Arial;
-@pagination-font-weight-active: 500;
-@pagination-item-bg-active: @component-background;
-
-// PageHeader
-// ---
-@page-header-padding: 24px;
-@page-header-padding-vertical: 16px;
-@page-header-padding-breadcrumb: 12px;
-@page-header-back-color: #000;
-
-// Breadcrumb
-// ---
-@breadcrumb-base-color: @text-color-secondary;
-@breadcrumb-last-item-color: @text-color;
-@breadcrumb-font-size: @font-size-base;
-@breadcrumb-icon-font-size: @font-size-base;
-@breadcrumb-link-color: @text-color-secondary;
-@breadcrumb-link-color-hover: @primary-5;
-@breadcrumb-separator-color: @text-color-secondary;
-@breadcrumb-separator-margin: 0 @padding-xs;
-
-// Slider
-// ---
-@slider-margin: 14px 6px 10px;
-@slider-rail-background-color: @background-color-base;
-@slider-rail-background-color-hover: #e1e1e1;
-@slider-track-background-color: @primary-3;
-@slider-track-background-color-hover: @primary-4;
-@slider-handle-border-width: 2px;
-@slider-handle-background-color: @component-background;
-@slider-handle-color: @primary-3;
-@slider-handle-color-hover: @primary-4;
-@slider-handle-color-focus: tint(@primary-color, 20%);
-@slider-handle-color-focus-shadow: fade(@primary-color, 20%);
-@slider-handle-color-tooltip-open: @primary-color;
-@slider-handle-shadow: 0;
-@slider-dot-border-color: @border-color-split;
-@slider-dot-border-color-active: tint(@primary-color, 50%);
-@slider-disabled-color: @disabled-color;
-@slider-disabled-background-color: @component-background;
-
-// Tree
-// ---
-@tree-title-height: 24px;
-@tree-child-padding: 18px;
-@tree-directory-selected-color: #fff;
-@tree-directory-selected-bg: @primary-color;
-@tree-node-hover-bg: @item-hover-bg;
-@tree-node-selected-bg: @primary-2;
-
-// Collapse
-// ---
-@collapse-header-padding: 12px 16px;
-@collapse-header-padding-extra: 40px;
-@collapse-header-bg: @background-color-light;
-@collapse-content-padding: @padding-md;
-@collapse-content-bg: @component-background;
-
-// Skeleton
-// ---
-@skeleton-color: #f2f2f2;
-
-// Transfer
-// ---
-@transfer-header-height: 40px;
-@transfer-disabled-bg: @disabled-bg;
-@transfer-list-height: 200px;
-
-// Message
-// ---
-@message-notice-content-padding: 10px 16px;
-
-// Motion
-// ---
-@wave-animation-width: 6px;
-
-// Alert
-// ---
-@alert-success-border-color: ~`colorPalette('@{success-color}', 3) `;
-@alert-success-bg-color: ~`colorPalette('@{success-color}', 1) `;
-@alert-success-icon-color: @success-color;
-@alert-info-border-color: ~`colorPalette('@{info-color}', 3) `;
-@alert-info-bg-color: ~`colorPalette('@{info-color}', 1) `;
-@alert-info-icon-color: @info-color;
-@alert-warning-border-color: ~`colorPalette('@{warning-color}', 3) `;
-@alert-warning-bg-color: ~`colorPalette('@{warning-color}', 1) `;
-@alert-warning-icon-color: @warning-color;
-@alert-error-border-color: ~`colorPalette('@{error-color}', 3) `;
-@alert-error-bg-color: ~`colorPalette('@{error-color}', 1) `;
-@alert-error-icon-color: @error-color;
-
-// List
-// ---
-@list-header-background: transparent;
-@list-footer-background: transparent;
-@list-empty-text-padding: @padding-md;
-@list-item-padding: @padding-sm 0;
-@list-item-meta-margin-bottom: @padding-md;
-@list-item-meta-avatar-margin-right: @padding-md;
-@list-item-meta-title-margin-bottom: @padding-sm;
-
-// Statistic
-// ---
-@statistic-title-font-size: @font-size-base;
-@statistic-content-font-size: 24px;
-@statistic-unit-font-size: 16px;
-@statistic-font-family: @font-family;
-
-// Drawer
-// ---
-@drawer-header-padding: 16px 24px;
-@drawer-body-padding: 24px;
-
-// Timeline
-// ---
-@timeline-width: 2px;
-@timeline-color: @border-color-split;
-@timeline-dot-border-width: 2px;
-@timeline-dot-color: @primary-color;
-@timeline-dot-bg: @component-background;
-
-// Typography
-// ---
-@typography-title-font-weight: 600;
-@typography-title-margin-top: 1.2em;
-@typography-title-margin-bottom: 0.5em;
-
-// color palettes
-@blue-1: color(~`colorPalette('@{blue-6}', 1) `);
-@blue-2: color(~`colorPalette('@{blue-6}', 2) `);
-@blue-3: color(~`colorPalette('@{blue-6}', 3) `);
-@blue-4: color(~`colorPalette('@{blue-6}', 4) `);
-@blue-5: color(~`colorPalette('@{blue-6}', 5) `);
-@blue-6: #1890ff;
-@blue-7: color(~`colorPalette('@{blue-6}', 7) `);
-@blue-8: color(~`colorPalette('@{blue-6}', 8) `);
-@blue-9: color(~`colorPalette('@{blue-6}', 9) `);
-@blue-10: color(~`colorPalette('@{blue-6}', 10) `);
-
-@purple-1: color(~`colorPalette('@{purple-6}', 1) `);
-@purple-2: color(~`colorPalette('@{purple-6}', 2) `);
-@purple-3: color(~`colorPalette('@{purple-6}', 3) `);
-@purple-4: color(~`colorPalette('@{purple-6}', 4) `);
-@purple-5: color(~`colorPalette('@{purple-6}', 5) `);
-@purple-6: #722ed1;
-@purple-7: color(~`colorPalette('@{purple-6}', 7) `);
-@purple-8: color(~`colorPalette('@{purple-6}', 8) `);
-@purple-9: color(~`colorPalette('@{purple-6}', 9) `);
-@purple-10: color(~`colorPalette('@{purple-6}', 10) `);
-
-@cyan-1: color(~`colorPalette('@{cyan-6}', 1) `);
-@cyan-2: color(~`colorPalette('@{cyan-6}', 2) `);
-@cyan-3: color(~`colorPalette('@{cyan-6}', 3) `);
-@cyan-4: color(~`colorPalette('@{cyan-6}', 4) `);
-@cyan-5: color(~`colorPalette('@{cyan-6}', 5) `);
-@cyan-6: #13c2c2;
-@cyan-7: color(~`colorPalette('@{cyan-6}', 7) `);
-@cyan-8: color(~`colorPalette('@{cyan-6}', 8) `);
-@cyan-9: color(~`colorPalette('@{cyan-6}', 9) `);
-@cyan-10: color(~`colorPalette('@{cyan-6}', 10) `);
-
-@green-1: color(~`colorPalette('@{green-6}', 1) `);
-@green-2: color(~`colorPalette('@{green-6}', 2) `);
-@green-3: color(~`colorPalette('@{green-6}', 3) `);
-@green-4: color(~`colorPalette('@{green-6}', 4) `);
-@green-5: color(~`colorPalette('@{green-6}', 5) `);
-@green-6: #52c41a;
-@green-7: color(~`colorPalette('@{green-6}', 7) `);
-@green-8: color(~`colorPalette('@{green-6}', 8) `);
-@green-9: color(~`colorPalette('@{green-6}', 9) `);
-@green-10: color(~`colorPalette('@{green-6}', 10) `);
-
-@magenta-1: color(~`colorPalette('@{magenta-6}', 1) `);
-@magenta-2: color(~`colorPalette('@{magenta-6}', 2) `);
-@magenta-3: color(~`colorPalette('@{magenta-6}', 3) `);
-@magenta-4: color(~`colorPalette('@{magenta-6}', 4) `);
-@magenta-5: color(~`colorPalette('@{magenta-6}', 5) `);
-@magenta-6: #eb2f96;
-@magenta-7: color(~`colorPalette('@{magenta-6}', 7) `);
-@magenta-8: color(~`colorPalette('@{magenta-6}', 8) `);
-@magenta-9: color(~`colorPalette('@{magenta-6}', 9) `);
-@magenta-10: color(~`colorPalette('@{magenta-6}', 10) `);
-
-// alias of magenta
-@pink-1: color(~`colorPalette('@{pink-6}', 1) `);
-@pink-2: color(~`colorPalette('@{pink-6}', 2) `);
-@pink-3: color(~`colorPalette('@{pink-6}', 3) `);
-@pink-4: color(~`colorPalette('@{pink-6}', 4) `);
-@pink-5: color(~`colorPalette('@{pink-6}', 5) `);
-@pink-6: #eb2f96;
-@pink-7: color(~`colorPalette('@{pink-6}', 7) `);
-@pink-8: color(~`colorPalette('@{pink-6}', 8) `);
-@pink-9: color(~`colorPalette('@{pink-6}', 9) `);
-@pink-10: color(~`colorPalette('@{pink-6}', 10) `);
-
-@red-1: color(~`colorPalette('@{red-6}', 1) `);
-@red-2: color(~`colorPalette('@{red-6}', 2) `);
-@red-3: color(~`colorPalette('@{red-6}', 3) `);
-@red-4: color(~`colorPalette('@{red-6}', 4) `);
-@red-5: color(~`colorPalette('@{red-6}', 5) `);
-@red-6: #f5222d;
-@red-7: color(~`colorPalette('@{red-6}', 7) `);
-@red-8: color(~`colorPalette('@{red-6}', 8) `);
-@red-9: color(~`colorPalette('@{red-6}', 9) `);
-@red-10: color(~`colorPalette('@{red-6}', 10) `);
-
-@orange-1: color(~`colorPalette('@{orange-6}', 1) `);
-@orange-2: color(~`colorPalette('@{orange-6}', 2) `);
-@orange-3: color(~`colorPalette('@{orange-6}', 3) `);
-@orange-4: color(~`colorPalette('@{orange-6}', 4) `);
-@orange-5: color(~`colorPalette('@{orange-6}', 5) `);
-@orange-6: #fa8c16;
-@orange-7: color(~`colorPalette('@{orange-6}', 7) `);
-@orange-8: color(~`colorPalette('@{orange-6}', 8) `);
-@orange-9: color(~`colorPalette('@{orange-6}', 9) `);
-@orange-10: color(~`colorPalette('@{orange-6}', 10) `);
-
-@yellow-1: color(~`colorPalette('@{yellow-6}', 1) `);
-@yellow-2: color(~`colorPalette('@{yellow-6}', 2) `);
-@yellow-3: color(~`colorPalette('@{yellow-6}', 3) `);
-@yellow-4: color(~`colorPalette('@{yellow-6}', 4) `);
-@yellow-5: color(~`colorPalette('@{yellow-6}', 5) `);
-@yellow-6: #fadb14;
-@yellow-7: color(~`colorPalette('@{yellow-6}', 7) `);
-@yellow-8: color(~`colorPalette('@{yellow-6}', 8) `);
-@yellow-9: color(~`colorPalette('@{yellow-6}', 9) `);
-@yellow-10: color(~`colorPalette('@{yellow-6}', 10) `);
-
-@volcano-1: color(~`colorPalette('@{volcano-6}', 1) `);
-@volcano-2: color(~`colorPalette('@{volcano-6}', 2) `);
-@volcano-3: color(~`colorPalette('@{volcano-6}', 3) `);
-@volcano-4: color(~`colorPalette('@{volcano-6}', 4) `);
-@volcano-5: color(~`colorPalette('@{volcano-6}', 5) `);
-@volcano-6: #fa541c;
-@volcano-7: color(~`colorPalette('@{volcano-6}', 7) `);
-@volcano-8: color(~`colorPalette('@{volcano-6}', 8) `);
-@volcano-9: color(~`colorPalette('@{volcano-6}', 9) `);
-@volcano-10: color(~`colorPalette('@{volcano-6}', 10) `);
-
-@geekblue-1: color(~`colorPalette('@{geekblue-6}', 1) `);
-@geekblue-2: color(~`colorPalette('@{geekblue-6}', 2) `);
-@geekblue-3: color(~`colorPalette('@{geekblue-6}', 3) `);
-@geekblue-4: color(~`colorPalette('@{geekblue-6}', 4) `);
-@geekblue-5: color(~`colorPalette('@{geekblue-6}', 5) `);
-@geekblue-6: #2f54eb;
-@geekblue-7: color(~`colorPalette('@{geekblue-6}', 7) `);
-@geekblue-8: color(~`colorPalette('@{geekblue-6}', 8) `);
-@geekblue-9: color(~`colorPalette('@{geekblue-6}', 9) `);
-@geekblue-10: color(~`colorPalette('@{geekblue-6}', 10) `);
-
-@lime-1: color(~`colorPalette('@{lime-6}', 1) `);
-@lime-2: color(~`colorPalette('@{lime-6}', 2) `);
-@lime-3: color(~`colorPalette('@{lime-6}', 3) `);
-@lime-4: color(~`colorPalette('@{lime-6}', 4) `);
-@lime-5: color(~`colorPalette('@{lime-6}', 5) `);
-@lime-6: #a0d911;
-@lime-7: color(~`colorPalette('@{lime-6}', 7) `);
-@lime-8: color(~`colorPalette('@{lime-6}', 8) `);
-@lime-9: color(~`colorPalette('@{lime-6}', 9) `);
-@lime-10: color(~`colorPalette('@{lime-6}', 10) `);
-
-@gold-1: color(~`colorPalette('@{gold-6}', 1) `);
-@gold-2: color(~`colorPalette('@{gold-6}', 2) `);
-@gold-3: color(~`colorPalette('@{gold-6}', 3) `);
-@gold-4: color(~`colorPalette('@{gold-6}', 4) `);
-@gold-5: color(~`colorPalette('@{gold-6}', 5) `);
-@gold-6: #faad14;
-@gold-7: color(~`colorPalette('@{gold-6}', 7) `);
-@gold-8: color(~`colorPalette('@{gold-6}', 8) `);
-@gold-9: color(~`colorPalette('@{gold-6}', 9) `);
-@gold-10: color(~`colorPalette('@{gold-6}', 10) `);
-
-@preset-colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime, green, blue, geekblue,
- purple;
-
-
-@border-radius-base: 3px;
-@border-radius-sm: 2px;
-@shadow-color: rgba(0, 0, 0, 0.05);
-@shadow-1-down: 4px 4px 40px @shadow-color;
-@border-color-split: #f4f4f4;
-@border-color-base: #e5e5e5;
-@font-size-base: 13px;
-@text-color: #666;
-@hover-color: #f9f9fc;
diff --git a/.prev/src/themes/base/index.less b/.prev/src/themes/base/index.less
deleted file mode 100644
index 09ea46ff..00000000
--- a/.prev/src/themes/base/index.less
+++ /dev/null
@@ -1,222 +0,0 @@
-@import './resolutions.less';
-
-// FOR LAYOUTS
-@__Global_general_font_family: "Poppins", sans-serif;
-@__Global_layout_backgroud: #F8F6F8;
-@__Global_layout_color: #2d2d2d;
-@__Global_layout_border-rd: 27px 0 0 0;
-@__Global_layout_transitions-dur: 200ms;
-@__Global_Components_transitions_dur: 150ms;
-
-@mamamia: #85858570;
-// FOR SECONDARY
-@__Global_SwapAnimDuration: 170ms;
-
-@transition-ease-in: all 0.3s ease-out;
-@transition-ease-out: all 0.3s ease-out;
-@ease-in: ease-in;
-
-::-webkit-scrollbar {
- position: absolute;
- width: 14px;
- height: 18px;
- }
-::-webkit-scrollbar-thumb {
- height: 6px;
- border: 4px solid rgba(0, 0, 0, 0);
- background-clip: padding-box;
- margin: 0 10px 0 0;
- -webkit-border-radius: 7px;
- background-color: rgba(0, 0, 0, 0.15);
- -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
-}
-::-webkit-scrollbar-button {
- width: 0;
- height: 0;
- display: none;
-}
-::-webkit-scrollbar-corner {
- background-color: transparent;
-}
-
-// Global Documents
-body {
- scroll-behavior: smooth;
- height: 100%;
- // min-width: 430px;
- background-color: transparent;
-
- overflow: hidden;
-
- font-size: @base-font-size;
- line-height: @base-line-height;
-
-}
-
-#root {
- overflow: hidden;
-}
-
-@media (min-width: @bp-medium) {
-
-}
-
-@media (min-width: @bp-large) {
-
-}
-
-@media (min-width: @bp-xlarge) {
- body{
- zoom: 1.4;
- }
-}
-
-@media (min-width: @bp-xxlarge) {
- body{
- zoom: 1.6;
- }
-}
-
-
-// @media (min-width: 770px){
-// >#secondary_layout{
-// width: 0px!important;
-// }
-// }
-// @media (min-width: 1600px) {
-// :global {
-// .ant-col-xl-48 {
-// width: 20%;
-// }
-
-// .ant-col-xl-96 {
-// width: 40%;
-// }
-// }
-// }
-
-// @media (max-width: 767px) {
-// :global {
-// .ant-card {
-// .ant-card-head {
-// padding: 0 12px;
-// }
-
-// .ant-card-body {
-// padding: 12px;
-// }
-// }
-// }
-// }
-
-// // PrimaryLayout
-// @media (max-width: 767px) {
-// .primary_layout_content {
-// padding: 12px;
-// }
-
-// .primary_layout {
-// height: 100vh;
-// flex: 1;
-// }
-// }
-
-// .primary_layout_*
-@primary_layout_backgroud: #2d2d2d;
-
-@primary_layout_container_backgroud: @__Global_layout_backgroud;
-@primary_layout_container_border-rd: @__Global_layout_border-rd;
-
-@primary_layout_content_padding: 35px 25px 15px 40px;
-
-// .secondary_*
-@__secondary_colider_width: 31.2vw;
-@secondary_wrapper_hidden_width: 22vw;
-@secondary_wrapper_showFull_width: 94.2vw;
-@secondary_wrapper_showHalf_width: 35vw;
-@secondary_container_bg_background: #201F23;
-@secondary_container_1_color: #fff;
-@secondary_container_2_color: #201F23;
-@secondary_container_2_backgroud: #fff;
-@secondary_container_1_btn_backgroud: #4c4c4c;
-@secondary_container_1_btn_color: #fff;
-@secondary_container_1_btn_shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.205);
-
-@secondary_container_1_padding: 30px 70px 30px 75px;
-@secondaty_container_2_padding: 20px 15px 15px 15px;
-
-// .left_sider*
-@left_sider_backgroud: #2d2d2d;
-@left_sider_color: #fff;
-@left_sider_sizeIcons: 19px;
-@left_sider_menu__onhover_backgroud: rgb(80, 80, 80);
-@left_sider_menu__onhover_color: #fff;
-
-// .post_card*
-@post_card_general_border-rd: 7px;
-@post_card_wrapper_shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
-@post_card_wrapper_actions_backgroud: rgba(235, 235, 235, 0.815);
-@post_card_wrapper_actions_icon_backgroud: #fff;
-
-@post_card_wrapper_tags_color_default: rgb(249, 179, 64);
-@post_card_wrapper_tags_color_nsfw: #111;
-@post_card_wrapper_tags_color_flag: #111;
-
-@post_card_wrapper_post_content_color: #555555;
-@post_card_wrapper_post_content_weight: 400;
-@post_card_wrapper_post_content_fontSize: 15px;
-@post_card_wrapper_post_content_letterSpacing: -0.3px;
-
-@post_card_flaggedWarning_backgroud: #ffffff60;
-@post_card_flaggedWarning_padding: 20px 15px 25px 15px;
-@post_card_flaggedWarning_iconSize: 40px;
-
-// YulioID
-@canvasColor: #f9f9f9;
-@backgroundColor: #fff;
-@foregroundColor: #111;
-@primaryColor: #373F51;
-@primaryShade1: #ffe2d1;
-@primaryShade2: #ffceb2;
-@primaryShade3: #ffb184;
-@primaryShade4: #e88850;
-@primaryShade5: #d17a48;
-@secondaryColor: #ffcc67;
-@secondaryShade1: #fff1d5;
-@secondaryShade2: #ffde9e;
-@secondaryShade3: #ffd074;
-@secondaryShade4: #e8ba5e;
-@secondaryShade5: #ba954b;
-@accentColor: #4e5166;
-@accentShade1: #cecfd5;
-@accentShade2: #aeafb9;
-@accentShade3: #8e909d;
-@accentShade4: #6e7081;
-@accentShade5: #404354;
-@accent2Color: #588b8b;
-@accent2Shade1: #c2d4d4;
-@accent2Shade2: #a3bfbf;
-@accent2Shade3: #85aaaa;
-@accent2Shade4: #507f7f;
-@accent2Shade5: #497272;
-@accent3Color: #fe5f55;
-@accent3Shade1: #fec4c1;
-@accent3Shade2: #fea7a2;
-@accent3Shade3: #fe7c73;
-@accent3Shade4: #e7574e;
-@accent3Shade5: #b9463e;
-
-@neutralShade0: #f8f8f8;
-@neutralShade1: #f2f2f2;
-@neutralShade2: #e8e9e9;
-@neutralShade3: #d1d3d4;
-@neutralShade4: #babdbf;
-@neutralShade5: #808488;
-@neutralShade6: #666a6d;
-@neutralShade7: #4d5052;
-@neutralShade8: #212122;
-@grayColor: #999;
-@lightGrayColor: #ddd;
-@borderRadius: 6px;
-@boxShadow: 0 2px 5px rgba(#333, 0.2);
-
diff --git a/.prev/src/themes/base/resolutions.less b/.prev/src/themes/base/resolutions.less
deleted file mode 100644
index 4cfa2036..00000000
--- a/.prev/src/themes/base/resolutions.less
+++ /dev/null
@@ -1,20 +0,0 @@
-@bp-small: 48em; // 768px
-@bp-medium: 64em; // 1024px
-@bp-large: 85.375em; // 1366px
-@bp-xlarge: 120em; // 1920px
-@bp-xxlarge: 160em; // 2560px
-
-// Media Queries
-@mq-small: "min-width: @bp-small";
-@mq-medium: "(min-width: @bp-medium)";
-@mq-large: "(min-width: @bp-large)";
-@mq-xlarge: "(min-width: @bp-xlarge)";
-@mq-xxlarge: "(min-width: @bp-xxlarge)";
-@mq-retina: "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";
-
-// Font-Size
-@base-font-size: 1em;
-
-// Line-Height
-@base-line-height: 1.5;
-@header-line-height: 1.25;
\ No newline at end of file
diff --git a/.prev/src/themes/fonts-imports.css b/.prev/src/themes/fonts-imports.css
deleted file mode 100644
index e41bc2c2..00000000
--- a/.prev/src/themes/fonts-imports.css
+++ /dev/null
@@ -1,5 +0,0 @@
-@import url('https://fonts.googleapis.com/css?family=Alata&display=swap');
-@import url('https://fonts.googleapis.com/css?family=Poppins:300,300i,500,500i,700');
-@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');
-@import url('https://fonts.googleapis.com/css?family=Kulim+Park&display=swap');
-@import url('https://fonts.googleapis.com/css?family=Nunito&display=swap');
diff --git a/.prev/src/themes/index.less b/.prev/src/themes/index.less
deleted file mode 100644
index dc6be614..00000000
--- a/.prev/src/themes/index.less
+++ /dev/null
@@ -1,3 +0,0 @@
-@import '~themes/antd-design.less';
-@import '~themes/base/index.less';
-@import (inline) './fonts-imports.css';
\ No newline at end of file
diff --git a/.prev/src/utils/index.js b/.prev/src/utils/index.js
deleted file mode 100644
index fab1069e..00000000
--- a/.prev/src/utils/index.js
+++ /dev/null
@@ -1,247 +0,0 @@
-import { cloneDeep, isString, flow, curry } from 'lodash'
-import umiRouter from 'umi/router'
-import pathToRegexp from 'path-to-regexp'
-import { i18n } from 'config'
-
-export classnames from 'classnames'
-export config from 'config'
-export request from './request'
-export { Color } from './theme'
-
-export const { defaultLanguage } = i18n
-export const languages = i18n.languages.map(item => item.key)
-
-/**
- * Query objects that specify keys and values in an array where all values are objects.
- * @param {array} array An array where all values are objects, like [{key:1},{key:2}].
- * @param {string} key The key of the object that needs to be queried.
- * @param {string} value The value of the object that needs to be queried.
- * @return {object|undefined} Return frist object when query success.
- */
-export function queryArray(array, key, value) {
- if (!Array.isArray(array)) {
- return
- }
- return array.find(_ => _[key] === value)
-}
-
-/**
- * Convert an array to a tree-structured array.
- * @param {array} array The Array need to Converted.
- * @param {string} id The alias of the unique ID of the object in the array.
- * @param {string} parentId The alias of the parent ID of the object in the array.
- * @param {string} children The alias of children of the object in the array.
- * @return {array} Return a tree-structured array.
- */
-export function arrayToTree(
- array,
- id = 'id',
- parentId = 'pid',
- children = 'children'
-) {
- const result = []
- const hash = {}
- const data = cloneDeep(array)
-
- data.forEach((item, index) => {
- hash[data[index][id]] = data[index]
- })
-
- data.forEach(item => {
- const hashParent = hash[item[parentId]]
- if (hashParent) {
- !hashParent[children] && (hashParent[children] = [])
- hashParent[children].push(item)
- } else {
- result.push(item)
- }
- })
- return result
-}
-
-export const langFromPath = curry(
- /**
- * Query language from pathname.
- * @param {array} languages Specify which languages are currently available.
- * @param {string} defaultLanguage Specify the default language.
- * @param {string} pathname Pathname to be queried.
- * @return {string} Return the queryed language.
- */
- (languages, defaultLanguage, pathname) => {
- for (const item of languages) {
- if (pathname.startsWith(`/${item}/`)) {
- return item
- }
- }
- return defaultLanguage
- }
-)(languages)(defaultLanguage)
-
-export const deLangPrefix = curry(
- /**
- * Remove the language prefix in pathname.
- * @param {array} languages Specify which languages are currently available.
- * @param {string} pathname Remove the language prefix in the pathname.
- * @return {string} Return the pathname after removing the language prefix.
- */
- (languages, pathname) => {
- if (!pathname) {
- return
- }
- for (const item of languages) {
- if (pathname.startsWith(`/${item}/`)) {
- return pathname.replace(`/${item}/`, '/')
- }
- }
-
- return pathname
- }
-)(languages)
-
-/**
- * Add the language prefix in pathname.
- * @param {string} pathname Add the language prefix in the pathname.
- * @return {string} Return the pathname after adding the language prefix.
- */
-export function addLangPrefix(pathname) {
- const prefix = langFromPath(window.location.pathname)
- return `/${prefix}${deLangPrefix(pathname)}`
-}
-
-const routerAddLangPrefix = params => {
- if (isString(params)) {
- params = addLangPrefix(params)
- } else {
- params.pathname = addLangPrefix(params.pathname)
- }
- return params
-}
-
-/**
- * Adjust the router to automatically add the current language prefix before the pathname in push and replace.
- */
-const myRouter = { ...umiRouter }
-
-myRouter.push = flow(routerAddLangPrefix, umiRouter.push)
-
-myRouter.replace = flow(routerAddLangPrefix, myRouter.replace)
-
-export const router = myRouter
-
-/**
- * Whether the path matches the regexp if the language prefix is ignored, https://github.com/pillarjs/path-to-regexp.
- * @param {string|regexp|array} regexp Specify a string, array of strings, or a regular expression.
- * @param {string} pathname Specify the pathname to match.
- * @return {array|null} Return the result of the match or null.
- */
-export function pathMatchRegexp(regexp, pathname) {
- return pathToRegexp(regexp).exec(deLangPrefix(pathname))
-}
-
-/**
- * In an array object, traverse all parent IDs based on the value of an object.
- * @param {array} array The Array need to Converted.
- * @param {string} current Specify the value of the object that needs to be queried.
- * @param {string} parentId The alias of the parent ID of the object in the array.
- * @param {string} id The alias of the unique ID of the object in the array.
- * @return {array} Return a key array.
- */
-export function queryPathKeys(array, current, parentId, id = 'id') {
- const result = [current]
- const hashMap = new Map()
- array.forEach(item => hashMap.set(item[id], item))
-
- const getPath = current => {
- const currentParentId = hashMap.get(current)[parentId]
- if (currentParentId) {
- result.push(currentParentId)
- getPath(currentParentId)
- }
- }
-
- getPath(current)
- return result
-}
-
-/**
- * In an array of objects, specify an object that traverses the objects whose parent ID matches.
- * @param {array} array The Array need to Converted.
- * @param {string} current Specify the object that needs to be queried.
- * @param {string} parentId The alias of the parent ID of the object in the array.
- * @param {string} id The alias of the unique ID of the object in the array.
- * @return {array} Return a key array.
- */
-export function queryAncestors(array, current, parentId, id = 'id') {
- const result = [current]
- const hashMap = new Map()
- array.forEach(item => hashMap.set(item[id], item))
-
- const getPath = current => {
- const currentParentId = hashMap.get(current[id])[parentId]
- if (currentParentId) {
- result.push(hashMap.get(currentParentId))
- getPath(hashMap.get(currentParentId))
- }
- }
-
- getPath(current)
- return result
-}
-
-/**
- * Query which layout should be used for the current path based on the configuration.
- * @param {layouts} layouts Layout configuration.
- * @param {pathname} pathname Path name to be queried.
- * @return {string} Return frist object when query success.
- */
-export function queryLayout(layouts, pathname) {
- let result = 'public'
-
- const isMatch = regepx => {
- return regepx instanceof RegExp
- ? regepx.test(pathname)
- : pathMatchRegexp(regepx, pathname)
- }
-
- for (const item of layouts) {
- let include = false
- let exclude = false
- if (item.include) {
- for (const regepx of item.include) {
- if (isMatch(regepx)) {
- include = true
- break
- }
- }
- }
-
- if (include && item.exclude) {
- for (const regepx of item.exclude) {
- if (isMatch(regepx)) {
- exclude = true
- break
- }
- }
- }
-
- if (include && !exclude) {
- result = item.name
- break
- }
- }
-
- return result
-}
-
-export function getLocale() {
- return langFromPath(window.location.pathname)
-}
-
-export function setLocale(language) {
- if (getLocale() !== language) {
- umiRouter.push({
- pathname: `/${language}${deLangPrefix(window.location.pathname)}`,
- search: window.location.search,
- })
- }
-}
diff --git a/.prev/src/utils/model.js b/.prev/src/utils/model.js
deleted file mode 100644
index 6bc8b9ba..00000000
--- a/.prev/src/utils/model.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import modelExtend from 'dva-model-extend'
-
-export const model = {
- reducers: {
- updateState(state, { payload }) {
- return {
- ...state,
- ...payload,
- }
- },
- },
-}
-
-export const pageModel = modelExtend(model, {
- state: {
- list: [],
- pagination: {
- showSizeChanger: true,
- showQuickJumper: true,
- current: 1,
- total: 0,
- pageSize: 10,
- },
- },
-
- reducers: {
- querySuccess(state, { payload }) {
- const { list, pagination } = payload
- return {
- ...state,
- list,
- pagination: {
- ...state.pagination,
- ...pagination,
- },
- }
- },
- },
-})
diff --git a/.prev/src/utils/request.js b/.prev/src/utils/request.js
deleted file mode 100644
index bad2dac5..00000000
--- a/.prev/src/utils/request.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import axios from 'axios'
-import { cloneDeep, isEmpty } from 'lodash'
-import pathToRegexp from 'path-to-regexp'
-import { message } from 'antd'
-import qs from 'qs'
-
-const { CancelToken } = axios
-window.cancelRequest = new Map()
-
-export default function request(options) {
- let { data, url, method = 'get' } = options
- const cloneData = cloneDeep(data)
-
- try {
- let domain = ''
- const urlMatch = url.match(/[a-zA-z]+:\/\/[^/]*/)
- if (urlMatch) {
- ;[domain] = urlMatch
- url = url.slice(domain.length)
- }
-
- const match = pathToRegexp.parse(url)
- url = pathToRegexp.compile(url)(data)
-
- for (const item of match) {
- if (item instanceof Object && item.name in cloneData) {
- delete cloneData[item.name]
- }
- }
- url = domain + url
- } catch (e) {
- message.error(e.message)
- }
-
- options.url =
- method.toLocaleLowerCase() === 'get'
- ? `${url}${isEmpty(cloneData) ? '' : '?'}${qs.stringify(cloneData)}`
- : url
-
- options.cancelToken = new CancelToken(cancel => {
- window.cancelRequest.set(Symbol(Date.now()), {
- pathname: window.location.pathname,
- cancel,
- })
- })
-
- return axios(options)
- .then(response => {
- const { statusText, status, data } = response
-
- let result = {}
- if (typeof data === 'object') {
- result = data
- if (Array.isArray(data)) {
- result.list = data
- }
- } else {
- result.data = data
- }
-
- return Promise.resolve({
- success: true,
- message: statusText,
- statusCode: status,
- ...result,
- })
- })
- .catch(error => {
- const { response, message } = error
-
- if (String(message) === 'Canceling...') {
- return {
- success: false,
- }
- }
-
- let msg
- let statusCode
-
- if (response && response instanceof Object) {
- const { data, statusText } = response
- statusCode = response.status
- msg = data.message || statusText
- } else {
- statusCode = 600
- msg = error.message || 'Network Error'
- }
-
- /* eslint-disable */
- return Promise.reject({
- success: false,
- statusCode,
- message: msg,
- })
- })
-}
diff --git a/.prev/src/utils/theme.js b/.prev/src/utils/theme.js
deleted file mode 100644
index 0a610df4..00000000
--- a/.prev/src/utils/theme.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- Color: {
- green: '#64ea91',
- blue: '#8fc9fb',
- purple: '#d897eb',
- red: '#f69899',
- yellow: '#f8c82e',
- peach: '#f797d6',
- borderBase: '#e5e5e5',
- borderSplit: '#f4f4f4',
- grass: '#d6fbb5',
- sky: '#c1e0fc',
- },
-}
diff --git a/.umirc.js b/.umirc.js
index e081b1e4..bd7ec135 100755
--- a/.umirc.js
+++ b/.umirc.js
@@ -64,7 +64,7 @@ export default {
theme: './config/theme.config.js',
// Webpack Configuration
alias: {
- ycore: resolve(__dirname, './src/@ycore/ycore_worker.js'),
+ app: resolve(__dirname, './src/@app/app.js'),
globals: resolve(__dirname, './globals'),
components: resolve(__dirname, './src/components'),
config: resolve(__dirname, './config/ycore.config.js'),
diff --git a/.ycorerc.js b/.ycorerc.js
new file mode 100644
index 00000000..e3059c50
--- /dev/null
+++ b/.ycorerc.js
@@ -0,0 +1,3 @@
+module.exports = {
+ nigga: 'JeJe So FUny'
+}
\ No newline at end of file
diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index 50300f36..00000000
Binary files a/dist.zip and /dev/null differ
diff --git a/globals/endpoints/comty_endpoints.js b/globals/endpoints/comty_endpoints.js
index a30ab6e0..f6a06e31 100755
--- a/globals/endpoints/comty_endpoints.js
+++ b/globals/endpoints/comty_endpoints.js
@@ -1,23 +1,6 @@
module.exports={
+ // !!! Deprecated for the new model => v0.4.06 (up)
comty_endpoints: {
- comments_actions: "https://api.ragestudio.net/RSA-COMTY/r/comments?access_token=",
- get_post_data: "https://api.ragestudio.net/RSA-COMTY/r/get-post-data?access_token=",
- get_user_tags: "https://api.ragestudio.net/RSA-COMTY/r/user_tags?access_token=",
- get_general_data: "https://api.ragestudio.net/RSA-COMTY/r/get-general-data?access_token=",
- follow_user: "https://api.ragestudio.net/RSA-COMTY/r/follow-user?access_token=",
- action_post: "https://api.ragestudio.net/RSA-COMTY/r/post-actions?access_token=",
- get_posts: "https://api.ragestudio.net/RSA-COMTY/r/posts?access_token=",
- find_user: "https://api.ragestudio.net/RSA-COMTY/r/find_user?access_token=",
- search_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/search?access_token=",
- all_sessions: "https://api.ragestudio.net/RSA-COMTY/r/sessions?access_token=",
- get_sessions: "https://api.ragestudio.net/RSA-COMTY/r/session_id?access_token=",
- auth_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/auth",
- new_post: "https://comty.pw/api/new_post?access_token=",
- get_config_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-site-settings?access_token=",
- get_userData: "https://api.ragestudio.net/RSA-COMTY/r/get-user-data?access_token=",
- update_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/update-user-data?access_token=",
- removeToken: "https://api.ragestudio.net/RSA-COMTY/r/delete-access-token?access_token=",
- register_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/create-account",
- resetPassword_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/send-reset-password-email?access_token=",
+ new_post: "https://comty.pw/api/new_post",
}
}
\ No newline at end of file
diff --git a/package.json b/package.json
index 0be3870a..cc8b74bb 100755
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"UUID": "C8mVSr-4nmPp2-pr5Vrz-CU4kg4",
"title": "Comty™",
"DevBuild": true,
- "version": "0.4.03",
+ "version": "0.4.06",
"stage": "dev-pre",
"description": "",
"author": "RageStudio",
@@ -20,7 +20,7 @@
"dva-model-extend": "^0.1.2",
"enquire-js": "^0.2.1",
"express": "^4.17.1",
- "interact.js": "^1.2.8",
+ "feather-reactjs": "^2.0.9",
"interactjs": "^1.9.9",
"jquery": "^3.4.1",
"jsonwebtoken": "^8.5.1",
@@ -53,7 +53,8 @@
"ts-cookies": "^1.0.0",
"umi": "^2.13.12",
"umi-plugin-react": "^1.15.7",
- "validator": "^12.2.0"
+ "validator": "^12.2.0",
+ "ycorejs": "^0.1.1"
},
"devDependencies": {
"@capacitor/android": "^1.5.2",
diff --git a/src/@ycore/ycore_worker.js b/src/@app/app.js
old mode 100755
new mode 100644
similarity index 99%
rename from src/@ycore/ycore_worker.js
rename to src/@app/app.js
index 6d7c8853..858cdae0
--- a/src/@ycore/ycore_worker.js
+++ b/src/@app/app.js
@@ -4,9 +4,7 @@
* @author rStudio© 2020
* @license Pending...
*/
-
import * as Endpoints from 'globals/endpoints/index.js'
-import io from 'socket.io-client'
import * as Icons from '@ant-design/icons'
import localforage from 'localforage'
import { format } from 'timeago.js'
diff --git a/src/@app/flags.js b/src/@app/flags.js
new file mode 100644
index 00000000..b3083de3
--- /dev/null
+++ b/src/@app/flags.js
@@ -0,0 +1,33 @@
+// ERROR FLAGS CODES
+const flags = {
+ CRITICAL_ERROR: 1000,
+ EXCEPTION_ERROR: 1010,
+ WARNING_ERROR: 1020,
+
+ API_FAIL: 100,
+ API_BADRESPONSE: 110,
+ API_BADCREDENTIAL: 120,
+}
+
+function flag_handle(flag, ...pass){
+ if (!flag) return false
+ switch (flag) {
+ case flags.CRITICAL_ERROR:
+ const CRITICAL_ERROR = `${flags.CRITICAL_ERROR} | ${JSON.stringify(...pass)}`
+ console.error(CRITICAL_ERROR)
+ throw new Error(CRITICAL_ERROR)
+ case flags.EXCEPTION_ERROR:
+ const EXCEPTION_ERROR = `${flags.EXCEPTION_ERROR} | ${JSON.stringify(...pass)}`
+ console.warn(EXCEPTION_ERROR)
+ return
+ case flags.WARNING_ERROR:
+ const WARNING_ERROR = `${flags.WARNING_ERROR} | ${JSON.stringify(...pass)}`
+ console.warn(WARNING_ERROR)
+ return
+ default:
+ break;
+ }
+}
+
+module.exports.flags = flags
+module.exports.flags_handle = flag_handle
\ No newline at end of file
diff --git a/src/@app/libs.js b/src/@app/libs.js
new file mode 100644
index 00000000..36442218
--- /dev/null
+++ b/src/@app/libs.js
@@ -0,0 +1,5 @@
+// List of modules used for this app
+export * from './libs/comty_ng/pre.js';
+export * from './libs/yulio_id/pre.js';
+export * from './libs/app_functions/pre.js';
+export * from './libs/api_call/pre.js';
\ No newline at end of file
diff --git a/src/@ycore/libs/rs_cloud/api_call.js b/src/@app/libs/api_call/api_call.js
old mode 100755
new mode 100644
similarity index 61%
rename from src/@ycore/libs/rs_cloud/api_call.js
rename to src/@app/libs/api_call/api_call.js
index 41844f7a..feb85c14
--- a/src/@ycore/libs/rs_cloud/api_call.js
+++ b/src/@app/libs/api_call/api_call.js
@@ -1,16 +1,15 @@
import jquery from 'jquery'
-import * as ycore from 'ycore'
+import * as app from 'app'
export function API_Call(callback, endpoint, payload, options, __token) {
var prefix = `[API_Call] `
if (!endpoint) return false
if (!payload) {
- ycore.yconsole.log(prefix, 'Calling api without Payload!!!')
+ app.yconsole.log(prefix, 'Calling api without Payload!!!')
}
let payloadContainer = payload ? payload : new FormData()
- payloadContainer.append('server_key', ycore.__server.getKey())
+ payloadContainer.append('server_key', app.__server.getKey())
- const autoIncludeToken = endpoint.includes('?access_token=')
const defaultOptions = {
method: 'POST',
@@ -18,7 +17,7 @@ export function API_Call(callback, endpoint, payload, options, __token) {
processData: false,
includeUserID: false,
override__token: false,
- disabledToken: autoIncludeToken ? false : true,
+ disabledToken: false,
}
let fendpoint
@@ -33,31 +32,31 @@ export function API_Call(callback, endpoint, payload, options, __token) {
options.method ? (method = options.method) : null
options.timeout ? (timeout = options.timeout) : null
options.processData ? (processData = true) : null
- options.includeUserID ? (includeUserID = true) : null
- options.override__token ? (override__token = true) : null
- options.disabledToken ? (disabledToken = true) : null
+ options.includeUserID ? (includeUserID = options.includeUserID) : null
+ options.override__token ? (override__token = options.override__token) : null
+ options.disabledToken ? (disabledToken = options.disabledToken) : null
}
if (disabledToken) {
- ycore.yconsole.log(`${prefix} Dimmissing the token generation`)
+ app.yconsole.log(`${prefix} Dimmissing the token generation`)
fendpoint = `${endpoint}`
}
if (!disabledToken && !override__token) {
- fendpoint = `${endpoint}${ycore.token_data.__token()}`
+ fendpoint = `${endpoint}?access_token=${app.token_data.__token()}`
}
if (override__token || __token) {
if (!__token) {
- ycore.yconsole.log(`${prefix} Missing Overriding __token`)
+ app.yconsole.log(`${prefix} Missing Overriding __token`)
return
}
- ycore.yconsole.log(`${prefix} Overriding __token => ${__token}`)
- fendpoint = `${endpoint}${__token}`
+ app.yconsole.log(`${prefix} Overriding __token => ${__token}`)
+ fendpoint = `${endpoint}?access_token=${__token}`
}
if (includeUserID) {
- payloadContainer.append('user_id', ycore.token_data.__id())
+ payloadContainer.append('user_id', app.token_data.__id())
}
const requestOptions = {
@@ -76,20 +75,20 @@ export function API_Call(callback, endpoint, payload, options, __token) {
try {
const a = JSON.parse(response)['api_status']
if (a == '404') {
- ycore.Alive_API.tokenError(response)
+ app.api_err.tokenError(response)
}
} catch (error) {
- ycore.yconsole.log(
+ app.yconsole.log(
'[VIOLATION] The status of the request has not been identified!'
)
- ycore.Alive_API.violation()
+ app.api_err.violation()
}
- ycore.yconsole.log(response)
+ app.yconsole.debug(response)
return callback(false, response)
})
.fail(error => {
- ycore.yconsole.log(`${prefix} (ERROR) `, error)
- ycore.Alive_API.fail(error)
+ app.yconsole.debug(`${prefix} (ERROR) `, error)
+ app.api_err.fail(error)
return callback(true, error)
})
}
diff --git a/src/@app/libs/api_call/pre.js b/src/@app/libs/api_call/pre.js
new file mode 100644
index 00000000..37910210
--- /dev/null
+++ b/src/@app/libs/api_call/pre.js
@@ -0,0 +1,34 @@
+import * as app from 'app'
+export * from './api_call.js'
+import keys from '../../../../config/keys.js'
+
+export const api_err = {
+ fail: a => {
+ if (a) {
+ app.yconsole.log(a)
+ app.notify.error(a)
+ }
+ },
+ tokenError: a => {
+ app.notify.expire(
+ 'It seems that your token has expired or no longer exists'
+ )
+ app.router.go('login')
+ },
+ violation: a => {
+ app.notify.expire(
+ 'It seems that there has been a problem with your token, we need you to log in again.'
+ )
+ app.router.go('login')
+ },
+}
+
+export const __server = {
+ getKey: () => {
+ return keys.server_key
+ },
+}
+
+export function gen_endpoint(endpoint) {
+ return `${app.AppSettings.__global_server_prexif}${endpoint}`
+}
diff --git a/src/@ycore/libs/app_functions/modals.js b/src/@app/libs/app_functions/modals.js
old mode 100755
new mode 100644
similarity index 91%
rename from src/@ycore/libs/app_functions/modals.js
rename to src/@app/libs/app_functions/modals.js
index 4ee4be38..b0ee14ab
--- a/src/@ycore/libs/app_functions/modals.js
+++ b/src/@app/libs/app_functions/modals.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as ycore from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import styles from './modals.less';
@@ -14,17 +14,17 @@ class __Model_postreport extends React.PureComponent {
end(){
if(this.props.id){
const payload = { post_id: this.props.id }
- ycore.comty_post.__report((err, res) => {
+ app.comty_post.__report((err, res) => {
if (err) {
return false
}
- ycore.notify.info('This post has been reported successfully, our team will review it and inform you about problem resolution ...')
- ycore.FeedHandler.refresh()
- ycore.FeedHandler.goToElement(this.props.id)
+ app.notify.info('This post has been reported successfully, our team will review it and inform you about problem resolution ...')
+ app.FeedHandler.refresh()
+ app.FeedHandler.goToElement(this.props.id)
}, payload)
}
setTimeout(() => {
- ycore.SecondarySwap.close()
+ app.SecondarySwap.close()
}, 500)
}
@@ -116,7 +116,7 @@ export const app_modals = {
icon: ,
content: 'It seems that you want to report this post, first of all it is necessary that you take into account that this tool is only intended for serious cases and we need you to comply with some questions to be able to report this post and to guarantee the quality of service ...',
onOk() {
- return ycore.SecondarySwap.openFragment(<__Model_postreport id={post_id} />)
+ return app.SecondarySwap.openFragment(<__Model_postreport id={post_id} />)
},
onCancel() {
return false
diff --git a/.prev/src/@ycore/libs/app_functions/modals.less b/src/@app/libs/app_functions/modals.less
similarity index 100%
rename from .prev/src/@ycore/libs/app_functions/modals.less
rename to src/@app/libs/app_functions/modals.less
diff --git a/src/@ycore/libs/app_functions/pre.js b/src/@app/libs/app_functions/pre.js
old mode 100755
new mode 100644
similarity index 83%
rename from src/@ycore/libs/app_functions/pre.js
rename to src/@app/libs/app_functions/pre.js
index 489ed735..721d562b
--- a/src/@ycore/libs/app_functions/pre.js
+++ b/src/@app/libs/app_functions/pre.js
@@ -3,7 +3,7 @@ import { transitionToogle } from '../../../pages/login'
import { SetControls, CloseControls } from '../../../components/Layout/Control'
import { SwapMode } from '../../../components/Layout/Secondary'
import umiRouter from 'umi/router'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import React from 'react'
@@ -14,13 +14,13 @@ export {SwapMode}
export function SetupApp() {
// TODO: Default sets
- ycore.notify.success('Authorised, please wait...')
+ app.notify.success('Authorised, please wait...')
const resourceLoad = localStorage.getItem('resource_bundle')
if (!resourceLoad) {
localStorage.setItem('resource_bundle', 'light_ng')
}
setTimeout(() => {
- ycore.router.push('main')
+ app.router.push('main')
}, 500)
}
@@ -99,7 +99,7 @@ export const router = {
goprofile: () => {
goTo.element('primaryContent')
umiRouter.push({
- pathname: `/@${ycore.userData().username}`,
+ pathname: `/@${app.userData().username}`,
search: window.location.search,
})
}
@@ -135,7 +135,7 @@ export const app_session = {
let password = atob(EncPassword)
const containerpayload = { username, password }
- ycore.__rscloud.yulio_id.auth((err, res) => {
+ app.yulio_id.auth((err, res) => {
if (err) {
return false
}
@@ -146,21 +146,21 @@ export const app_session = {
const UserToken = JSON.parse(res)['access_token']
const preframepayload = { user_token: UserToken, user_id: UserID}
- ycore.__rscloud.sdcp_cloud.get(
+ app.yulio_id.getData(
(err, res) => {
if (err) {
return false
}
let framepayload = { token: { UserID, UserToken }, sdcp: res }
- ycore.yconsole.log('FRAME ', framepayload)
+ app.yconsole.log('FRAME ', framepayload)
- ycore.__CTID_GEN((err, res) => {
+ app.__CTID_GEN((err, res) => {
if (err) {
- ycore.notify.error('Critical error, token declined!')
+ app.notify.error('Critical error, token declined!')
return false
}
- ycore._app.setup()
+ app._app.setup()
callback(null, '200')
}, framepayload)
},
@@ -173,18 +173,18 @@ export const app_session = {
} catch (error) {
console.log(error)
callback(true, '500')
- ycore.notify.error('Server bad response')
+ app.notify.error('Server bad response')
}
}, containerpayload)
},
logout: () => {
- ycore.__rscloud.yulio_id.logout((err, res) => {
+ app.yulio_id.logout((err, res) => {
if (err) {
return false
}
console.log(res)
const api_state = JSON.parse(res)['api_status']
- ycore.yconsole.log(`Exit with => ${api_state}`)
+ app.yconsole.log(`Exit with => ${api_state}`)
if (api_state == '404') {
antd.notification.open({
placement: 'topLeft',
@@ -193,13 +193,14 @@ export const app_session = {
'It seems that your token has been removed unexpectedly and could not log out from YulioID ',
icon: ,
})
- ycore.yconsole.log('Failed logout with YulioID™', res)
+ app.yconsole.log('Failed logout with YulioID™', res)
} else {
- ycore.yconsole.log('Successful logout with YulioID™', res)
+ app.yconsole.log('Successful logout with YulioID™', res)
}
// Runtime after dispatch API
- ycore.token_data.remove()
- ycore.router.push('login')
+ app.token_data.remove()
+ app.router.push('login')
})
},
}
+
diff --git a/src/@ycore/libs/comty_ng/comty_get.js b/src/@app/libs/comty_ng/comty_data.js
old mode 100755
new mode 100644
similarity index 85%
rename from src/@ycore/libs/comty_ng/comty_get.js
rename to src/@app/libs/comty_ng/comty_data.js
index 39a02b76..93524849
--- a/src/@ycore/libs/comty_ng/comty_get.js
+++ b/src/@app/libs/comty_ng/comty_data.js
@@ -1,6 +1,6 @@
-import { API_Call, endpoints, sdcp } from 'ycore'
+import { API_Call, gen_endpoint } from 'app'
-export const comty_get = {
+export const comty_data = {
sessions: (callback) => {
let formdata = new FormData()
formdata.append('type', 'get')
@@ -9,7 +9,7 @@ export const comty_get = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.all_sessions,
+ gen_endpoint("sessions"),
formdata
)
},
@@ -26,7 +26,7 @@ export const comty_get = {
return callback(err, '0x0000')
}
},
- endpoints.comty_endpoints.get_sessions,
+ gen_endpoint("session_id"),
formdata)
},
session: (callback) => {
@@ -36,7 +36,7 @@ export const comty_get = {
API_Call((err,res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_sessions,
+ gen_endpoint("session_id"),
formdata)
},
general_data: (callback, payload) => {
@@ -57,7 +57,7 @@ export const comty_get = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_general_data,
+ gen_endpoint("get-general-data"),
formdata, callOptions
)
@@ -80,7 +80,7 @@ export const comty_get = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_userData,
+ gen_endpoint('get-user-data'),
formdata, callOptions
)
}
diff --git a/src/@ycore/libs/comty_ng/comty_post.js b/src/@app/libs/comty_ng/comty_post.js
old mode 100755
new mode 100644
similarity index 90%
rename from src/@ycore/libs/comty_ng/comty_post.js
rename to src/@app/libs/comty_ng/comty_post.js
index 43096193..23c284ee
--- a/src/@ycore/libs/comty_ng/comty_post.js
+++ b/src/@app/libs/comty_ng/comty_post.js
@@ -1,4 +1,4 @@
-import { API_Call, endpoints, AppSettings, yconsole } from 'ycore'
+import { API_Call, endpoints, AppSettings, yconsole, gen_endpoint} from 'app'
export const comty_post = {
getFeed: (callback, payload) => {
@@ -26,7 +26,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_posts,
+ gen_endpoint("posts"),
formdata
)
},
@@ -47,7 +47,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_post_data,
+ gen_endpoint("get-post-data"),
formdata
)
},
@@ -68,6 +68,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
+ // UNIQUE API !!!
endpoints.comty_endpoints.new_post,
formdata,
callOptions
@@ -87,7 +88,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
@@ -105,7 +106,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
@@ -123,7 +124,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
@@ -152,7 +153,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_posts,
+ gen_endpoint("posts"),
formdata
)
},
@@ -172,7 +173,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
@@ -190,7 +191,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
@@ -208,7 +209,7 @@ export const comty_post = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
diff --git a/.prev/src/@ycore/libs/comty_ng/comty_post_comment.js b/src/@app/libs/comty_ng/comty_post_comment.js
similarity index 84%
rename from .prev/src/@ycore/libs/comty_ng/comty_post_comment.js
rename to src/@app/libs/comty_ng/comty_post_comment.js
index 3e21a5a9..6d8193c5 100644
--- a/.prev/src/@ycore/libs/comty_ng/comty_post_comment.js
+++ b/src/@app/libs/comty_ng/comty_post_comment.js
@@ -1,4 +1,4 @@
-import { API_Call, endpoints } from 'ycore'
+import { API_Call, gen_endpoint } from 'app'
export const comty_post_comment = {
delete: (callback, payload) => {
@@ -15,7 +15,7 @@ export const comty_post_comment = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.comments_actions,
+ gen_endpoint("comments"),
formdata
)
},
@@ -34,7 +34,7 @@ export const comty_post_comment = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.action_post,
+ gen_endpoint("post-actions"),
formdata
)
},
diff --git a/src/@ycore/libs/comty_ng/comty_search.js b/src/@app/libs/comty_ng/comty_search.js
old mode 100755
new mode 100644
similarity index 80%
rename from src/@ycore/libs/comty_ng/comty_search.js
rename to src/@app/libs/comty_ng/comty_search.js
index fe9da074..bc4ada32
--- a/src/@ycore/libs/comty_ng/comty_search.js
+++ b/src/@app/libs/comty_ng/comty_search.js
@@ -1,4 +1,4 @@
-import { API_Call, endpoints } from 'ycore'
+import { API_Call, gen_endpoint } from 'app'
export const comty_search = {
keywords: (callback, payload) => {
@@ -15,7 +15,7 @@ export const comty_search = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.search_endpoint,
+ gen_endpoint("search"),
formdata,
callOptions
)
diff --git a/src/@ycore/libs/comty_ng/comty_user.js b/src/@app/libs/comty_ng/comty_user.js
old mode 100755
new mode 100644
similarity index 86%
rename from src/@ycore/libs/comty_ng/comty_user.js
rename to src/@app/libs/comty_ng/comty_user.js
index bd10a5fe..bca43b4a
--- a/src/@ycore/libs/comty_ng/comty_user.js
+++ b/src/@app/libs/comty_ng/comty_user.js
@@ -1,5 +1,4 @@
-import { API_Call, endpoints, get_early } from 'ycore'
-import { comty_rsa } from '../rs_cloud/pre'
+import { API_Call, get_early, gen_endpoint } from 'app'
export const comty_user = {
setData: () => {},
@@ -34,7 +33,7 @@ export const comty_user = {
(err,res) => {
return callback(err,res)
},
- comty_rsa.endpoint('get-user-data'),
+ gen_endpoint('get-user-data'),
formdata
)
},
@@ -51,7 +50,7 @@ export const comty_user = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.follow_user,
+ gen_endpoint("follow-user"),
formdata
)
},
@@ -67,7 +66,7 @@ export const comty_user = {
API_Call((err,res)=>{
return callback(err,res)
},
- comty_rsa.endpoint('block-user'),
+ gen_endpoint('block-user'),
formdata
)
},
@@ -85,7 +84,7 @@ export const comty_user = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.find_user,
+ gen_endpoint("find_user"),
formdata,
callOptions
)
@@ -103,7 +102,7 @@ export const comty_user = {
(err, res) => {
return callback(err, res)
},
- endpoints.comty_endpoints.get_user_tags,
+ gen_endpoint("user_tags"),
formdata
)
},
diff --git a/src/@ycore/libs/ycore_sync/pre.js b/src/@app/libs/comty_ng/pre.js
old mode 100755
new mode 100644
similarity index 52%
rename from src/@ycore/libs/ycore_sync/pre.js
rename to src/@app/libs/comty_ng/pre.js
index 465cce8e..b74bd209
--- a/src/@ycore/libs/ycore_sync/pre.js
+++ b/src/@app/libs/comty_ng/pre.js
@@ -1,6 +1,68 @@
-import * as ycore from 'ycore'
-import * as antd from 'antd'
+import { token_data } from 'app'
import * as Icons from '@ant-design/icons'
+
+export * from './comty_post.js'
+export * from './comty_user.js'
+export * from './comty_post_comment.js'
+export * from './comty_search.js'
+export * from './comty_data.js'
+
+export const IsThisPost = {
+ owner: (post_uid) => {
+ const a = token_data.__id()
+ if (post_uid == a) {
+ return true
+ }
+ return false
+ },
+ boosted: () => {
+
+ },
+ saved: () => {
+
+ },
+ pinned: () => {
+
+ },
+ flagged: () => {
+
+ }
+}
+
+export const GetPostPrivacy = {
+ bool: (e) => {
+ switch (e) {
+ case 'any':
+ return '0'
+ case 'only_followers':
+ return '1'
+ case 'only_follow':
+ return '2'
+ case 'private':
+ return '3'
+ default:
+ return '0'
+ }
+ },
+ decorator: (e) => {
+ switch (e) {
+ case 'any':
+ return Share with everyone
+ case 'only_follow':
+ return Share with people I follow
+ case 'only_followers':
+ return Share with people follow me
+ case 'private':
+ return Dont share, only me
+ default:
+ return Unknown
+ }
+ },
+
+}
+
+import * as app from 'app'
+import * as antd from 'antd'
import io from 'socket.io-client'
import config from 'config'
@@ -15,7 +77,7 @@ export const sync = {
const socket = io(endpoint);
socket.on('connect_error', (error) => {
conn_overrun_tick ++
- ycore.yconsole.log('Overrun tick => ',conn_overrun_tick)
+ app.yconsole.log('Overrun tick => ',conn_overrun_tick)
if (conn_overrun_tick == 1) {
antd.notification.open({
duration: 5,
@@ -24,7 +86,7 @@ export const sync = {
icon: ,
});
}
- if (conn_overrun_tick == ycore.AppSettings.Maximun_tick_overrun) {
+ if (conn_overrun_tick == app.AppSettings.Maximun_tick_overrun) {
active = false;
}
});
diff --git a/.prev/src/@ycore/libs/yulio_id/ctid_gen.js b/src/@app/libs/yulio_id/ctid_gen.js
similarity index 62%
rename from .prev/src/@ycore/libs/yulio_id/ctid_gen.js
rename to src/@app/libs/yulio_id/ctid_gen.js
index 6e6470d8..18cf2994 100644
--- a/.prev/src/@ycore/libs/yulio_id/ctid_gen.js
+++ b/src/@app/libs/yulio_id/ctid_gen.js
@@ -1,17 +1,16 @@
-import * as ycore from 'ycore'
+import * as app from 'app'
/**
* Cookies Token ID Generator
*
* @callback {func} return with (err,res) model
* @payload {object} Payload data
*/
-export function __CTID_GEN(callback, payload) {
+export async function __CTID_GEN(callback, payload) {
const { token, sdcp } = payload
const { UserID, UserToken } = token
- const a = ycore.cryptSDCP.atob_parse(sdcp)
-
- const { avatar, admin, pro, dev, is_pro, username } = a
+
+ const { avatar, admin, pro, dev, is_pro, username } = sdcp
const frame = {
UserID,
@@ -22,11 +21,14 @@ export function __CTID_GEN(callback, payload) {
dev,
is_pro,
username,
- exp: ycore.AppSettings.SignForNotExpire
+ exp: app.AppSettings.SignForNotExpire
? 0
: Math.floor(Date.now() / 1000) + 60 * 60,
}
- ycore.token_data.set(frame, done => {
+ console.log(frame)
+ app.token_data.set(frame, done => {
done ? callback(false, true) : callback(true, false)
})
}
+
+
diff --git a/src/@app/libs/yulio_id/pre.js b/src/@app/libs/yulio_id/pre.js
new file mode 100644
index 00000000..7b670762
--- /dev/null
+++ b/src/@app/libs/yulio_id/pre.js
@@ -0,0 +1,114 @@
+import * as app from 'app'
+
+// EXPORT PUBLIC WORKERS
+export * from './token_data.js'
+export * from './ctid_gen.js'
+export * from './validate.js'
+
+export function userData() {
+ return app.token_data.get()
+}
+
+export const IsThisUser = {
+ admin: () => {
+ return app.booleanFix(app.userData().admin) ? true : false
+ },
+ dev: () => {
+ return app.booleanFix(app.userData().dev) ? true : false
+ },
+ pro: () => {
+ return app.booleanFix(app.userData().is_pro) ? true : false
+ },
+ nsfw: () => {
+ return app.booleanFix(app.userData().nsfw) ? true : false
+ },
+ same: a => {
+ if (a == app.userData().UserID) {
+ return true
+ }
+ return false
+ },
+}
+
+export const get_early = {
+ user: (callback, payload)=>{
+ if (!payload) {
+ return false
+ }
+ const { username } = payload
+ let formdata = new FormData()
+ formdata.append('username', username)
+
+ const callOptions = { timeout: 10000 }
+ app.API_Call(
+ (err, res) => {
+ return callback(err, res)
+ },
+ app.gen_endpoint('early_user'),
+ formdata,
+ callOptions
+ )
+ }
+}
+
+export const yulio_id = {
+ auth: (callback, payload) => {
+ if (!payload) return false
+ const { username, password } = payload
+
+ const formdata = new FormData()
+ formdata.append('username', username)
+ formdata.append('password', password)
+
+ const callOptions = { disabledToken: true }
+ app.API_Call(
+ (err, res) => {
+ return callback(err, res)
+ },
+ app.gen_endpoint('auth'),
+ formdata,
+ callOptions
+ )
+ },
+ logout: callback => {
+ app.API_Call(
+ (err, res) => {
+ return callback(err, res)
+ },
+ app.gen_endpoint('delete-access-token'),
+ null
+ )
+ },
+ verify: (callback, payload) => {
+ // TO DO
+ },
+ sign: (callback, payload) => {
+ // TO DO
+ },
+ getData: (callback, payload) => {
+ if (!payload) return false
+ const { user_token, user_id } = payload
+ const formdata = new FormData()
+ formdata.append('fetch', 'user_data')
+ formdata.append('user_id', user_id)
+
+ const optionCall = { override__token: true }
+ app.API_Call(
+ (err, res) => {
+ try {
+ let a = JSON.parse(res)['user_data']
+ return callback(err, a)
+ } catch (error) {
+ return callback(true, error)
+ }
+ },
+ app.gen_endpoint('get-user-data'),
+ formdata,
+ optionCall,
+ user_token
+ )
+ },
+ setData: () => {
+ // TO DO
+ },
+}
\ No newline at end of file
diff --git a/src/@ycore/libs/yulio_id/token_data.js b/src/@app/libs/yulio_id/token_data.js
old mode 100755
new mode 100644
similarity index 85%
rename from src/@ycore/libs/yulio_id/token_data.js
rename to src/@app/libs/yulio_id/token_data.js
index 75b8d216..5b7fb99c
--- a/src/@ycore/libs/yulio_id/token_data.js
+++ b/src/@app/libs/yulio_id/token_data.js
@@ -1,4 +1,4 @@
-import * as ycore from 'ycore'
+import * as app from 'app'
import Cookies from 'ts-cookies'
import {server_key} from '../../../../config/keys.js'
@@ -30,16 +30,15 @@ export const token_data = {
if (!b) {
final = a
}
- ycore.yconsole.debug(final)
return final
},
remove: () => {
Cookies.remove('cid')
},
__token: () => {
- return ycore.token_data.get().UserToken
+ return app.token_data.get().UserToken
},
__id: () => {
- return ycore.token_data.get().UserID
+ return app.token_data.get().UserID
},
}
diff --git a/src/@ycore/libs/yulio_id/validate.js b/src/@app/libs/yulio_id/validate.js
old mode 100755
new mode 100644
similarity index 75%
rename from src/@ycore/libs/yulio_id/validate.js
rename to src/@app/libs/yulio_id/validate.js
index 7d42aabb..5c699be3
--- a/src/@ycore/libs/yulio_id/validate.js
+++ b/src/@app/libs/yulio_id/validate.js
@@ -1,13 +1,22 @@
-import * as ycore from 'ycore'
+import * as app from 'app'
import Cookies from 'ts-cookies'
var jwt = require('jsonwebtoken')
+export const cid_backup = {
+ set: () => {
+ localStorage.setItem('last_backup', Cookies.get('cid'))
+ },
+ get: () => {
+ localStorage.getItem('last_backup')
+ }
+}
+
export const validate = {
session: callback => {
let validtoken = false
const a = Cookies.get('cid')
if (a) {
- const modExp = ycore.AppSettings.SignForNotExpire
+ const modExp = app.AppSettings.SignForNotExpire
const ad = jwt.decode(a)
let notexp = true // Sets if this is expired (Default is not expired)
@@ -19,7 +28,7 @@ export const validate = {
const tokenExpLocale = new Date(tokenExp).toLocaleString()
const now = new Date().getTime()
- ycore.yconsole.log(
+ app.yconsole.log(
`TOKEN EXP => ${tokenExp} ${
modExp ? '( Infinite )' : `( ${tokenExpLocale} )`
} || NOW => ${now}`
@@ -27,7 +36,7 @@ export const validate = {
if (modExp == false) {
if (tokenExp < now) {
- ycore.yconsole.log('This token is expired !!!')
+ app.yconsole.log('This token is expired !!!')
notexp = false
}
}
@@ -43,7 +52,7 @@ export const validate = {
},
backup: () => {
let ValidBackupToken = false
- let LastestToken = localStorage.getItem('last_backup')
+ let LastestToken = cid_backup.get()
if (LastestToken) {
let LastestTokenDC = jwt.decode(LastestToken)
if (LastestTokenDC) {
@@ -51,5 +60,5 @@ export const validate = {
}
}
return ValidBackupToken
- },
+ }
}
diff --git a/src/@ycore/libs.js b/src/@ycore/libs.js
deleted file mode 100755
index d405bf00..00000000
--- a/src/@ycore/libs.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// List of modules used for this app
-export * from './libs/comty_ng/pre.js';
-export * from './libs/ycore_sync/pre.js';
-export * from './libs/yulio_id/pre.js';
-export * from './libs/ycore_styles/pre.js';
-export * from './libs/ycore_sdcp/pre.js';
-export * from './libs/app_functions/pre.js';
-export * from './libs/rs_cloud/pre.js';
\ No newline at end of file
diff --git a/src/@ycore/libs/app_functions/modals.less b/src/@ycore/libs/app_functions/modals.less
deleted file mode 100755
index 9b9266d3..00000000
--- a/src/@ycore/libs/app_functions/modals.less
+++ /dev/null
@@ -1,9 +0,0 @@
-.post_report_main{
- padding: 0 0 0 115px;
- &.mobile{
- padding: 0 0 60px 0;
- }
-}
-.post_report_body{
- color: #2d2d2d!important;
-}
\ No newline at end of file
diff --git a/src/@ycore/libs/comty_ng/comty_post_comment.js b/src/@ycore/libs/comty_ng/comty_post_comment.js
deleted file mode 100755
index 3e21a5a9..00000000
--- a/src/@ycore/libs/comty_ng/comty_post_comment.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import { API_Call, endpoints } from 'ycore'
-
-export const comty_post_comment = {
- delete: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { comment_id } = payload
-
- let formdata = new FormData()
- formdata.append('type', 'delete')
- formdata.append('comment_id', comment_id)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.comments_actions,
- formdata
- )
- },
- new: (callback, payload) => {
- if (!payload) {
- return false
- }
- const { post_id, raw_text } = payload
-
- let formdata = new FormData()
- formdata.append('action', 'comment')
- formdata.append('post_id', post_id)
- formdata.append('text', raw_text)
-
- API_Call(
- (err, res) => {
- return callback(err, res)
- },
- endpoints.comty_endpoints.action_post,
- formdata
- )
- },
-}
diff --git a/src/@ycore/libs/comty_ng/pre.js b/src/@ycore/libs/comty_ng/pre.js
deleted file mode 100755
index 273d7117..00000000
--- a/src/@ycore/libs/comty_ng/pre.js
+++ /dev/null
@@ -1,64 +0,0 @@
-import { token_data } from 'ycore'
-import * as Icons from '@ant-design/icons'
-
-export * from './comty_post.js'
-export * from './comty_user.js'
-export * from './comty_post_comment.js'
-export * from './comty_search.js'
-export * from './comty_get.js'
-
-
-
-export const IsThisPost = {
- owner: (post_uid) => {
- const a = token_data.__id()
- if (post_uid == a) {
- return true
- }
- return false
- },
- boosted: () => {
-
- },
- saved: () => {
-
- },
- pinned: () => {
-
- },
- flagged: () => {
-
- }
-}
-
-export const GetPostPrivacy = {
- bool: (e) => {
- switch (e) {
- case 'any':
- return '0'
- case 'only_followers':
- return '1'
- case 'only_follow':
- return '2'
- case 'private':
- return '3'
- default:
- return '0'
- }
- },
- decorator: (e) => {
- switch (e) {
- case 'any':
- return Share with everyone
- case 'only_follow':
- return Share with people I follow
- case 'only_followers':
- return Share with people follow me
- case 'private':
- return Dont share, only me
- default:
- return Unknown
- }
- },
-
-}
\ No newline at end of file
diff --git a/src/@ycore/libs/rs_cloud/pre.js b/src/@ycore/libs/rs_cloud/pre.js
deleted file mode 100755
index 77386b08..00000000
--- a/src/@ycore/libs/rs_cloud/pre.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import * as ycore from 'ycore'
-export * from './api_call.js'
-import keys from '../../../../config/keys.js'
-
-export const Alive_API = {
- fail: a => {
- if (a) {
- ycore.yconsole.log(a)
- ycore.notify.error(a)
- }
- },
- tokenError: a => {
- ycore.notify.expire(
- 'It seems that your token has expired or no longer exists'
- )
- ycore.router.go('login')
- },
- violation: a => {
- ycore.notify.expire(
- 'It seems that there has been a problem with your token, we need you to log in again.'
- )
- ycore.router.go('login')
- },
-}
-export const __server = {
- getKey: () => {
- return keys.server_key
- },
-}
-export const __rscloud = {
- yulio_id: {
- auth: (callback, payload) => {
- if (!payload) return false
- const { username, password } = payload
-
- const formdata = new FormData()
- formdata.append('username', username)
- formdata.append('password', password)
-
- const callOptions = { disabledToken: true }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.endpoints.comty_endpoints.auth_endpoint,
- formdata,
- callOptions
- )
- },
- logout: callback => {
- const callOptions = { includeUserID: true }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.endpoints.comty_endpoints.removeToken,
- null,
- callOptions
- )
- },
- verify: (callback, payload) => {},
- sign: (callback, payload) => {},
- },
- sdcp_cloud: {
- get: (callback, payload) => {
- if (!payload) return false
- const { user_token, user_id } = payload
- const formdata = new FormData()
- formdata.append('fetch', 'user_data')
- formdata.append('user_id', user_id)
-
- const optionCall = { override__token: true }
- ycore.API_Call(
- (err, res) => {
- try {
- let cooked = JSON.parse(res)['user_data']
- let Ensamblator = btoa(JSON.stringify(cooked))
- return callback(err, Ensamblator)
- } catch (error) {
- return callback(true, error)
- }
- },
- ycore.endpoints.comty_endpoints.get_userData,
- formdata,
- optionCall,
- user_token
- )
- },
- set: () => {},
- },
-}
-
-export const comty_rsa = {
- endpoint: (endpoint, options) => {
- let join_token = true;
- if (options) {
- join_token = options.join_token
- }
- return `${ycore.AppSettings.__global_server_prexif}${endpoint}${join_token? `?access_token=` : ``}`
- }
-}
diff --git a/src/@ycore/libs/ycore_sdcp/pre.js b/src/@ycore/libs/ycore_sdcp/pre.js
deleted file mode 100755
index 54191b4a..00000000
--- a/src/@ycore/libs/ycore_sdcp/pre.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import * as ycore from 'ycore'
-import localforage from 'localforage'
-
-export const sdcp = {
- isset: (value) => {
- if (!value) return false
- ycore.sdcp.localforage.getItem(value)? true : false
- },
- set: (operator) => {
- if (!operator) return false
- try {
- let a;
- let b;
-
- let { callback, model } = operator
- const {key, value} = model
- if (!typeof key === 'string' || ! a instanceof String) return false
-
- a = ycore.sdcp.get(key)
- if (!a.isArray()) return false
-
- b = JSON.parse(a).concat(value)
-
- localforage.setItem(key, b)
-
- } catch (err) {
- console.log(err)
- return false
- }
- },
- get: (key) => {
- try {
- return localforage.getItem(key)
- } catch (err) {
- return false
- }
- },
-
-}
-
-export const cryptSDCP = {
- atob_parse: e => {
- if (e) {
- try {
- atob(e)
- } catch (err) {
- ycore.notify.error(err)
- ycore.router.go('login')
- return false
- }
- try {
- let decodedSDCP = atob(e)
- let parsedSDCP = JSON.parse(decodedSDCP)
- return parsedSDCP
- } catch (err) {
- ycore.notify.error(err)
- ycore.router.go('login')
- return false
- }
- }
- return false
- },
- valid: () => {
- const a = ycore.sdcp.get()
- return a ? true : false
- },
-}
diff --git a/src/@ycore/libs/ycore_styles/pre.js b/src/@ycore/libs/ycore_styles/pre.js
deleted file mode 100755
index 16f1f74f..00000000
--- a/src/@ycore/libs/ycore_styles/pre.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import {AppSettings} from 'ycore'
-
-export function CurrentTheme(){
- try {
- const bundle = localStorage.getItem('resource_bundle') || AppSettings.resource_bundle
- console.log('Loading resource Bundle =>', bundle)
- return bundle
- } catch (error) {
- return null
- }
-}
\ No newline at end of file
diff --git a/src/@ycore/libs/ycore_styles/ycore_style.scss b/src/@ycore/libs/ycore_styles/ycore_style.scss
deleted file mode 100755
index 5759afe8..00000000
--- a/src/@ycore/libs/ycore_styles/ycore_style.scss
+++ /dev/null
@@ -1,1488 +0,0 @@
-/* (2.0) YulioID V2 */
-
-@import url('https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css');
-@import url('https://fonts.googleapis.com/css?family=Poppins:300,300i,500,500i,700');
-
-
-
-.mainlp {
- --neutralShade0: #f8f8f8;
- --neutralShade1: #f2f2f2;
- --neutralShade2: #e8e9e9;
- --neutralShade3: #d1d3d4;
- --neutralShade4: #babdbf;
- --neutralShade5: #808488;
- --neutralShade6: #666a6d;
- --neutralShade7: #4d5052;
- --neutralShade8: #212122;
- --grayColor: #999;
- --lightGrayColor: #ddd;
- --borderRadius: 6px;
- --boxShadow: 0 2px 5px rgba(#333, 0.2);
-}
-
-/*overall layout*/
-.mainlp {
- width: 90%;
- max-width: 1050px;
- margin: 3em auto 0;
- display: grid;
- grid: repeat(5, fit-content(300px))/100%;
- color: var(--foregroundColor);
- text-align: left;
-}
-
-.mainlp .sectionlp {
- border: 1px solid var(--accentColor);
- position: relative;
- padding: 40px 40px 50px;
-}
-
-.mainlp .sectionlp>h6 {
- color: var(--accentColor);
- background: var(--canvasColor);
- position: absolute;
- top: -10px;
- left: 20px;
- padding: 0 10px;
-}
-
-.mainlp .sectionlp .h6lp.subheader {
- color: var(--grayColor);
- margin-top: 20px;
- margin-bottom: 20px;
- width: 100%;
-}
-
-@media (max-width: 992px) {
- section:not(:last-child) {
- border-width: 0 0 1px;
- }
-
- section:last-child {
- border-width: 0;
- }
-}
-
-@media (min-width: 992px) {
- main {
- grid: repeat(9, auto)/45% 1fr 45%;
- grid-auto-flow: dense;
- }
-
- .media-card-1 {
- grid-column: 1 / 2;
- border-width: 1px 0;
- }
-
- .media-card-2 {
- grid-column: 2 / 4;
- border-width: 1px 0 1px 1px;
- }
-
- .media-card-3 {
- grid-column: 1 / 4;
- border-width: 0;
- }
-
- .filter-section {
- grid-column: 3 / 4;
- grid-row: 1 / 2;
- border-width: 0 0 0 1px;
- }
-
- .well-cta-1 {
- grid-row: 3;
- grid-column: 1 / 3;
- border-width: 1px 1px 0 0;
- }
-
- .well-cta-2 {
- grid-row: 2;
- grid-column: 2 / 4;
- border-width: 1px 0 0;
- }
-
- .tables {
- grid-row: 4;
- grid-column: 1 / -1;
- border-width: 1px 0 0;
- }
-
- .forms {
- grid-column: 1 / 3;
- border-width: 0;
- }
-
- .comments {
- grid-row: 2;
- grid-column: 1 / 2;
- border-width: 1px 1px 0 0;
- padding-top: 60px;
- }
-
- .modals {
- grid-row: 3;
- grid-column: 3 / 4;
- justify-content: center;
- border-width: 1px 0 0;
- }
-}
-
-
-/*checkboxes*/
-input:disabled~* {
- opacity: 0.3;
- user-select: none;
- pointer-events: none;
-}
-
-.checkboxtoggle input {
- display: none;
-}
-
-.checkboxtoggle label {
- outline: 0;
- display: block;
- width: 45px;
- height: 16px;
- background: var(--grayColor);
- position: relative;
- cursor: pointer;
- border-radius: 2em;
- padding: 2px;
- transition: all 0.4s ease;
- margin: 0;
-}
-
-.checkboxtoggle .labellp:after {
- position: relative;
- display: block;
- content: "";
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background: #fff;
- transition: all 0.2s ease;
- border: 1px solid var(--grayColor);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
- left: -4px;
- top: -5px;
-}
-
-.checkboxtoggle input:checked+.labellp {
- background: var(--accent2Color);
-}
-
-.checkboxtoggle input:checked+.labellp:after {
- left: 52%;
-}
-
-.checkbox {
- position: relative;
- user-select: none;
- margin-bottom: 10px;
-}
-
-.checkbox input {
- display: none;
-}
-
-.checkbox .labellp {
- position: relative;
- vertical-align: middle;
- cursor: pointer;
- font-weight: 500;
- padding-left: 35px;
-}
-
-.checkbox .spanlp.box {
- display: inline-block;
- width: 20px;
- border-radius: var(--borderRadius);
- border: 1px solid var(--grayColor);
- width: 24px;
- height: 24px;
- vertical-align: middle;
- margin-right: 3px;
- transition: 0.3s ease;
- position: absolute;
- left: 0;
-}
-
-.checkbox .spanlp.box:before,
-.checkbox .spanlp.box:after {
- content: "";
- position: absolute;
- width: 4px;
- height: 16px;
- border-radius: 40px;
- background: var(--backgroundColor);
- transition: all 0.3s ease;
-}
-
-.checkbox .spanlp.box:before {
- transform: rotate(45deg) translateY(-5px) translateX(10px) scale(0);
-}
-
-.checkbox .spanlp.box:after {
- height: 8px;
- transform: rotate(-45deg) translateY(10px) translateX(-4px) scale(0);
-}
-
-.checkbox input:checked+.labellp .spanlp.box {
- background: var(--accent2Color);
- border-color: var(--accent2Color);
-}
-
-.checkbox input:checked+.labellp .spanlp.box:before {
- transform: rotate(45deg) translateY(-5px) translateX(10px) scale(1);
-}
-
-.checkbox input:checked+.labellp .spanlp.box:after {
- height: 8px;
- transform: rotate(-45deg) translateY(10px) translateX(-4px) scale(1);
-}
-
-.checkbox input:disabled:checked+.spanlp.box {
- background: var(--grayColor);
- border: var(--grayColor);
-}
-
-.checkbox input:disabled:checked~.labellp:before,
-.checkbox input:disabled:checked~.labellp:after {
- background: black;
-}
-
-/*buttons & links*/
-.links__sec {
- margin: 10px 0 30px;
-}
-
-.links a.link {
- display: inline;
- margin: 10px 30px 5px 0;
- border-bottom: 2px dashed;
- font-weight: 500;
- line-height: 2.5;
- cursor: pointer;
- color: var(--neutralShade5);
-}
-
-.links a.link:hover,
-.links a.link.hover {
- color: var(--neutralShade6);
- border-bottom: 2px solid;
-}
-
-.links a.link.primary {
- color: var(--primaryColor);
-}
-
-.links a.link.primary:hover,
-.links a.link.primary.hover {
- color: var(--primaryShade5);
-}
-
-.links a.link.secondary {
- color: var(--secondaryColor);
-}
-
-.links a.link.secondary:hover,
-.links a.link.secondary.hover {
- color: var(--secondaryShade5);
-}
-
-.buttons {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
-}
-
-.buttons>* {
- flex: 1 1 calc(50% - 20px);
- margin-top: 20px;
-}
-
-.buttons>*:nth-child(odd) {
- margin-right: 20px;
-}
-
-a.buttonlp,
-input.buttonlp,
-.buttonlp {
- outline: none;
- width: 100%;
- text-align: center;
- display: inline-block;
- border: none;
- font: 500 16px/1 "Poppins", sans-serif;
- padding: 20px;
- cursor: pointer;
- border-radius: var(--borderRadius);
- background: var(--primaryColor);
- color: var(--backgroundColor);
- position: relative;
- top: 0;
- transition: 0.2s ease;
-}
-
-a.buttonlp:hover,
-a.buttonlp.hover,
-input.buttonlp:hover,
-input.buttonlp.hover,
-.buttonlp:hover,
-.buttonlp.hover {
- top: -3px;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
-}
-
-a.buttonlp:active,
-a.buttonlp.active,
-input.buttonlp:active,
-.input.buttonlp.active,
-.buttonlp:active,
-.buttonlp.active {
- background: var(--primaryShade4);
- outline: none;
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
- top: 0;
-}
-
-a.buttonlp.disabled,
-input.buttonlp.disabled,
-.buttonlp.disabled {
- opacity: 0.4;
- user-select: none;
- pointer-events: none;
-}
-
-a.buttonlp.medium,
-input.buttonlp.medium,
-.buttonlp.medium {
- padding: 15px 18px;
- width: auto;
-}
-
-a.buttonlp.small,
-input.buttonlp.small,
-.buttonlp.small {
- padding: 10px 12px;
- width: auto;
- font-size: 14px;
- font-weight: 500;
-}
-
-a.buttonlp.secondary,
-input.buttonlp.secondary,
-.buttonlp.secondary {
- background: var(--secondaryColor);
-}
-
-a.buttonlp.secondary:active,
-a.buttonlp.secondary:focus,
-a.buttonlp.secondary.active,
-input.buttonlp.secondary:active,
-input.buttonlp.secondary:focus,
-input.buttonlp.secondary.active,
-.buttonlp.secondary:active,
-.buttonlp.secondary:focus,
-.buttonlp.secondary.active {
- background: var(--secondaryShade4);
- outline: none;
-}
-
-a.buttonlp.accent,
-input.buttonlp.accent,
-.buttonlp.accent {
- background: var(--accentColor);
-}
-
-a.buttonlp.accent:active,
-a.buttonlp.accent:focus,
-a.buttonlp.accent.active,
-input.buttonlp.accent:active,
-input.buttonlp.accent:focus,
-input.buttonlp.accent.active,
-.buttonlp.accent:active,
-.buttonlp.accent:focus,
-.buttonlp.accent.active {
- background: var(--accentShade4);
-}
-
-a.buttonlp.accent2,
-input.buttonlp.accent2,
-.buttonlp.accent2 {
- background: var(--accent2Color);
-}
-
-a.buttonlp.accent2:active,
-a.buttonlp.accent2:focus,
-a.buttonlp.accent2.active,
-input.buttonlp.accent2:active,
-input.buttonlp.accent2:focus,
-input.buttonlp.accent2.active,
-.buttonlp.accent2:active,
-.buttonlp.accent2:focus,
-.buttonlp.accent2.active {
- background: var(--accent2Shade4);
-}
-
-a.buttonlp.accent3,
-input.buttonlp.accent3,
-.buttonlp.accent3 {
- background: var(--accent3Color);
-}
-
-a.buttonlp.accent3:active,
-a.buttonlp.accent3:focus,
-a.buttonlp.accent3.active,
-input.buttonlp.accent3:active,
-input.buttonlp.accent3:focus,
-input.buttonlp.accent3.active,
-.buttonlp.accent3:active,
-.buttonlp.accent3:focus,
-.buttonlp.accent3.active {
- background: var(--accent3Shade4);
-}
-
-/*inputs*/
-.input__wrapper {
- margin-bottom: 10px;
-}
-
-
-.labelform {
- font-weight: 500;
- display: block;
- margin-bottom: 5px;
-}
-
-input.inputform,
-select,
-textarea {
- height: 50px;
- font-size: 16px;
- border: 2px solid var(--neutralShade3);
- width: 100%;
- padding: 12px;
- font-family: "Poppins";
- border-radius: var(--borderRadius);
- color: var(--foregroundColor);
- background: var(--backgroundColor);
-}
-
-input.inputform:focus,
-input.inputform.active,
-select:focus,
-select.active,
-textarea:focus,
-textarea.active {
- outline: none;
- border-color: var(--primaryColor);
-}
-
-input.inputform:disabled,
-select:disabled,
-textarea:disabled {
- cursor: not-allowed;
- background: var(--neutralShade1);
- opacity: 0.6;
-}
-
-input.inputform.input {
- height: 56px;
- font-size: 18px;
- padding: 15px;
-}
-
-/*badges*/
-.badge {
- display: inline-block;
- padding: 6px 12px;
- border-radius: 50px;
- font-weight: 500;
- text-transform: uppercase;
- line-height: 1;
-}
-
-.alert {
- margin-bottom: 15px;
- display: block;
- padding: 10px 15px;
- border-radius: var(--borderRadius);
- font-weight: 500;
- position: relative;
- cursor: pointer;
-}
-
-.alert.non-collapsible:before,
-.alert.non-collapsible:after {
- content: none;
-}
-
-.alert:before,
-.alert:after {
- content: "";
- position: absolute;
- width: 4px;
- height: 16px;
- border-radius: 40px;
- right: 30px;
- top: 8px;
-}
-
-.alert:before {
- transform: rotate(45deg) translateY(-5.5px) translateX(13.5px);
-}
-
-.alert:after {
- transform: rotate(-45deg) translateY(13.5px) translateX(5.5px);
-}
-
-.status-primary {
- background: var(--primaryShade1);
- color: var(--primaryShade5);
-}
-
-.status-primary:before,
-.status-primary:after {
- background: var(--primaryShade5);
-}
-
-.status-secondary {
- background: var(--secondaryShade1);
- color: var(--secondaryShade5);
-}
-
-.status-secondary:before,
-.status-secondary:after {
- background: var(--secondaryShade5);
-}
-
-.status-info {
- background: var(--accentShade1);
- color: var(--accentShade5);
-}
-
-.status-info:before,
-.status-info:after {
- background: var(--accentShade5);
-}
-
-.status-success {
- background: var(--accent2Shade1);
- color: var(--accent2Shade5);
-}
-
-.status-success:before,
-.status-success:after {
- background: var(--accent2Shade5);
-}
-
-.status-error {
- background: var(--accent3Shade1);
- color: var(--accent3Shade5);
-}
-
-.status-error:before,
-.status-error:after {
- background: var(--accent3Shade5);
-}
-
-/*tooltips*/
-.tooltip {
- cursor: pointer;
- position: relative;
- display: block;
- width: 100%;
- text-align: center;
- z-index: 10;
-}
-
-.tooltip .spanlp {
- border-bottom: 1px dotted;
-}
-
-.tooltip:after {
- content: attr(data-tooltip);
- background: var(--neutralShade2);
- max-width: 90%;
- width: auto;
- position: absolute;
- left: 0;
- right: 0;
- margin: auto;
- opacity: 0;
- height: auto;
- font-size: 14px;
- padding: 10px;
- border-radius: var(--borderRadius);
- color: var(--foregroundColor);
- text-align: center;
-}
-
-.tooltip.dark:after {
- background: var(--neutralShade7);
- color: var(--backgroundColor);
-}
-
-.tooltip.top:after {
- bottom: 80%;
- transition: opacity 0.3s ease 0.3s, bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
-}
-
-.tooltip.top:hover:after,
-.tooltip.top.hovered:after {
- bottom: 130%;
- opacity: 1;
-}
-
-.tooltip.bottom:after {
- top: 80%;
- transition: opacity 0.3s ease 0.3s, top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
-}
-
-.tooltip.bottom:hover:after,
-.tooltip.bottom.hovered:after {
- top: 130%;
- opacity: 1;
-}
-
-/*spinner*/
-.spinner+.labellp {
- font-size: 14px;
- font-weight: 500;
- margin-top: 8px;
- display: inline-block;
- text-transform: uppercase;
- color: var(--primaryShade4);
-}
-
-.spinner1 .spinner {
- max-width: 50px;
- margin: auto;
- height: 20px;
- position: relative;
-}
-
-.spinner1 .spinner:after {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: var(--primaryColor);
- animation: spinnerLeftRight 1s infinite;
-}
-
-.spinner1 .spinner:before {
- content: "";
- position: absolute;
- width: 20px;
- height: 20px;
- left: -10%;
- background: var(--primaryShade2);
- opacity: 1;
- animation: spinnerLeftRight 1s infinite 0.06s;
-}
-
-@keyframes spinnerLeftRight {
- 0% {
- left: 85%;
- }
-
- 50% {
- left: -10%;
- }
-
- 100% {
- left: 85%;
- }
-}
-
-
-#sunset+.labellp {
- background: linear-gradient(to right, #ff9557 50%, #ffcc67 50%);
-}
-
-.mainlp {
- --canvasColor: #f9f9f9;
- --backgroundColor: #fff;
- --foregroundColor: #111;
- --primaryColor: #ff9557;
- --primaryShade1: #ffe2d1;
- --primaryShade2: #ffceb2;
- --primaryShade3: #ffb184;
- --primaryShade4: #e88850;
- --primaryShade5: #d17a48;
- --secondaryColor: #ffcc67;
- --secondaryShade1: #fff1d5;
- --secondaryShade2: #ffde9e;
- --secondaryShade3: #ffd074;
- --secondaryShade4: #e8ba5e;
- --secondaryShade5: #ba954b;
- --accentColor: #4e5166;
- --accentShade1: #cecfd5;
- --accentShade2: #aeafb9;
- --accentShade3: #8e909d;
- --accentShade4: #6e7081;
- --accentShade5: #404354;
- --accent2Color: #588b8b;
- --accent2Shade1: #c2d4d4;
- --accent2Shade2: #a3bfbf;
- --accent2Shade3: #85aaaa;
- --accent2Shade4: #507f7f;
- --accent2Shade5: #497272;
- --accent3Color: #fe5f55;
- --accent3Shade1: #fec4c1;
- --accent3Shade2: #fea7a2;
- --accent3Shade3: #fe7c73;
- --accent3Shade4: #e7574e;
- --accent3Shade5: #b9463e;
-}
-
-
-
-/* PROFILE CARDS */
-.profile {
- position: relative;
- background: var(--backgroundColor);
- color: var(--foregroundColor);
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- border-radius: 10px;
- overflow: hidden;
- transition: .2s ease;
- display: grid;
- grid: 200px repeat(5, auto)/100%;
-}
-
-.profile__image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-bottom: 7px solid var(--secondaryColor);
-}
-
-.profile__info {
- padding: 20px 25px 0;
-}
-
-.profile__stats {
- padding: 5px 25px;
-}
-
-.profile__stats__title {
- color: var(--grayColor);
- text-transform: uppercase;
- font-size: 16px;
-}
-
-.profile__cta {
- padding: 0 25px 25px;
-}
-
-.profile a:hover {
- top: 0;
- box-shadow: none;
- background: var(--primaryShade4);
-}
-
-.profile a:active,
-.profile a:focus {
- top: 0;
- box-shadow: none;
- background: var(--primaryShade5);
-}
-
-@media (min-width: 500px) {
- .profile-default {
- min-width: 500px;
- max-width: 450px;
- margin: auto;
- overflow: hidden;
- grid: 340px auto auto/repeat(3, minmax(80px, 1fr));
- grid-gap: 10px;
- }
-
- .profile-default .profile__image {
- grid-column: span 3;
- }
-
- .profile-default .profile__info {
- grid-column: span 3;
- }
-
- .profile-default .profile__stats {
- padding: 5px 25px;
- }
-
- .profile-default .profile__cta {
- grid-column: span 3;
- }
-}
-
-@media (min-width: 768px) {
- .profile-long {
- grid-template-columns: 150px repeat(3, 1fr) auto;
- grid-template-rows: auto auto;
- width: 100%;
- padding-right: 20px;
- }
-
- .profile-long .profile__image {
- grid-column: 1 / 2;
- grid-row: 1 / 3;
- margin-right: 20px;
- }
-
- .profile-long .profile__image img {
- border-radius: 10px 0 0 10px;
- border: none;
- }
-
- .profile-long .profile__info {
- grid-column: 2 / 6;
- grid-row: 1;
- padding: 20px 20px 15px 0;
- }
-
- .profile-long .profile__stats {
- min-width: 100px;
- padding: 15px 0;
- border-top: 0.5px solid var(--grayColor);
- grid-row: 2 / 3;
- }
-
- .profile-long .profile__stats:nth-child(3) {
- grid-column: 2 / 3;
- }
-
- .profile-long .profile__stats:nth-child(4) {
- grid-column: 3 / 4;
- }
-
- .profile-long .profile__stats:nth-child(5) {
- grid-column: 4 / 5;
- }
-
- .profile-long .profile__cta {
- grid-row: 2 / 3;
- grid-column: 5 / 6;
- border-top: 0.5px solid var(--grayColor);
- padding: 15px 0 0;
- }
-}
-
-.profile-imgonly {
- border-radius: 10px;
- overflow: hidden;
- min-width: 250px;
- width: 100%;
- grid: 480px 0px / 100%;
-}
-
-.profile-imgonly:hover {
- grid: 434px 56px / 100%;
-}
-
-.profile-imgonly .profile__image,
-.profile-imgonly .profile__info {
- grid-row: 1 / 2;
- grid-column: 1 / 2;
-}
-
-.profile-imgonly .profile__image {
- position: relative;
-}
-
-.profile-imgonly .profile__image:after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 30%;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
-}
-
-.profile-imgonly .profile__image img {
- border: none;
-}
-
-.profile-imgonly .profile__stats {
- display: none;
-}
-
-.profile-imgonly .profile__info {
- z-index: 5;
- grid-row: 1 / 2;
- align-self: end;
- margin: 0 0 15px;
- color: #fff;
- text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
-}
-
-.profile-imgonly .profile__info p {
- display: none;
-}
-
-.profile-imgonly .profile__cta {
- padding: 0;
-}
-
-.profile-imgonly .profile__cta a {
- border-radius: 0;
-}
-
-#dark:checked~.mainlp a.buttonlp,
-#pinkaru:checked~.mainlp a.buttonlp {
- color: var(--foregroundColor);
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
-}
-
-#dark:checked~.mainlp .buttonlp:hover,
-#pinkaru:checked~.mainlp .buttonlp:hover {
- background: var(--primaryShade2);
-}
-
-#dark:checked~.mainlp .buttonlp:active,
-#pinkaru:checked~.mainlp .buttonlp:active {
- background: var(--primaryShade1);
-}
-
-#dark:checked~.mainlp .profile-default img,
-#pinkaru:checked~.mainlp .profile-default img {
- border-bottom: 7px solid var(--secondaryShade5);
-}
-
-/*FILTERS*/
-.filters__title {
- font-size: 18px;
- color: var(--grayColor);
- margin: 25px 0;
-}
-
-.filters__item {
- display: grid;
- grid-template-columns: 1fr auto;
- align-items: center;
- margin-bottom: 10px;
-}
-
-.filters__item .checkbox {
- position: relative;
- margin: 0;
-}
-
-.filters__item .checkbox .tooltip {
- display: inline-block;
- margin-left: 10px;
- width: auto;
- vertical-align: middle;
-}
-
-.filters__item .checkbox .tooltip .spanlp {
- border: none;
-}
-
-.filters__item .checkbox .tooltip:after {
- min-width: 100px;
- margin-left: -50px;
-}
-
-.filters:not(:first-of-type) {
- border-top: 0.5px solid var(--lightGrayColor);
- margin-top: 25px;
-}
-
-/* WELL CTA */
-.well-cta {
- border-radius: 10px;
- background: var(--secondaryColor);
- color: var(--foregroundColor);
- overflow: hidden;
-}
-
-.well-cta__text {
- padding: 30px;
-}
-
-.well-cta__text p {
- font-size: 18px;
- line-height: 1.5;
-}
-
-.well-cta__text a {
- margin: 25px 0 0;
-}
-
-.well-cta__image {
- padding: 30px 0 0;
-}
-
-.well-cta img {
- width: 100%;
- max-height: 300px;
- object-fit: contain;
- margin-bottom: -7px;
-}
-
-@media (min-width: 768px) {
- .well-cta {
- display: grid;
- grid: auto / 1fr 250px;
- }
-
- .well-cta__image {
- align-self: flex-end;
- padding: 15px 0 0;
- }
-}
-
-#bluepurple:checked~.mainlp .well-cta__text {
- color: var(--backgroundColor);
-}
-
-.well-cta--form {
- display: grid;
- grid-gap: 10px;
- padding: 30px;
- background: var(--primaryShade1);
- border-radius: 10px;
-}
-
-.well-cta--form__text {
- margin-bottom: 10px;
-}
-
-.well-cta--form h3 {
- color: var(--primaryShade5);
-}
-
-@media (min-width: 768px) {
- .well-cta--form {
- grid-template-columns: 1fr auto;
- }
-
- .well-cta--form__text {
- grid-column: span 2;
- }
-}
-
-/*TABLE*/
-.table {
- background: var(--backgroundColor);
- border-radius: 10px;
-}
-
-.table__wrapper {
- width: 100%;
- overflow-y: hidden;
- overflow-x: auto;
- border-radius: 10px;
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
-}
-
-.table tr {
- display: grid;
- grid: auto/80px 80px repeat(2, minmax(150px, 2fr)) repeat(2, minmax(120px, 1.5fr)) 50px;
- align-items: center;
-}
-
-.table td {
- padding: 15px;
-}
-
-.table__header {
- color: var(--neutralShade5);
- font-weight: 500;
- text-transform: uppercase;
- border-bottom: 0.5px solid var(--lightGrayColor);
-}
-
-.table__body tr:nth-child(even) {
- background: var(--neutralShade0);
-}
-
-#dark:checked~.mainlp .table__body tr:nth-child(even),
-#pinkaru:checked~.mainlp .table__body tr:nth-child(even) {
- background: var(--neutralShade8);
-}
-
-/*FORMS*/
-.formlogin {
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- background: var(--backgroundColor);
- margin-top: 30px;
- position: relative;
- overflow: hidden;
-}
-
-.formlogin .checkbox {
- margin-bottom: 30px;
-}
-
-.formlogin .spinner__wrapper {
- display: grid;
- place-items: center;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- background: rgba(255, 255, 255, 0.85);
- opacity: 0;
- z-index: -1;
-}
-
-@media (min-width: 768px) {
- .formlogin {
- display: grid;
- grid: auto / 1fr 40%;
- }
-
- .formlogin .input__wrapper {
- grid-column: span 2;
- }
-
- .formlogin .checkbox {
- align-self: center;
- margin-bottom: 0;
- }
-}
-
-#dark:checked~.mainlp .spinner__wrapper,
-#pinkaru:checked~.mainlp .spinner__wrapper {
- background: rgba(20, 20, 20, 0.85);
-}
-
-/*COMMENT ITEM*/
-.comment {
- display: grid;
- grid: auto / 60px 1fr;
- grid-gap: 12px;
-}
-
-.comment__image {
- grid-row: 1 / 4;
-}
-
-.comment__image img {
- width: 60px;
- height: 60px;
- object-fit: cover;
- border-radius: 50%;
-}
-
-.comment__info h5 {
- margin-bottom: 0;
-}
-
-.comment__info h5 .spanlp {
- vertical-align: middle;
-}
-
-.comment__info h5 .badge {
- margin-left: 8px;
- font-size: 80%;
-}
-
-.comment__info h5 .badge i {
- font-size: 80%;
- margin-right: 6px;
-}
-
-.comment__info__time {
- color: var(--grayColor);
-}
-
-.comment__reaction i {
- margin-right: 8px;
- font-size: 85%;
-}
-
-.comment__reaction__heart {
- cursor: pointer;
- transition: .3s ease;
-}
-
-.comment__reaction__heart.toggled {
- color: var(--accent3Shade5);
- font-weight: 500;
-}
-
-/*PANEL*/
-.panel {
- display: grid;
- grid: 200px auto min-content / 100%;
- border-radius: 10px;
- overflow: hidden;
- background: var(--backgroundColor);
- box-shadow: 0 3px 15px rgba(51, 51, 51, 0.2);
- max-width: 480px;
- margin: auto;
-}
-
-.panel__image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
-}
-
-.panel__info {
- padding: 30px 30px 20px;
-}
-
-.panel__info h1 {
- margin-bottom: 25px;
-}
-
-.panel__info p {
- font-size: 20px;
- margin: 15px 0;
-}
-
-.panel__info .alert {
- font-weight: 300;
- margin-top: 30px;
-}
-
-.panel__cta {
- padding: 0 30px 30px;
- text-align: center;
-}
-
-footer {
- display: grid;
- grid: min-content / 1fr max-content;
- text-align: left;
- width: 90%;
- margin: 1em auto 4em;
- max-width: 1050px;
- align-items: center;
-}
-
-footer a {
- text-decoration: none;
- color: #333;
- padding: 3px 0;
- border-bottom: 1px dashed;
-}
-
-footer a:hover {
- border-bottom: 1px solid;
-}
-
-footer .social a {
- text-decoration: none;
- margin-left: 10px;
-}
-
-footer .social a .icons {
- display: inline-block;
- font-size: 20px;
-}
-
-footer.dark,
-footer.dark a {
- color: #f9f9f9;
-}
-
-
-
-
-/*typography 2*/
-.logoHR {
- color: #000;
-}
-
-.logoh1wp {
- color: #242331;
-
-}
-
-.logoh1wp h1 {
- font: 700 48px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h2 {
- font: 700 32px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h3 {
- font: 700 24px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h4 {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h5 {
- font: 500 18px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.logoh1wp h6 {
- font: 500 16px/1.2 "Poppins", sans-serif;
- text-transform: uppercase;
-}
-
-
-.stonglp {
- font-weight: 500;
-}
-
-.emlp {
- font-style: italic;
-}
-
-.h1lp {
- font: 700 48px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h2lp {
- font: 700 32px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h3lp {
- font: 700 24px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h4lp {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h5lp {
- font: 500 18px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.h6lp {
- font: 500 16px/1.2 "Poppins", sans-serif;
- text-transform: uppercase;
-}
-
-.apierrort {
- font: 700 20px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
-}
-
-.apierrort::first-letter {
- text-transform: uppercase;
-}
-
-
-.coverprc img {
- position: absolute;
- left: 0px;
- top: 0px;
- z-index: 1;
-}
-
-.befcoverprc {
- z-index: 2;
-}
-
-.flex {
- /*Flexbox for containers*/
- display: flex;
- justify-content: center;
- align-items: center;
- text-align: center;
-}
-
-.wavesNav {
-
- bottom: 0;
-
-}
-
-.postNavWaves {
- background-color: #F0F2F5;
- height: 100%;
-}
-
-.waves {
- position: relative;
- z-index: 0;
- width: 100%;
- height: 80vh;
- margin-bottom: -7px;
- /*Fix for safari gap*/
- min-height: 100px;
- max-height: 150px;
-}
-
-
-/* Animation */
-
-.parallax>use {
- animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
-}
-
-.parallax>use:nth-child(1) {
- animation-delay: -2s;
- animation-duration: 7s;
-}
-
-.parallax>use:nth-child(2) {
- animation-delay: -3s;
- animation-duration: 10s;
-}
-
-.parallax>use:nth-child(3) {
- animation-delay: -4s;
- animation-duration: 13s;
-}
-
-.parallax>use:nth-child(4) {
- animation-delay: -5s;
- animation-duration: 20s;
-}
-
-@keyframes move-forever {
- 0% {
- transform: translate3d(-90px, 0, 0);
- }
-
- 100% {
- transform: translate3d(85px, 0, 0);
- }
-}
-
-/*Shrinking for mobile*/
-@media (max-width: 768px) {
- .waves {
- height: 40px;
- min-height: 40px;
- }
-
- .content {
- height: 30vh;
- }
-
- h1 {
- font-size: 24px;
- }
-}
-
-
-
-.ClockDashboard {
- float: right;
- font: 700 26px/1.2 "Poppins", sans-serif;
- margin-bottom: 10px;
- margin: 12px;
- z-index: 9999;
-}
\ No newline at end of file
diff --git a/src/@ycore/libs/yulio_id/ctid_gen.js b/src/@ycore/libs/yulio_id/ctid_gen.js
deleted file mode 100755
index 6e6470d8..00000000
--- a/src/@ycore/libs/yulio_id/ctid_gen.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import * as ycore from 'ycore'
-/**
- * Cookies Token ID Generator
- *
- * @callback {func} return with (err,res) model
- * @payload {object} Payload data
- */
-export function __CTID_GEN(callback, payload) {
- const { token, sdcp } = payload
-
- const { UserID, UserToken } = token
- const a = ycore.cryptSDCP.atob_parse(sdcp)
-
- const { avatar, admin, pro, dev, is_pro, username } = a
-
- const frame = {
- UserID,
- UserToken,
- avatar,
- admin,
- pro,
- dev,
- is_pro,
- username,
- exp: ycore.AppSettings.SignForNotExpire
- ? 0
- : Math.floor(Date.now() / 1000) + 60 * 60,
- }
- ycore.token_data.set(frame, done => {
- done ? callback(false, true) : callback(true, false)
- })
-}
diff --git a/src/@ycore/libs/yulio_id/pre.js b/src/@ycore/libs/yulio_id/pre.js
deleted file mode 100755
index d42c9928..00000000
--- a/src/@ycore/libs/yulio_id/pre.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import * as ycore from 'ycore'
-import Cookies from 'ts-cookies'
-
-// EXPORT PUBLIC WORKERS
-export * from './token_data.js'
-export * from './ctid_gen.js'
-export * from './validate.js'
-
-export function userData() {
- return ycore.token_data.get()
-}
-
-export const make_data = {
- backup: () => {
- localStorage.setItem('last_backup', Cookies.get('cid'))
- },
-}
-
-export const IsThisUser = {
- admin: () => {
- return ycore.booleanFix(ycore.userData().admin) ? true : false
- },
- dev: () => {
- return ycore.booleanFix(ycore.userData().dev) ? true : false
- },
- pro: () => {
- return ycore.booleanFix(ycore.userData().is_pro) ? true : false
- },
- nsfw: () => {
- return ycore.booleanFix(ycore.userData().nsfw) ? true : false
- },
- same: a => {
- if (a == ycore.userData().UserID) {
- return true
- }
- return false
- },
-}
-
-export const get_early = {
- user: (callback, payload)=>{
- if (!payload) {
- return false
- }
- const { username } = payload
- let formdata = new FormData()
- formdata.append('username', username)
-
- const callOptions = { timeout: 10000 }
- ycore.API_Call(
- (err, res) => {
- return callback(err, res)
- },
- ycore.comty_rsa.endpoint('early_user', {join_token: false}),
- formdata,
- callOptions
- )
- }
-}
\ No newline at end of file
diff --git a/src/components/App_about/index.js b/src/components/App_about/index.js
index e6c4f280..0df90d67 100755
--- a/src/components/App_about/index.js
+++ b/src/components/App_about/index.js
@@ -1,11 +1,11 @@
import React from 'react'
import styles from './index.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
export default class App_About extends React.Component {
DetectNoNStableBuild() {
- if (ycore.package_json.DevBuild == false) {
+ if (app.package_json.DevBuild == false) {
return Stable
} else {
return No Stable
@@ -14,13 +14,13 @@ export default class App_About extends React.Component {
render() {
return (
-
+
- {ycore.AppInfo.name}
- {ycore.UUAID}
+ {app.AppInfo.name}
+ {app.UUAID}
- v{ycore.AppInfo.version}
- {ycore.AppInfo.stage}
+ v{app.AppInfo.version}
+ {app.AppInfo.stage}
{this.DetectNoNStableBuild()}
diff --git a/src/components/CustomIcons/index.js b/src/components/CustomIcons/index.js
index 368614d2..d71bfcfc 100755
--- a/src/components/CustomIcons/index.js
+++ b/src/components/CustomIcons/index.js
@@ -6,6 +6,6 @@ const RobotOutlined = () => ( ( )
const SavedPostColor = () => ( )
const SavedPostGrey = () => ( )
-const TrendBlue = () => ( )
+
const CustomIcons = {SavedPostGrey, SavedPostColor, VerifiedBadge, CommonThings, SunSVG, MoonSVG, RobotOutlined, SavedPost}
export default CustomIcons
diff --git a/src/components/FeatherIcons/icons/activity.js b/src/components/FeatherIcons/icons/activity.js
deleted file mode 100644
index 467cc4c8..00000000
--- a/src/components/FeatherIcons/icons/activity.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Activity = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Activity.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Activity.displayName = 'Activity';
-
-export default Activity;
diff --git a/src/components/FeatherIcons/icons/airplay.js b/src/components/FeatherIcons/icons/airplay.js
deleted file mode 100644
index b53e4a10..00000000
--- a/src/components/FeatherIcons/icons/airplay.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Airplay = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Airplay.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Airplay.displayName = 'Airplay';
-
-export default Airplay;
diff --git a/src/components/FeatherIcons/icons/alert-circle.js b/src/components/FeatherIcons/icons/alert-circle.js
deleted file mode 100644
index 8a1c7d87..00000000
--- a/src/components/FeatherIcons/icons/alert-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlertCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-AlertCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlertCircle.displayName = 'AlertCircle';
-
-export default AlertCircle;
diff --git a/src/components/FeatherIcons/icons/alert-octagon.js b/src/components/FeatherIcons/icons/alert-octagon.js
deleted file mode 100644
index 34b3aa5a..00000000
--- a/src/components/FeatherIcons/icons/alert-octagon.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlertOctagon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-AlertOctagon.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlertOctagon.displayName = 'AlertOctagon';
-
-export default AlertOctagon;
diff --git a/src/components/FeatherIcons/icons/alert-triangle.js b/src/components/FeatherIcons/icons/alert-triangle.js
deleted file mode 100644
index d3bf450c..00000000
--- a/src/components/FeatherIcons/icons/alert-triangle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlertTriangle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-AlertTriangle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlertTriangle.displayName = 'AlertTriangle';
-
-export default AlertTriangle;
diff --git a/src/components/FeatherIcons/icons/align-center.js b/src/components/FeatherIcons/icons/align-center.js
deleted file mode 100644
index c394b1f5..00000000
--- a/src/components/FeatherIcons/icons/align-center.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlignCenter = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-AlignCenter.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlignCenter.displayName = 'AlignCenter';
-
-export default AlignCenter;
diff --git a/src/components/FeatherIcons/icons/align-justify.js b/src/components/FeatherIcons/icons/align-justify.js
deleted file mode 100644
index 1387a5ad..00000000
--- a/src/components/FeatherIcons/icons/align-justify.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlignJustify = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-AlignJustify.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlignJustify.displayName = 'AlignJustify';
-
-export default AlignJustify;
diff --git a/src/components/FeatherIcons/icons/align-left.js b/src/components/FeatherIcons/icons/align-left.js
deleted file mode 100644
index 9d9be7b4..00000000
--- a/src/components/FeatherIcons/icons/align-left.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlignLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-AlignLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlignLeft.displayName = 'AlignLeft';
-
-export default AlignLeft;
diff --git a/src/components/FeatherIcons/icons/align-right.js b/src/components/FeatherIcons/icons/align-right.js
deleted file mode 100644
index 438943b9..00000000
--- a/src/components/FeatherIcons/icons/align-right.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AlignRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-AlignRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AlignRight.displayName = 'AlignRight';
-
-export default AlignRight;
diff --git a/src/components/FeatherIcons/icons/anchor.js b/src/components/FeatherIcons/icons/anchor.js
deleted file mode 100644
index 47282c0c..00000000
--- a/src/components/FeatherIcons/icons/anchor.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Anchor = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Anchor.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Anchor.displayName = 'Anchor';
-
-export default Anchor;
diff --git a/src/components/FeatherIcons/icons/aperture.js b/src/components/FeatherIcons/icons/aperture.js
deleted file mode 100644
index 8421f9f5..00000000
--- a/src/components/FeatherIcons/icons/aperture.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Aperture = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
- );
-});
-
-Aperture.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Aperture.displayName = 'Aperture';
-
-export default Aperture;
diff --git a/src/components/FeatherIcons/icons/archive.js b/src/components/FeatherIcons/icons/archive.js
deleted file mode 100644
index b16e18f6..00000000
--- a/src/components/FeatherIcons/icons/archive.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Archive = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Archive.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Archive.displayName = 'Archive';
-
-export default Archive;
diff --git a/src/components/FeatherIcons/icons/arrow-down-circle.js b/src/components/FeatherIcons/icons/arrow-down-circle.js
deleted file mode 100644
index 8f31e0ad..00000000
--- a/src/components/FeatherIcons/icons/arrow-down-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowDownCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ArrowDownCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowDownCircle.displayName = 'ArrowDownCircle';
-
-export default ArrowDownCircle;
diff --git a/src/components/FeatherIcons/icons/arrow-down-left.js b/src/components/FeatherIcons/icons/arrow-down-left.js
deleted file mode 100644
index 80ac76bb..00000000
--- a/src/components/FeatherIcons/icons/arrow-down-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowDownLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowDownLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowDownLeft.displayName = 'ArrowDownLeft';
-
-export default ArrowDownLeft;
diff --git a/src/components/FeatherIcons/icons/arrow-down-right.js b/src/components/FeatherIcons/icons/arrow-down-right.js
deleted file mode 100644
index 98600505..00000000
--- a/src/components/FeatherIcons/icons/arrow-down-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowDownRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowDownRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowDownRight.displayName = 'ArrowDownRight';
-
-export default ArrowDownRight;
diff --git a/src/components/FeatherIcons/icons/arrow-down.js b/src/components/FeatherIcons/icons/arrow-down.js
deleted file mode 100644
index 32a00a69..00000000
--- a/src/components/FeatherIcons/icons/arrow-down.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowDown.displayName = 'ArrowDown';
-
-export default ArrowDown;
diff --git a/src/components/FeatherIcons/icons/arrow-left-circle.js b/src/components/FeatherIcons/icons/arrow-left-circle.js
deleted file mode 100644
index 90b8cda0..00000000
--- a/src/components/FeatherIcons/icons/arrow-left-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowLeftCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ArrowLeftCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowLeftCircle.displayName = 'ArrowLeftCircle';
-
-export default ArrowLeftCircle;
diff --git a/src/components/FeatherIcons/icons/arrow-left.js b/src/components/FeatherIcons/icons/arrow-left.js
deleted file mode 100644
index ea0667ef..00000000
--- a/src/components/FeatherIcons/icons/arrow-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowLeft.displayName = 'ArrowLeft';
-
-export default ArrowLeft;
diff --git a/src/components/FeatherIcons/icons/arrow-right-circle.js b/src/components/FeatherIcons/icons/arrow-right-circle.js
deleted file mode 100644
index a6db8077..00000000
--- a/src/components/FeatherIcons/icons/arrow-right-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowRightCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ArrowRightCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowRightCircle.displayName = 'ArrowRightCircle';
-
-export default ArrowRightCircle;
diff --git a/src/components/FeatherIcons/icons/arrow-right.js b/src/components/FeatherIcons/icons/arrow-right.js
deleted file mode 100644
index c821317b..00000000
--- a/src/components/FeatherIcons/icons/arrow-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowRight.displayName = 'ArrowRight';
-
-export default ArrowRight;
diff --git a/src/components/FeatherIcons/icons/arrow-up-circle.js b/src/components/FeatherIcons/icons/arrow-up-circle.js
deleted file mode 100644
index 5fa1c26d..00000000
--- a/src/components/FeatherIcons/icons/arrow-up-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowUpCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ArrowUpCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowUpCircle.displayName = 'ArrowUpCircle';
-
-export default ArrowUpCircle;
diff --git a/src/components/FeatherIcons/icons/arrow-up-left.js b/src/components/FeatherIcons/icons/arrow-up-left.js
deleted file mode 100644
index 21c0c40b..00000000
--- a/src/components/FeatherIcons/icons/arrow-up-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowUpLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowUpLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowUpLeft.displayName = 'ArrowUpLeft';
-
-export default ArrowUpLeft;
diff --git a/src/components/FeatherIcons/icons/arrow-up-right.js b/src/components/FeatherIcons/icons/arrow-up-right.js
deleted file mode 100644
index 5771e0b1..00000000
--- a/src/components/FeatherIcons/icons/arrow-up-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowUpRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowUpRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowUpRight.displayName = 'ArrowUpRight';
-
-export default ArrowUpRight;
diff --git a/src/components/FeatherIcons/icons/arrow-up.js b/src/components/FeatherIcons/icons/arrow-up.js
deleted file mode 100644
index 0326598e..00000000
--- a/src/components/FeatherIcons/icons/arrow-up.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ArrowUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ArrowUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ArrowUp.displayName = 'ArrowUp';
-
-export default ArrowUp;
diff --git a/src/components/FeatherIcons/icons/at-sign.js b/src/components/FeatherIcons/icons/at-sign.js
deleted file mode 100644
index 4e46d0db..00000000
--- a/src/components/FeatherIcons/icons/at-sign.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const AtSign = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-AtSign.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-AtSign.displayName = 'AtSign';
-
-export default AtSign;
diff --git a/src/components/FeatherIcons/icons/award.js b/src/components/FeatherIcons/icons/award.js
deleted file mode 100644
index a90acc19..00000000
--- a/src/components/FeatherIcons/icons/award.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Award = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Award.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Award.displayName = 'Award';
-
-export default Award;
diff --git a/src/components/FeatherIcons/icons/bar-chart-2.js b/src/components/FeatherIcons/icons/bar-chart-2.js
deleted file mode 100644
index 7943d11f..00000000
--- a/src/components/FeatherIcons/icons/bar-chart-2.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const BarChart2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-BarChart2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-BarChart2.displayName = 'BarChart2';
-
-export default BarChart2;
diff --git a/src/components/FeatherIcons/icons/bar-chart.js b/src/components/FeatherIcons/icons/bar-chart.js
deleted file mode 100644
index 29dc3e95..00000000
--- a/src/components/FeatherIcons/icons/bar-chart.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const BarChart = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-BarChart.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-BarChart.displayName = 'BarChart';
-
-export default BarChart;
diff --git a/src/components/FeatherIcons/icons/battery-charging.js b/src/components/FeatherIcons/icons/battery-charging.js
deleted file mode 100644
index 6c051089..00000000
--- a/src/components/FeatherIcons/icons/battery-charging.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const BatteryCharging = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-BatteryCharging.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-BatteryCharging.displayName = 'BatteryCharging';
-
-export default BatteryCharging;
diff --git a/src/components/FeatherIcons/icons/battery.js b/src/components/FeatherIcons/icons/battery.js
deleted file mode 100644
index 444428b9..00000000
--- a/src/components/FeatherIcons/icons/battery.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Battery = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Battery.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Battery.displayName = 'Battery';
-
-export default Battery;
diff --git a/src/components/FeatherIcons/icons/bell-off.js b/src/components/FeatherIcons/icons/bell-off.js
deleted file mode 100644
index 26cbc836..00000000
--- a/src/components/FeatherIcons/icons/bell-off.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const BellOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-BellOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-BellOff.displayName = 'BellOff';
-
-export default BellOff;
diff --git a/src/components/FeatherIcons/icons/bell.js b/src/components/FeatherIcons/icons/bell.js
deleted file mode 100644
index 02f02aa0..00000000
--- a/src/components/FeatherIcons/icons/bell.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Bell = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Bell.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Bell.displayName = 'Bell';
-
-export default Bell;
diff --git a/src/components/FeatherIcons/icons/bluetooth.js b/src/components/FeatherIcons/icons/bluetooth.js
deleted file mode 100644
index b6464c5d..00000000
--- a/src/components/FeatherIcons/icons/bluetooth.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Bluetooth = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Bluetooth.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Bluetooth.displayName = 'Bluetooth';
-
-export default Bluetooth;
diff --git a/src/components/FeatherIcons/icons/bold.js b/src/components/FeatherIcons/icons/bold.js
deleted file mode 100644
index 10a9645c..00000000
--- a/src/components/FeatherIcons/icons/bold.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Bold = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Bold.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Bold.displayName = 'Bold';
-
-export default Bold;
diff --git a/src/components/FeatherIcons/icons/book-open.js b/src/components/FeatherIcons/icons/book-open.js
deleted file mode 100644
index afd50909..00000000
--- a/src/components/FeatherIcons/icons/book-open.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const BookOpen = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-BookOpen.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-BookOpen.displayName = 'BookOpen';
-
-export default BookOpen;
diff --git a/src/components/FeatherIcons/icons/book.js b/src/components/FeatherIcons/icons/book.js
deleted file mode 100644
index 26ac921c..00000000
--- a/src/components/FeatherIcons/icons/book.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Book = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Book.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Book.displayName = 'Book';
-
-export default Book;
diff --git a/src/components/FeatherIcons/icons/bookmark.js b/src/components/FeatherIcons/icons/bookmark.js
deleted file mode 100644
index 02722db5..00000000
--- a/src/components/FeatherIcons/icons/bookmark.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Bookmark = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Bookmark.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Bookmark.displayName = 'Bookmark';
-
-export default Bookmark;
diff --git a/src/components/FeatherIcons/icons/box.js b/src/components/FeatherIcons/icons/box.js
deleted file mode 100644
index b9738b97..00000000
--- a/src/components/FeatherIcons/icons/box.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Box = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Box.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Box.displayName = 'Box';
-
-export default Box;
diff --git a/src/components/FeatherIcons/icons/briefcase.js b/src/components/FeatherIcons/icons/briefcase.js
deleted file mode 100644
index fdeb04bc..00000000
--- a/src/components/FeatherIcons/icons/briefcase.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Briefcase = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Briefcase.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Briefcase.displayName = 'Briefcase';
-
-export default Briefcase;
diff --git a/src/components/FeatherIcons/icons/calendar.js b/src/components/FeatherIcons/icons/calendar.js
deleted file mode 100644
index 77e5e413..00000000
--- a/src/components/FeatherIcons/icons/calendar.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Calendar = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Calendar.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Calendar.displayName = 'Calendar';
-
-export default Calendar;
diff --git a/src/components/FeatherIcons/icons/camera-off.js b/src/components/FeatherIcons/icons/camera-off.js
deleted file mode 100644
index 12984dd6..00000000
--- a/src/components/FeatherIcons/icons/camera-off.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CameraOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CameraOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CameraOff.displayName = 'CameraOff';
-
-export default CameraOff;
diff --git a/src/components/FeatherIcons/icons/camera.js b/src/components/FeatherIcons/icons/camera.js
deleted file mode 100644
index a4842f6e..00000000
--- a/src/components/FeatherIcons/icons/camera.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Camera = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Camera.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Camera.displayName = 'Camera';
-
-export default Camera;
diff --git a/src/components/FeatherIcons/icons/cast.js b/src/components/FeatherIcons/icons/cast.js
deleted file mode 100644
index c6befee5..00000000
--- a/src/components/FeatherIcons/icons/cast.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Cast = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Cast.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Cast.displayName = 'Cast';
-
-export default Cast;
diff --git a/src/components/FeatherIcons/icons/check-circle.js b/src/components/FeatherIcons/icons/check-circle.js
deleted file mode 100644
index f74c37b4..00000000
--- a/src/components/FeatherIcons/icons/check-circle.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CheckCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CheckCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CheckCircle.displayName = 'CheckCircle';
-
-export default CheckCircle;
diff --git a/src/components/FeatherIcons/icons/check-square.js b/src/components/FeatherIcons/icons/check-square.js
deleted file mode 100644
index 83af5ec0..00000000
--- a/src/components/FeatherIcons/icons/check-square.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CheckSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CheckSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CheckSquare.displayName = 'CheckSquare';
-
-export default CheckSquare;
diff --git a/src/components/FeatherIcons/icons/check.js b/src/components/FeatherIcons/icons/check.js
deleted file mode 100644
index c3d30bb1..00000000
--- a/src/components/FeatherIcons/icons/check.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Check = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Check.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Check.displayName = 'Check';
-
-export default Check;
diff --git a/src/components/FeatherIcons/icons/chevron-down.js b/src/components/FeatherIcons/icons/chevron-down.js
deleted file mode 100644
index 2d431730..00000000
--- a/src/components/FeatherIcons/icons/chevron-down.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ChevronDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronDown.displayName = 'ChevronDown';
-
-export default ChevronDown;
diff --git a/src/components/FeatherIcons/icons/chevron-left.js b/src/components/FeatherIcons/icons/chevron-left.js
deleted file mode 100644
index 6c2c6ed9..00000000
--- a/src/components/FeatherIcons/icons/chevron-left.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ChevronLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronLeft.displayName = 'ChevronLeft';
-
-export default ChevronLeft;
diff --git a/src/components/FeatherIcons/icons/chevron-right.js b/src/components/FeatherIcons/icons/chevron-right.js
deleted file mode 100644
index 3c9d9f13..00000000
--- a/src/components/FeatherIcons/icons/chevron-right.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ChevronRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronRight.displayName = 'ChevronRight';
-
-export default ChevronRight;
diff --git a/src/components/FeatherIcons/icons/chevron-up.js b/src/components/FeatherIcons/icons/chevron-up.js
deleted file mode 100644
index 95eb8d1c..00000000
--- a/src/components/FeatherIcons/icons/chevron-up.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ChevronUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronUp.displayName = 'ChevronUp';
-
-export default ChevronUp;
diff --git a/src/components/FeatherIcons/icons/chevrons-down.js b/src/components/FeatherIcons/icons/chevrons-down.js
deleted file mode 100644
index d0922ce0..00000000
--- a/src/components/FeatherIcons/icons/chevrons-down.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronsDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ChevronsDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronsDown.displayName = 'ChevronsDown';
-
-export default ChevronsDown;
diff --git a/src/components/FeatherIcons/icons/chevrons-left.js b/src/components/FeatherIcons/icons/chevrons-left.js
deleted file mode 100644
index 56917db9..00000000
--- a/src/components/FeatherIcons/icons/chevrons-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronsLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ChevronsLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronsLeft.displayName = 'ChevronsLeft';
-
-export default ChevronsLeft;
diff --git a/src/components/FeatherIcons/icons/chevrons-right.js b/src/components/FeatherIcons/icons/chevrons-right.js
deleted file mode 100644
index acf8d222..00000000
--- a/src/components/FeatherIcons/icons/chevrons-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronsRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ChevronsRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronsRight.displayName = 'ChevronsRight';
-
-export default ChevronsRight;
diff --git a/src/components/FeatherIcons/icons/chevrons-up.js b/src/components/FeatherIcons/icons/chevrons-up.js
deleted file mode 100644
index 6a05d502..00000000
--- a/src/components/FeatherIcons/icons/chevrons-up.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ChevronsUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ChevronsUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ChevronsUp.displayName = 'ChevronsUp';
-
-export default ChevronsUp;
diff --git a/src/components/FeatherIcons/icons/chrome.js b/src/components/FeatherIcons/icons/chrome.js
deleted file mode 100644
index 4e2e2b6e..00000000
--- a/src/components/FeatherIcons/icons/chrome.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Chrome = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Chrome.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Chrome.displayName = 'Chrome';
-
-export default Chrome;
diff --git a/src/components/FeatherIcons/icons/circle.js b/src/components/FeatherIcons/icons/circle.js
deleted file mode 100644
index d2e6b938..00000000
--- a/src/components/FeatherIcons/icons/circle.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Circle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Circle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Circle.displayName = 'Circle';
-
-export default Circle;
diff --git a/src/components/FeatherIcons/icons/clipboard.js b/src/components/FeatherIcons/icons/clipboard.js
deleted file mode 100644
index 5adc8b4c..00000000
--- a/src/components/FeatherIcons/icons/clipboard.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Clipboard = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Clipboard.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Clipboard.displayName = 'Clipboard';
-
-export default Clipboard;
diff --git a/src/components/FeatherIcons/icons/clock.js b/src/components/FeatherIcons/icons/clock.js
deleted file mode 100644
index bf6c8df9..00000000
--- a/src/components/FeatherIcons/icons/clock.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Clock = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Clock.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Clock.displayName = 'Clock';
-
-export default Clock;
diff --git a/src/components/FeatherIcons/icons/cloud-drizzle.js b/src/components/FeatherIcons/icons/cloud-drizzle.js
deleted file mode 100644
index 992da83b..00000000
--- a/src/components/FeatherIcons/icons/cloud-drizzle.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CloudDrizzle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
- );
-});
-
-CloudDrizzle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CloudDrizzle.displayName = 'CloudDrizzle';
-
-export default CloudDrizzle;
diff --git a/src/components/FeatherIcons/icons/cloud-lightning.js b/src/components/FeatherIcons/icons/cloud-lightning.js
deleted file mode 100644
index f46c1d7a..00000000
--- a/src/components/FeatherIcons/icons/cloud-lightning.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CloudLightning = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CloudLightning.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CloudLightning.displayName = 'CloudLightning';
-
-export default CloudLightning;
diff --git a/src/components/FeatherIcons/icons/cloud-off.js b/src/components/FeatherIcons/icons/cloud-off.js
deleted file mode 100644
index 81e9d361..00000000
--- a/src/components/FeatherIcons/icons/cloud-off.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CloudOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CloudOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CloudOff.displayName = 'CloudOff';
-
-export default CloudOff;
diff --git a/src/components/FeatherIcons/icons/cloud-rain.js b/src/components/FeatherIcons/icons/cloud-rain.js
deleted file mode 100644
index b2b8a8ab..00000000
--- a/src/components/FeatherIcons/icons/cloud-rain.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CloudRain = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-CloudRain.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CloudRain.displayName = 'CloudRain';
-
-export default CloudRain;
diff --git a/src/components/FeatherIcons/icons/cloud-snow.js b/src/components/FeatherIcons/icons/cloud-snow.js
deleted file mode 100644
index 246b86d5..00000000
--- a/src/components/FeatherIcons/icons/cloud-snow.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CloudSnow = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
- );
-});
-
-CloudSnow.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CloudSnow.displayName = 'CloudSnow';
-
-export default CloudSnow;
diff --git a/src/components/FeatherIcons/icons/cloud.js b/src/components/FeatherIcons/icons/cloud.js
deleted file mode 100644
index 34414e24..00000000
--- a/src/components/FeatherIcons/icons/cloud.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Cloud = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Cloud.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Cloud.displayName = 'Cloud';
-
-export default Cloud;
diff --git a/src/components/FeatherIcons/icons/code.js b/src/components/FeatherIcons/icons/code.js
deleted file mode 100644
index c09fd865..00000000
--- a/src/components/FeatherIcons/icons/code.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Code = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Code.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Code.displayName = 'Code';
-
-export default Code;
diff --git a/src/components/FeatherIcons/icons/codepen.js b/src/components/FeatherIcons/icons/codepen.js
deleted file mode 100644
index ca3c7374..00000000
--- a/src/components/FeatherIcons/icons/codepen.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Codepen = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Codepen.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Codepen.displayName = 'Codepen';
-
-export default Codepen;
diff --git a/src/components/FeatherIcons/icons/codesandbox.js b/src/components/FeatherIcons/icons/codesandbox.js
deleted file mode 100644
index c5427af8..00000000
--- a/src/components/FeatherIcons/icons/codesandbox.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Codesandbox = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
- );
-});
-
-Codesandbox.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Codesandbox.displayName = 'Codesandbox';
-
-export default Codesandbox;
diff --git a/src/components/FeatherIcons/icons/coffee.js b/src/components/FeatherIcons/icons/coffee.js
deleted file mode 100644
index c40fd1c8..00000000
--- a/src/components/FeatherIcons/icons/coffee.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Coffee = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Coffee.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Coffee.displayName = 'Coffee';
-
-export default Coffee;
diff --git a/src/components/FeatherIcons/icons/columns.js b/src/components/FeatherIcons/icons/columns.js
deleted file mode 100644
index 741134be..00000000
--- a/src/components/FeatherIcons/icons/columns.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Columns = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Columns.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Columns.displayName = 'Columns';
-
-export default Columns;
diff --git a/src/components/FeatherIcons/icons/command.js b/src/components/FeatherIcons/icons/command.js
deleted file mode 100644
index 66d16c52..00000000
--- a/src/components/FeatherIcons/icons/command.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Command = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Command.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Command.displayName = 'Command';
-
-export default Command;
diff --git a/src/components/FeatherIcons/icons/compass.js b/src/components/FeatherIcons/icons/compass.js
deleted file mode 100644
index 3a2b5385..00000000
--- a/src/components/FeatherIcons/icons/compass.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Compass = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Compass.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Compass.displayName = 'Compass';
-
-export default Compass;
diff --git a/src/components/FeatherIcons/icons/copy.js b/src/components/FeatherIcons/icons/copy.js
deleted file mode 100644
index 17d41b2c..00000000
--- a/src/components/FeatherIcons/icons/copy.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Copy = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Copy.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Copy.displayName = 'Copy';
-
-export default Copy;
diff --git a/src/components/FeatherIcons/icons/corner-down-left.js b/src/components/FeatherIcons/icons/corner-down-left.js
deleted file mode 100644
index bb307395..00000000
--- a/src/components/FeatherIcons/icons/corner-down-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerDownLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerDownLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerDownLeft.displayName = 'CornerDownLeft';
-
-export default CornerDownLeft;
diff --git a/src/components/FeatherIcons/icons/corner-down-right.js b/src/components/FeatherIcons/icons/corner-down-right.js
deleted file mode 100644
index 2f366f6b..00000000
--- a/src/components/FeatherIcons/icons/corner-down-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerDownRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerDownRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerDownRight.displayName = 'CornerDownRight';
-
-export default CornerDownRight;
diff --git a/src/components/FeatherIcons/icons/corner-left-down.js b/src/components/FeatherIcons/icons/corner-left-down.js
deleted file mode 100644
index cb35b6f5..00000000
--- a/src/components/FeatherIcons/icons/corner-left-down.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerLeftDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerLeftDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerLeftDown.displayName = 'CornerLeftDown';
-
-export default CornerLeftDown;
diff --git a/src/components/FeatherIcons/icons/corner-left-up.js b/src/components/FeatherIcons/icons/corner-left-up.js
deleted file mode 100644
index 3e9dd7da..00000000
--- a/src/components/FeatherIcons/icons/corner-left-up.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerLeftUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerLeftUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerLeftUp.displayName = 'CornerLeftUp';
-
-export default CornerLeftUp;
diff --git a/src/components/FeatherIcons/icons/corner-right-down.js b/src/components/FeatherIcons/icons/corner-right-down.js
deleted file mode 100644
index 890fc7cd..00000000
--- a/src/components/FeatherIcons/icons/corner-right-down.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerRightDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerRightDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerRightDown.displayName = 'CornerRightDown';
-
-export default CornerRightDown;
diff --git a/src/components/FeatherIcons/icons/corner-right-up.js b/src/components/FeatherIcons/icons/corner-right-up.js
deleted file mode 100644
index 43f83a41..00000000
--- a/src/components/FeatherIcons/icons/corner-right-up.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerRightUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerRightUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerRightUp.displayName = 'CornerRightUp';
-
-export default CornerRightUp;
diff --git a/src/components/FeatherIcons/icons/corner-up-left.js b/src/components/FeatherIcons/icons/corner-up-left.js
deleted file mode 100644
index 1bee81f7..00000000
--- a/src/components/FeatherIcons/icons/corner-up-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerUpLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerUpLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerUpLeft.displayName = 'CornerUpLeft';
-
-export default CornerUpLeft;
diff --git a/src/components/FeatherIcons/icons/corner-up-right.js b/src/components/FeatherIcons/icons/corner-up-right.js
deleted file mode 100644
index 9a8f4b41..00000000
--- a/src/components/FeatherIcons/icons/corner-up-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CornerUpRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CornerUpRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CornerUpRight.displayName = 'CornerUpRight';
-
-export default CornerUpRight;
diff --git a/src/components/FeatherIcons/icons/cpu.js b/src/components/FeatherIcons/icons/cpu.js
deleted file mode 100644
index b8489ad5..00000000
--- a/src/components/FeatherIcons/icons/cpu.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Cpu = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Cpu.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Cpu.displayName = 'Cpu';
-
-export default Cpu;
diff --git a/src/components/FeatherIcons/icons/credit-card.js b/src/components/FeatherIcons/icons/credit-card.js
deleted file mode 100644
index 5dd824b8..00000000
--- a/src/components/FeatherIcons/icons/credit-card.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const CreditCard = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-CreditCard.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-CreditCard.displayName = 'CreditCard';
-
-export default CreditCard;
diff --git a/src/components/FeatherIcons/icons/crop.js b/src/components/FeatherIcons/icons/crop.js
deleted file mode 100644
index 4256306c..00000000
--- a/src/components/FeatherIcons/icons/crop.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Crop = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Crop.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Crop.displayName = 'Crop';
-
-export default Crop;
diff --git a/src/components/FeatherIcons/icons/crosshair.js b/src/components/FeatherIcons/icons/crosshair.js
deleted file mode 100644
index 44394ca1..00000000
--- a/src/components/FeatherIcons/icons/crosshair.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Crosshair = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Crosshair.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Crosshair.displayName = 'Crosshair';
-
-export default Crosshair;
diff --git a/src/components/FeatherIcons/icons/database.js b/src/components/FeatherIcons/icons/database.js
deleted file mode 100644
index bf295680..00000000
--- a/src/components/FeatherIcons/icons/database.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Database = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Database.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Database.displayName = 'Database';
-
-export default Database;
diff --git a/src/components/FeatherIcons/icons/delete.js b/src/components/FeatherIcons/icons/delete.js
deleted file mode 100644
index c0599ce1..00000000
--- a/src/components/FeatherIcons/icons/delete.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Delete = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Delete.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Delete.displayName = 'Delete';
-
-export default Delete;
diff --git a/src/components/FeatherIcons/icons/disc.js b/src/components/FeatherIcons/icons/disc.js
deleted file mode 100644
index e7ce1d5a..00000000
--- a/src/components/FeatherIcons/icons/disc.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Disc = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Disc.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Disc.displayName = 'Disc';
-
-export default Disc;
diff --git a/src/components/FeatherIcons/icons/divide-circle.js b/src/components/FeatherIcons/icons/divide-circle.js
deleted file mode 100644
index db4bedcf..00000000
--- a/src/components/FeatherIcons/icons/divide-circle.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const DivideCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-DivideCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-DivideCircle.displayName = 'DivideCircle';
-
-export default DivideCircle;
diff --git a/src/components/FeatherIcons/icons/divide-square.js b/src/components/FeatherIcons/icons/divide-square.js
deleted file mode 100644
index 0677644f..00000000
--- a/src/components/FeatherIcons/icons/divide-square.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const DivideSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-DivideSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-DivideSquare.displayName = 'DivideSquare';
-
-export default DivideSquare;
diff --git a/src/components/FeatherIcons/icons/divide.js b/src/components/FeatherIcons/icons/divide.js
deleted file mode 100644
index 7679cb18..00000000
--- a/src/components/FeatherIcons/icons/divide.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Divide = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Divide.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Divide.displayName = 'Divide';
-
-export default Divide;
diff --git a/src/components/FeatherIcons/icons/dollar-sign.js b/src/components/FeatherIcons/icons/dollar-sign.js
deleted file mode 100644
index 24942f88..00000000
--- a/src/components/FeatherIcons/icons/dollar-sign.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const DollarSign = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-DollarSign.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-DollarSign.displayName = 'DollarSign';
-
-export default DollarSign;
diff --git a/src/components/FeatherIcons/icons/download-cloud.js b/src/components/FeatherIcons/icons/download-cloud.js
deleted file mode 100644
index 6980673e..00000000
--- a/src/components/FeatherIcons/icons/download-cloud.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const DownloadCloud = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-DownloadCloud.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-DownloadCloud.displayName = 'DownloadCloud';
-
-export default DownloadCloud;
diff --git a/src/components/FeatherIcons/icons/download.js b/src/components/FeatherIcons/icons/download.js
deleted file mode 100644
index eb7eb21c..00000000
--- a/src/components/FeatherIcons/icons/download.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Download = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Download.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Download.displayName = 'Download';
-
-export default Download;
diff --git a/src/components/FeatherIcons/icons/dribbble.js b/src/components/FeatherIcons/icons/dribbble.js
deleted file mode 100644
index c5c6a6a4..00000000
--- a/src/components/FeatherIcons/icons/dribbble.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Dribbble = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Dribbble.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Dribbble.displayName = 'Dribbble';
-
-export default Dribbble;
diff --git a/src/components/FeatherIcons/icons/droplet.js b/src/components/FeatherIcons/icons/droplet.js
deleted file mode 100644
index eedf2aa5..00000000
--- a/src/components/FeatherIcons/icons/droplet.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Droplet = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Droplet.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Droplet.displayName = 'Droplet';
-
-export default Droplet;
diff --git a/src/components/FeatherIcons/icons/edit-2.js b/src/components/FeatherIcons/icons/edit-2.js
deleted file mode 100644
index 18fd5c7f..00000000
--- a/src/components/FeatherIcons/icons/edit-2.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Edit2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Edit2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Edit2.displayName = 'Edit2';
-
-export default Edit2;
diff --git a/src/components/FeatherIcons/icons/edit-3.js b/src/components/FeatherIcons/icons/edit-3.js
deleted file mode 100644
index 7b420d1c..00000000
--- a/src/components/FeatherIcons/icons/edit-3.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Edit3 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Edit3.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Edit3.displayName = 'Edit3';
-
-export default Edit3;
diff --git a/src/components/FeatherIcons/icons/edit.js b/src/components/FeatherIcons/icons/edit.js
deleted file mode 100644
index 308b92d6..00000000
--- a/src/components/FeatherIcons/icons/edit.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Edit = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Edit.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Edit.displayName = 'Edit';
-
-export default Edit;
diff --git a/src/components/FeatherIcons/icons/external-link.js b/src/components/FeatherIcons/icons/external-link.js
deleted file mode 100644
index c2202cad..00000000
--- a/src/components/FeatherIcons/icons/external-link.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ExternalLink = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ExternalLink.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ExternalLink.displayName = 'ExternalLink';
-
-export default ExternalLink;
diff --git a/src/components/FeatherIcons/icons/eye-off.js b/src/components/FeatherIcons/icons/eye-off.js
deleted file mode 100644
index 366a0946..00000000
--- a/src/components/FeatherIcons/icons/eye-off.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const EyeOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-EyeOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-EyeOff.displayName = 'EyeOff';
-
-export default EyeOff;
diff --git a/src/components/FeatherIcons/icons/eye.js b/src/components/FeatherIcons/icons/eye.js
deleted file mode 100644
index c782cf09..00000000
--- a/src/components/FeatherIcons/icons/eye.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Eye = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Eye.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Eye.displayName = 'Eye';
-
-export default Eye;
diff --git a/src/components/FeatherIcons/icons/facebook.js b/src/components/FeatherIcons/icons/facebook.js
deleted file mode 100644
index a7b9edea..00000000
--- a/src/components/FeatherIcons/icons/facebook.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Facebook = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Facebook.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Facebook.displayName = 'Facebook';
-
-export default Facebook;
diff --git a/src/components/FeatherIcons/icons/fast-forward.js b/src/components/FeatherIcons/icons/fast-forward.js
deleted file mode 100644
index 94533c13..00000000
--- a/src/components/FeatherIcons/icons/fast-forward.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FastForward = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-FastForward.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FastForward.displayName = 'FastForward';
-
-export default FastForward;
diff --git a/src/components/FeatherIcons/icons/feather.js b/src/components/FeatherIcons/icons/feather.js
deleted file mode 100644
index 73964c1e..00000000
--- a/src/components/FeatherIcons/icons/feather.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Feather = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Feather.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Feather.displayName = 'Feather';
-
-export default Feather;
diff --git a/src/components/FeatherIcons/icons/figma.js b/src/components/FeatherIcons/icons/figma.js
deleted file mode 100644
index 858e24f6..00000000
--- a/src/components/FeatherIcons/icons/figma.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Figma = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Figma.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Figma.displayName = 'Figma';
-
-export default Figma;
diff --git a/src/components/FeatherIcons/icons/file-minus.js b/src/components/FeatherIcons/icons/file-minus.js
deleted file mode 100644
index 09348fe6..00000000
--- a/src/components/FeatherIcons/icons/file-minus.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FileMinus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-FileMinus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FileMinus.displayName = 'FileMinus';
-
-export default FileMinus;
diff --git a/src/components/FeatherIcons/icons/file-plus.js b/src/components/FeatherIcons/icons/file-plus.js
deleted file mode 100644
index 887d8b19..00000000
--- a/src/components/FeatherIcons/icons/file-plus.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FilePlus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-FilePlus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FilePlus.displayName = 'FilePlus';
-
-export default FilePlus;
diff --git a/src/components/FeatherIcons/icons/file-text.js b/src/components/FeatherIcons/icons/file-text.js
deleted file mode 100644
index 80e3585d..00000000
--- a/src/components/FeatherIcons/icons/file-text.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FileText = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-FileText.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FileText.displayName = 'FileText';
-
-export default FileText;
diff --git a/src/components/FeatherIcons/icons/file.js b/src/components/FeatherIcons/icons/file.js
deleted file mode 100644
index ee429fe8..00000000
--- a/src/components/FeatherIcons/icons/file.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const File = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-File.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-File.displayName = 'File';
-
-export default File;
diff --git a/src/components/FeatherIcons/icons/film.js b/src/components/FeatherIcons/icons/film.js
deleted file mode 100644
index 7006a4ac..00000000
--- a/src/components/FeatherIcons/icons/film.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Film = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Film.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Film.displayName = 'Film';
-
-export default Film;
diff --git a/src/components/FeatherIcons/icons/filter.js b/src/components/FeatherIcons/icons/filter.js
deleted file mode 100644
index 1cdc6dcd..00000000
--- a/src/components/FeatherIcons/icons/filter.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Filter = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Filter.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Filter.displayName = 'Filter';
-
-export default Filter;
diff --git a/src/components/FeatherIcons/icons/flag.js b/src/components/FeatherIcons/icons/flag.js
deleted file mode 100644
index cd8faf2e..00000000
--- a/src/components/FeatherIcons/icons/flag.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Flag = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Flag.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Flag.displayName = 'Flag';
-
-export default Flag;
diff --git a/src/components/FeatherIcons/icons/folder-minus.js b/src/components/FeatherIcons/icons/folder-minus.js
deleted file mode 100644
index f1545873..00000000
--- a/src/components/FeatherIcons/icons/folder-minus.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FolderMinus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-FolderMinus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FolderMinus.displayName = 'FolderMinus';
-
-export default FolderMinus;
diff --git a/src/components/FeatherIcons/icons/folder-plus.js b/src/components/FeatherIcons/icons/folder-plus.js
deleted file mode 100644
index ca95f72b..00000000
--- a/src/components/FeatherIcons/icons/folder-plus.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const FolderPlus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-FolderPlus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-FolderPlus.displayName = 'FolderPlus';
-
-export default FolderPlus;
diff --git a/src/components/FeatherIcons/icons/folder.js b/src/components/FeatherIcons/icons/folder.js
deleted file mode 100644
index cdf2892e..00000000
--- a/src/components/FeatherIcons/icons/folder.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Folder = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Folder.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Folder.displayName = 'Folder';
-
-export default Folder;
diff --git a/src/components/FeatherIcons/icons/framer.js b/src/components/FeatherIcons/icons/framer.js
deleted file mode 100644
index 9b75caf5..00000000
--- a/src/components/FeatherIcons/icons/framer.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Framer = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Framer.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Framer.displayName = 'Framer';
-
-export default Framer;
diff --git a/src/components/FeatherIcons/icons/frown.js b/src/components/FeatherIcons/icons/frown.js
deleted file mode 100644
index 4e851b16..00000000
--- a/src/components/FeatherIcons/icons/frown.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Frown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Frown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Frown.displayName = 'Frown';
-
-export default Frown;
diff --git a/src/components/FeatherIcons/icons/gift.js b/src/components/FeatherIcons/icons/gift.js
deleted file mode 100644
index f36dbadb..00000000
--- a/src/components/FeatherIcons/icons/gift.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Gift = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Gift.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Gift.displayName = 'Gift';
-
-export default Gift;
diff --git a/src/components/FeatherIcons/icons/git-branch.js b/src/components/FeatherIcons/icons/git-branch.js
deleted file mode 100644
index a45bc5ff..00000000
--- a/src/components/FeatherIcons/icons/git-branch.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const GitBranch = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-GitBranch.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-GitBranch.displayName = 'GitBranch';
-
-export default GitBranch;
diff --git a/src/components/FeatherIcons/icons/git-commit.js b/src/components/FeatherIcons/icons/git-commit.js
deleted file mode 100644
index b784c938..00000000
--- a/src/components/FeatherIcons/icons/git-commit.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const GitCommit = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-GitCommit.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-GitCommit.displayName = 'GitCommit';
-
-export default GitCommit;
diff --git a/src/components/FeatherIcons/icons/git-merge.js b/src/components/FeatherIcons/icons/git-merge.js
deleted file mode 100644
index 1639ce10..00000000
--- a/src/components/FeatherIcons/icons/git-merge.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const GitMerge = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-GitMerge.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-GitMerge.displayName = 'GitMerge';
-
-export default GitMerge;
diff --git a/src/components/FeatherIcons/icons/git-pull-request.js b/src/components/FeatherIcons/icons/git-pull-request.js
deleted file mode 100644
index 2c08ec60..00000000
--- a/src/components/FeatherIcons/icons/git-pull-request.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const GitPullRequest = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-GitPullRequest.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-GitPullRequest.displayName = 'GitPullRequest';
-
-export default GitPullRequest;
diff --git a/src/components/FeatherIcons/icons/github.js b/src/components/FeatherIcons/icons/github.js
deleted file mode 100644
index 96fe48fd..00000000
--- a/src/components/FeatherIcons/icons/github.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const GitHub = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-GitHub.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-GitHub.displayName = 'GitHub';
-
-export default GitHub;
diff --git a/src/components/FeatherIcons/icons/gitlab.js b/src/components/FeatherIcons/icons/gitlab.js
deleted file mode 100644
index 07210cd9..00000000
--- a/src/components/FeatherIcons/icons/gitlab.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Gitlab = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Gitlab.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Gitlab.displayName = 'Gitlab';
-
-export default Gitlab;
diff --git a/src/components/FeatherIcons/icons/globe.js b/src/components/FeatherIcons/icons/globe.js
deleted file mode 100644
index fa433031..00000000
--- a/src/components/FeatherIcons/icons/globe.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Globe = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Globe.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Globe.displayName = 'Globe';
-
-export default Globe;
diff --git a/src/components/FeatherIcons/icons/grid.js b/src/components/FeatherIcons/icons/grid.js
deleted file mode 100644
index 6d7fae55..00000000
--- a/src/components/FeatherIcons/icons/grid.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Grid = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Grid.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Grid.displayName = 'Grid';
-
-export default Grid;
diff --git a/src/components/FeatherIcons/icons/hard-drive.js b/src/components/FeatherIcons/icons/hard-drive.js
deleted file mode 100644
index 255220bb..00000000
--- a/src/components/FeatherIcons/icons/hard-drive.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const HardDrive = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-HardDrive.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-HardDrive.displayName = 'HardDrive';
-
-export default HardDrive;
diff --git a/src/components/FeatherIcons/icons/hash.js b/src/components/FeatherIcons/icons/hash.js
deleted file mode 100644
index a0994c6c..00000000
--- a/src/components/FeatherIcons/icons/hash.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Hash = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Hash.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Hash.displayName = 'Hash';
-
-export default Hash;
diff --git a/src/components/FeatherIcons/icons/headphones.js b/src/components/FeatherIcons/icons/headphones.js
deleted file mode 100644
index 74b62c74..00000000
--- a/src/components/FeatherIcons/icons/headphones.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Headphones = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Headphones.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Headphones.displayName = 'Headphones';
-
-export default Headphones;
diff --git a/src/components/FeatherIcons/icons/heart.js b/src/components/FeatherIcons/icons/heart.js
deleted file mode 100644
index d711c1da..00000000
--- a/src/components/FeatherIcons/icons/heart.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Heart = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Heart.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Heart.displayName = 'Heart';
-
-export default Heart;
diff --git a/src/components/FeatherIcons/icons/help-circle.js b/src/components/FeatherIcons/icons/help-circle.js
deleted file mode 100644
index 1fd630b2..00000000
--- a/src/components/FeatherIcons/icons/help-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const HelpCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-HelpCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-HelpCircle.displayName = 'HelpCircle';
-
-export default HelpCircle;
diff --git a/src/components/FeatherIcons/icons/hexagon.js b/src/components/FeatherIcons/icons/hexagon.js
deleted file mode 100644
index 8e5fa4e7..00000000
--- a/src/components/FeatherIcons/icons/hexagon.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Hexagon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Hexagon.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Hexagon.displayName = 'Hexagon';
-
-export default Hexagon;
diff --git a/src/components/FeatherIcons/icons/home.js b/src/components/FeatherIcons/icons/home.js
deleted file mode 100644
index 2551867a..00000000
--- a/src/components/FeatherIcons/icons/home.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Home = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Home.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Home.displayName = 'Home';
-
-export default Home;
diff --git a/src/components/FeatherIcons/icons/image.js b/src/components/FeatherIcons/icons/image.js
deleted file mode 100644
index f9bed7d6..00000000
--- a/src/components/FeatherIcons/icons/image.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Image = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Image.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Image.displayName = 'Image';
-
-export default Image;
diff --git a/src/components/FeatherIcons/icons/inbox.js b/src/components/FeatherIcons/icons/inbox.js
deleted file mode 100644
index cd395d5e..00000000
--- a/src/components/FeatherIcons/icons/inbox.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Inbox = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Inbox.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Inbox.displayName = 'Inbox';
-
-export default Inbox;
diff --git a/src/components/FeatherIcons/icons/info.js b/src/components/FeatherIcons/icons/info.js
deleted file mode 100644
index adb93eee..00000000
--- a/src/components/FeatherIcons/icons/info.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Info = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Info.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Info.displayName = 'Info';
-
-export default Info;
diff --git a/src/components/FeatherIcons/icons/instagram.js b/src/components/FeatherIcons/icons/instagram.js
deleted file mode 100644
index 1bbfcee7..00000000
--- a/src/components/FeatherIcons/icons/instagram.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Instagram = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Instagram.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Instagram.displayName = 'Instagram';
-
-export default Instagram;
diff --git a/src/components/FeatherIcons/icons/italic.js b/src/components/FeatherIcons/icons/italic.js
deleted file mode 100644
index f45c3167..00000000
--- a/src/components/FeatherIcons/icons/italic.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Italic = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Italic.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Italic.displayName = 'Italic';
-
-export default Italic;
diff --git a/src/components/FeatherIcons/icons/key.js b/src/components/FeatherIcons/icons/key.js
deleted file mode 100644
index 1ad63b2d..00000000
--- a/src/components/FeatherIcons/icons/key.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Key = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Key.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Key.displayName = 'Key';
-
-export default Key;
diff --git a/src/components/FeatherIcons/icons/layers.js b/src/components/FeatherIcons/icons/layers.js
deleted file mode 100644
index 612232b6..00000000
--- a/src/components/FeatherIcons/icons/layers.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Layers = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Layers.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Layers.displayName = 'Layers';
-
-export default Layers;
diff --git a/src/components/FeatherIcons/icons/layout.js b/src/components/FeatherIcons/icons/layout.js
deleted file mode 100644
index e26db840..00000000
--- a/src/components/FeatherIcons/icons/layout.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Layout = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Layout.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Layout.displayName = 'Layout';
-
-export default Layout;
diff --git a/src/components/FeatherIcons/icons/life-buoy.js b/src/components/FeatherIcons/icons/life-buoy.js
deleted file mode 100644
index 35327b6a..00000000
--- a/src/components/FeatherIcons/icons/life-buoy.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const LifeBuoy = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
- );
-});
-
-LifeBuoy.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-LifeBuoy.displayName = 'LifeBuoy';
-
-export default LifeBuoy;
diff --git a/src/components/FeatherIcons/icons/link-2.js b/src/components/FeatherIcons/icons/link-2.js
deleted file mode 100644
index ac9c2a40..00000000
--- a/src/components/FeatherIcons/icons/link-2.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Link2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Link2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Link2.displayName = 'Link2';
-
-export default Link2;
diff --git a/src/components/FeatherIcons/icons/link.js b/src/components/FeatherIcons/icons/link.js
deleted file mode 100644
index 9442adcd..00000000
--- a/src/components/FeatherIcons/icons/link.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Link = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Link.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Link.displayName = 'Link';
-
-export default Link;
diff --git a/src/components/FeatherIcons/icons/linkedin.js b/src/components/FeatherIcons/icons/linkedin.js
deleted file mode 100644
index 5dafcdf2..00000000
--- a/src/components/FeatherIcons/icons/linkedin.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Linkedin = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Linkedin.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Linkedin.displayName = 'Linkedin';
-
-export default Linkedin;
diff --git a/src/components/FeatherIcons/icons/list.js b/src/components/FeatherIcons/icons/list.js
deleted file mode 100644
index a92f2f7f..00000000
--- a/src/components/FeatherIcons/icons/list.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const List = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
- );
-});
-
-List.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-List.displayName = 'List';
-
-export default List;
diff --git a/src/components/FeatherIcons/icons/loader.js b/src/components/FeatherIcons/icons/loader.js
deleted file mode 100644
index a3f71a1a..00000000
--- a/src/components/FeatherIcons/icons/loader.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Loader = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Loader.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Loader.displayName = 'Loader';
-
-export default Loader;
diff --git a/src/components/FeatherIcons/icons/lock.js b/src/components/FeatherIcons/icons/lock.js
deleted file mode 100644
index 832a9478..00000000
--- a/src/components/FeatherIcons/icons/lock.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Lock = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Lock.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Lock.displayName = 'Lock';
-
-export default Lock;
diff --git a/src/components/FeatherIcons/icons/log-in.js b/src/components/FeatherIcons/icons/log-in.js
deleted file mode 100644
index aeaa9351..00000000
--- a/src/components/FeatherIcons/icons/log-in.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const LogIn = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-LogIn.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-LogIn.displayName = 'LogIn';
-
-export default LogIn;
diff --git a/src/components/FeatherIcons/icons/log-out.js b/src/components/FeatherIcons/icons/log-out.js
deleted file mode 100644
index bc9b829a..00000000
--- a/src/components/FeatherIcons/icons/log-out.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const LogOut = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-LogOut.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-LogOut.displayName = 'LogOut';
-
-export default LogOut;
diff --git a/src/components/FeatherIcons/icons/mail.js b/src/components/FeatherIcons/icons/mail.js
deleted file mode 100644
index 87c2e892..00000000
--- a/src/components/FeatherIcons/icons/mail.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Mail = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Mail.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Mail.displayName = 'Mail';
-
-export default Mail;
diff --git a/src/components/FeatherIcons/icons/map-pin.js b/src/components/FeatherIcons/icons/map-pin.js
deleted file mode 100644
index 2df6a9e9..00000000
--- a/src/components/FeatherIcons/icons/map-pin.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MapPin = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-MapPin.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MapPin.displayName = 'MapPin';
-
-export default MapPin;
diff --git a/src/components/FeatherIcons/icons/map.js b/src/components/FeatherIcons/icons/map.js
deleted file mode 100644
index 289850fa..00000000
--- a/src/components/FeatherIcons/icons/map.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Map = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Map.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Map.displayName = 'Map';
-
-export default Map;
diff --git a/src/components/FeatherIcons/icons/maximize-2.js b/src/components/FeatherIcons/icons/maximize-2.js
deleted file mode 100644
index 2a264014..00000000
--- a/src/components/FeatherIcons/icons/maximize-2.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Maximize2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Maximize2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Maximize2.displayName = 'Maximize2';
-
-export default Maximize2;
diff --git a/src/components/FeatherIcons/icons/maximize.js b/src/components/FeatherIcons/icons/maximize.js
deleted file mode 100644
index b81b7137..00000000
--- a/src/components/FeatherIcons/icons/maximize.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Maximize = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Maximize.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Maximize.displayName = 'Maximize';
-
-export default Maximize;
diff --git a/src/components/FeatherIcons/icons/meh.js b/src/components/FeatherIcons/icons/meh.js
deleted file mode 100644
index 07d55aac..00000000
--- a/src/components/FeatherIcons/icons/meh.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Meh = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Meh.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Meh.displayName = 'Meh';
-
-export default Meh;
diff --git a/src/components/FeatherIcons/icons/menu.js b/src/components/FeatherIcons/icons/menu.js
deleted file mode 100644
index 41bda48a..00000000
--- a/src/components/FeatherIcons/icons/menu.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Menu = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Menu.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Menu.displayName = 'Menu';
-
-export default Menu;
diff --git a/src/components/FeatherIcons/icons/message-circle.js b/src/components/FeatherIcons/icons/message-circle.js
deleted file mode 100644
index d3e84377..00000000
--- a/src/components/FeatherIcons/icons/message-circle.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MessageCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-MessageCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MessageCircle.displayName = 'MessageCircle';
-
-export default MessageCircle;
diff --git a/src/components/FeatherIcons/icons/message-square.js b/src/components/FeatherIcons/icons/message-square.js
deleted file mode 100644
index e73292b2..00000000
--- a/src/components/FeatherIcons/icons/message-square.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MessageSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-MessageSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MessageSquare.displayName = 'MessageSquare';
-
-export default MessageSquare;
diff --git a/src/components/FeatherIcons/icons/mic-off.js b/src/components/FeatherIcons/icons/mic-off.js
deleted file mode 100644
index 52f82f22..00000000
--- a/src/components/FeatherIcons/icons/mic-off.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MicOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-MicOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MicOff.displayName = 'MicOff';
-
-export default MicOff;
diff --git a/src/components/FeatherIcons/icons/mic.js b/src/components/FeatherIcons/icons/mic.js
deleted file mode 100644
index 5c9a3909..00000000
--- a/src/components/FeatherIcons/icons/mic.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Mic = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Mic.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Mic.displayName = 'Mic';
-
-export default Mic;
diff --git a/src/components/FeatherIcons/icons/minimize-2.js b/src/components/FeatherIcons/icons/minimize-2.js
deleted file mode 100644
index 29602d01..00000000
--- a/src/components/FeatherIcons/icons/minimize-2.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Minimize2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Minimize2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Minimize2.displayName = 'Minimize2';
-
-export default Minimize2;
diff --git a/src/components/FeatherIcons/icons/minimize.js b/src/components/FeatherIcons/icons/minimize.js
deleted file mode 100644
index abf5c8cd..00000000
--- a/src/components/FeatherIcons/icons/minimize.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Minimize = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Minimize.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Minimize.displayName = 'Minimize';
-
-export default Minimize;
diff --git a/src/components/FeatherIcons/icons/minus-circle.js b/src/components/FeatherIcons/icons/minus-circle.js
deleted file mode 100644
index cdaa010a..00000000
--- a/src/components/FeatherIcons/icons/minus-circle.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MinusCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-MinusCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MinusCircle.displayName = 'MinusCircle';
-
-export default MinusCircle;
diff --git a/src/components/FeatherIcons/icons/minus-square.js b/src/components/FeatherIcons/icons/minus-square.js
deleted file mode 100644
index 84cfeb79..00000000
--- a/src/components/FeatherIcons/icons/minus-square.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MinusSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-MinusSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MinusSquare.displayName = 'MinusSquare';
-
-export default MinusSquare;
diff --git a/src/components/FeatherIcons/icons/minus.js b/src/components/FeatherIcons/icons/minus.js
deleted file mode 100644
index 6b578cae..00000000
--- a/src/components/FeatherIcons/icons/minus.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Minus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Minus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Minus.displayName = 'Minus';
-
-export default Minus;
diff --git a/src/components/FeatherIcons/icons/monitor.js b/src/components/FeatherIcons/icons/monitor.js
deleted file mode 100644
index 0a9a2165..00000000
--- a/src/components/FeatherIcons/icons/monitor.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Monitor = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Monitor.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Monitor.displayName = 'Monitor';
-
-export default Monitor;
diff --git a/src/components/FeatherIcons/icons/moon.js b/src/components/FeatherIcons/icons/moon.js
deleted file mode 100644
index 9d5cfc87..00000000
--- a/src/components/FeatherIcons/icons/moon.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Moon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Moon.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Moon.displayName = 'Moon';
-
-export default Moon;
diff --git a/src/components/FeatherIcons/icons/more-horizontal.js b/src/components/FeatherIcons/icons/more-horizontal.js
deleted file mode 100644
index cb20e499..00000000
--- a/src/components/FeatherIcons/icons/more-horizontal.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MoreHorizontal = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-MoreHorizontal.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MoreHorizontal.displayName = 'MoreHorizontal';
-
-export default MoreHorizontal;
diff --git a/src/components/FeatherIcons/icons/more-vertical.js b/src/components/FeatherIcons/icons/more-vertical.js
deleted file mode 100644
index 35cef6fd..00000000
--- a/src/components/FeatherIcons/icons/more-vertical.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MoreVertical = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-MoreVertical.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MoreVertical.displayName = 'MoreVertical';
-
-export default MoreVertical;
diff --git a/src/components/FeatherIcons/icons/mouse-pointer.js b/src/components/FeatherIcons/icons/mouse-pointer.js
deleted file mode 100644
index 46377ed2..00000000
--- a/src/components/FeatherIcons/icons/mouse-pointer.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const MousePointer = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-MousePointer.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-MousePointer.displayName = 'MousePointer';
-
-export default MousePointer;
diff --git a/src/components/FeatherIcons/icons/move.js b/src/components/FeatherIcons/icons/move.js
deleted file mode 100644
index d54305dc..00000000
--- a/src/components/FeatherIcons/icons/move.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Move = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
- );
-});
-
-Move.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Move.displayName = 'Move';
-
-export default Move;
diff --git a/src/components/FeatherIcons/icons/music.js b/src/components/FeatherIcons/icons/music.js
deleted file mode 100644
index 3101c556..00000000
--- a/src/components/FeatherIcons/icons/music.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Music = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Music.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Music.displayName = 'Music';
-
-export default Music;
diff --git a/src/components/FeatherIcons/icons/navigation-2.js b/src/components/FeatherIcons/icons/navigation-2.js
deleted file mode 100644
index c68fe48e..00000000
--- a/src/components/FeatherIcons/icons/navigation-2.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Navigation2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Navigation2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Navigation2.displayName = 'Navigation2';
-
-export default Navigation2;
diff --git a/src/components/FeatherIcons/icons/navigation.js b/src/components/FeatherIcons/icons/navigation.js
deleted file mode 100644
index 1db8e427..00000000
--- a/src/components/FeatherIcons/icons/navigation.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Navigation = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Navigation.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Navigation.displayName = 'Navigation';
-
-export default Navigation;
diff --git a/src/components/FeatherIcons/icons/octagon.js b/src/components/FeatherIcons/icons/octagon.js
deleted file mode 100644
index 912575ca..00000000
--- a/src/components/FeatherIcons/icons/octagon.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Octagon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Octagon.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Octagon.displayName = 'Octagon';
-
-export default Octagon;
diff --git a/src/components/FeatherIcons/icons/package.js b/src/components/FeatherIcons/icons/package.js
deleted file mode 100644
index 44d491cd..00000000
--- a/src/components/FeatherIcons/icons/package.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Package = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Package.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Package.displayName = 'Package';
-
-export default Package;
diff --git a/src/components/FeatherIcons/icons/paperclip.js b/src/components/FeatherIcons/icons/paperclip.js
deleted file mode 100644
index c50b856c..00000000
--- a/src/components/FeatherIcons/icons/paperclip.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Paperclip = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Paperclip.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Paperclip.displayName = 'Paperclip';
-
-export default Paperclip;
diff --git a/src/components/FeatherIcons/icons/pause-circle.js b/src/components/FeatherIcons/icons/pause-circle.js
deleted file mode 100644
index 96397487..00000000
--- a/src/components/FeatherIcons/icons/pause-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PauseCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PauseCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PauseCircle.displayName = 'PauseCircle';
-
-export default PauseCircle;
diff --git a/src/components/FeatherIcons/icons/pause.js b/src/components/FeatherIcons/icons/pause.js
deleted file mode 100644
index 377f493e..00000000
--- a/src/components/FeatherIcons/icons/pause.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Pause = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Pause.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Pause.displayName = 'Pause';
-
-export default Pause;
diff --git a/src/components/FeatherIcons/icons/pen-tool.js b/src/components/FeatherIcons/icons/pen-tool.js
deleted file mode 100644
index c1788053..00000000
--- a/src/components/FeatherIcons/icons/pen-tool.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PenTool = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-PenTool.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PenTool.displayName = 'PenTool';
-
-export default PenTool;
diff --git a/src/components/FeatherIcons/icons/percent.js b/src/components/FeatherIcons/icons/percent.js
deleted file mode 100644
index 8c1d3ab9..00000000
--- a/src/components/FeatherIcons/icons/percent.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Percent = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Percent.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Percent.displayName = 'Percent';
-
-export default Percent;
diff --git a/src/components/FeatherIcons/icons/phone-call.js b/src/components/FeatherIcons/icons/phone-call.js
deleted file mode 100644
index b1c3a3d6..00000000
--- a/src/components/FeatherIcons/icons/phone-call.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneCall = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-PhoneCall.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneCall.displayName = 'PhoneCall';
-
-export default PhoneCall;
diff --git a/src/components/FeatherIcons/icons/phone-forwarded.js b/src/components/FeatherIcons/icons/phone-forwarded.js
deleted file mode 100644
index 82efb87a..00000000
--- a/src/components/FeatherIcons/icons/phone-forwarded.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneForwarded = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PhoneForwarded.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneForwarded.displayName = 'PhoneForwarded';
-
-export default PhoneForwarded;
diff --git a/src/components/FeatherIcons/icons/phone-incoming.js b/src/components/FeatherIcons/icons/phone-incoming.js
deleted file mode 100644
index 8a09a7fd..00000000
--- a/src/components/FeatherIcons/icons/phone-incoming.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneIncoming = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PhoneIncoming.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneIncoming.displayName = 'PhoneIncoming';
-
-export default PhoneIncoming;
diff --git a/src/components/FeatherIcons/icons/phone-missed.js b/src/components/FeatherIcons/icons/phone-missed.js
deleted file mode 100644
index ef27c3dd..00000000
--- a/src/components/FeatherIcons/icons/phone-missed.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneMissed = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PhoneMissed.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneMissed.displayName = 'PhoneMissed';
-
-export default PhoneMissed;
diff --git a/src/components/FeatherIcons/icons/phone-off.js b/src/components/FeatherIcons/icons/phone-off.js
deleted file mode 100644
index 6d0d60a4..00000000
--- a/src/components/FeatherIcons/icons/phone-off.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-PhoneOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneOff.displayName = 'PhoneOff';
-
-export default PhoneOff;
diff --git a/src/components/FeatherIcons/icons/phone-outgoing.js b/src/components/FeatherIcons/icons/phone-outgoing.js
deleted file mode 100644
index 4c604433..00000000
--- a/src/components/FeatherIcons/icons/phone-outgoing.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PhoneOutgoing = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PhoneOutgoing.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PhoneOutgoing.displayName = 'PhoneOutgoing';
-
-export default PhoneOutgoing;
diff --git a/src/components/FeatherIcons/icons/phone.js b/src/components/FeatherIcons/icons/phone.js
deleted file mode 100644
index da6e945d..00000000
--- a/src/components/FeatherIcons/icons/phone.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Phone = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Phone.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Phone.displayName = 'Phone';
-
-export default Phone;
diff --git a/src/components/FeatherIcons/icons/pie-chart.js b/src/components/FeatherIcons/icons/pie-chart.js
deleted file mode 100644
index fae14d79..00000000
--- a/src/components/FeatherIcons/icons/pie-chart.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PieChart = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-PieChart.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PieChart.displayName = 'PieChart';
-
-export default PieChart;
diff --git a/src/components/FeatherIcons/icons/play-circle.js b/src/components/FeatherIcons/icons/play-circle.js
deleted file mode 100644
index 17b9f5c5..00000000
--- a/src/components/FeatherIcons/icons/play-circle.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PlayCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-PlayCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PlayCircle.displayName = 'PlayCircle';
-
-export default PlayCircle;
diff --git a/src/components/FeatherIcons/icons/play.js b/src/components/FeatherIcons/icons/play.js
deleted file mode 100644
index 4e215ac0..00000000
--- a/src/components/FeatherIcons/icons/play.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Play = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Play.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Play.displayName = 'Play';
-
-export default Play;
diff --git a/src/components/FeatherIcons/icons/plus-circle.js b/src/components/FeatherIcons/icons/plus-circle.js
deleted file mode 100644
index fb0433d4..00000000
--- a/src/components/FeatherIcons/icons/plus-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PlusCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PlusCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PlusCircle.displayName = 'PlusCircle';
-
-export default PlusCircle;
diff --git a/src/components/FeatherIcons/icons/plus-square.js b/src/components/FeatherIcons/icons/plus-square.js
deleted file mode 100644
index a662635a..00000000
--- a/src/components/FeatherIcons/icons/plus-square.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const PlusSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-PlusSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-PlusSquare.displayName = 'PlusSquare';
-
-export default PlusSquare;
diff --git a/src/components/FeatherIcons/icons/plus.js b/src/components/FeatherIcons/icons/plus.js
deleted file mode 100644
index e674dfa1..00000000
--- a/src/components/FeatherIcons/icons/plus.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Plus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Plus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Plus.displayName = 'Plus';
-
-export default Plus;
diff --git a/src/components/FeatherIcons/icons/pocket.js b/src/components/FeatherIcons/icons/pocket.js
deleted file mode 100644
index a7c1275c..00000000
--- a/src/components/FeatherIcons/icons/pocket.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Pocket = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Pocket.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Pocket.displayName = 'Pocket';
-
-export default Pocket;
diff --git a/src/components/FeatherIcons/icons/power.js b/src/components/FeatherIcons/icons/power.js
deleted file mode 100644
index c5cb5a69..00000000
--- a/src/components/FeatherIcons/icons/power.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Power = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Power.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Power.displayName = 'Power';
-
-export default Power;
diff --git a/src/components/FeatherIcons/icons/printer.js b/src/components/FeatherIcons/icons/printer.js
deleted file mode 100644
index 551b0ed3..00000000
--- a/src/components/FeatherIcons/icons/printer.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Printer = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Printer.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Printer.displayName = 'Printer';
-
-export default Printer;
diff --git a/src/components/FeatherIcons/icons/radio.js b/src/components/FeatherIcons/icons/radio.js
deleted file mode 100644
index 5c009b17..00000000
--- a/src/components/FeatherIcons/icons/radio.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Radio = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Radio.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Radio.displayName = 'Radio';
-
-export default Radio;
diff --git a/src/components/FeatherIcons/icons/refresh-ccw.js b/src/components/FeatherIcons/icons/refresh-ccw.js
deleted file mode 100644
index 9522ed2e..00000000
--- a/src/components/FeatherIcons/icons/refresh-ccw.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const RefreshCcw = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-RefreshCcw.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-RefreshCcw.displayName = 'RefreshCcw';
-
-export default RefreshCcw;
diff --git a/src/components/FeatherIcons/icons/refresh-cw.js b/src/components/FeatherIcons/icons/refresh-cw.js
deleted file mode 100644
index 109de6ff..00000000
--- a/src/components/FeatherIcons/icons/refresh-cw.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const RefreshCw = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-RefreshCw.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-RefreshCw.displayName = 'RefreshCw';
-
-export default RefreshCw;
diff --git a/src/components/FeatherIcons/icons/repeat.js b/src/components/FeatherIcons/icons/repeat.js
deleted file mode 100644
index 803d00ab..00000000
--- a/src/components/FeatherIcons/icons/repeat.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Repeat = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Repeat.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Repeat.displayName = 'Repeat';
-
-export default Repeat;
diff --git a/src/components/FeatherIcons/icons/rewind.js b/src/components/FeatherIcons/icons/rewind.js
deleted file mode 100644
index 43c1aea9..00000000
--- a/src/components/FeatherIcons/icons/rewind.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Rewind = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Rewind.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Rewind.displayName = 'Rewind';
-
-export default Rewind;
diff --git a/src/components/FeatherIcons/icons/rotate-ccw.js b/src/components/FeatherIcons/icons/rotate-ccw.js
deleted file mode 100644
index 65dc5032..00000000
--- a/src/components/FeatherIcons/icons/rotate-ccw.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const RotateCcw = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-RotateCcw.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-RotateCcw.displayName = 'RotateCcw';
-
-export default RotateCcw;
diff --git a/src/components/FeatherIcons/icons/rotate-cw.js b/src/components/FeatherIcons/icons/rotate-cw.js
deleted file mode 100644
index 132bb949..00000000
--- a/src/components/FeatherIcons/icons/rotate-cw.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const RotateCw = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-RotateCw.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-RotateCw.displayName = 'RotateCw';
-
-export default RotateCw;
diff --git a/src/components/FeatherIcons/icons/rss.js b/src/components/FeatherIcons/icons/rss.js
deleted file mode 100644
index b1adf91c..00000000
--- a/src/components/FeatherIcons/icons/rss.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Rss = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Rss.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Rss.displayName = 'Rss';
-
-export default Rss;
diff --git a/src/components/FeatherIcons/icons/save.js b/src/components/FeatherIcons/icons/save.js
deleted file mode 100644
index 821afe57..00000000
--- a/src/components/FeatherIcons/icons/save.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Save = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Save.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Save.displayName = 'Save';
-
-export default Save;
diff --git a/src/components/FeatherIcons/icons/scissors.js b/src/components/FeatherIcons/icons/scissors.js
deleted file mode 100644
index 64bea7e7..00000000
--- a/src/components/FeatherIcons/icons/scissors.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Scissors = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Scissors.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Scissors.displayName = 'Scissors';
-
-export default Scissors;
diff --git a/src/components/FeatherIcons/icons/search.js b/src/components/FeatherIcons/icons/search.js
deleted file mode 100644
index d3b3a157..00000000
--- a/src/components/FeatherIcons/icons/search.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Search = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Search.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Search.displayName = 'Search';
-
-export default Search;
diff --git a/src/components/FeatherIcons/icons/send.js b/src/components/FeatherIcons/icons/send.js
deleted file mode 100644
index 2748a473..00000000
--- a/src/components/FeatherIcons/icons/send.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Send = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Send.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Send.displayName = 'Send';
-
-export default Send;
diff --git a/src/components/FeatherIcons/icons/server.js b/src/components/FeatherIcons/icons/server.js
deleted file mode 100644
index a6e63f17..00000000
--- a/src/components/FeatherIcons/icons/server.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Server = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Server.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Server.displayName = 'Server';
-
-export default Server;
diff --git a/src/components/FeatherIcons/icons/settings.js b/src/components/FeatherIcons/icons/settings.js
deleted file mode 100644
index 7f9dbebe..00000000
--- a/src/components/FeatherIcons/icons/settings.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Settings = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Settings.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Settings.displayName = 'Settings';
-
-export default Settings;
diff --git a/src/components/FeatherIcons/icons/share-2.js b/src/components/FeatherIcons/icons/share-2.js
deleted file mode 100644
index f19924c3..00000000
--- a/src/components/FeatherIcons/icons/share-2.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Share2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Share2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Share2.displayName = 'Share2';
-
-export default Share2;
diff --git a/src/components/FeatherIcons/icons/share.js b/src/components/FeatherIcons/icons/share.js
deleted file mode 100644
index 502c1750..00000000
--- a/src/components/FeatherIcons/icons/share.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Share = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Share.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Share.displayName = 'Share';
-
-export default Share;
diff --git a/src/components/FeatherIcons/icons/shield-off.js b/src/components/FeatherIcons/icons/shield-off.js
deleted file mode 100644
index 30716260..00000000
--- a/src/components/FeatherIcons/icons/shield-off.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ShieldOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ShieldOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ShieldOff.displayName = 'ShieldOff';
-
-export default ShieldOff;
diff --git a/src/components/FeatherIcons/icons/shield.js b/src/components/FeatherIcons/icons/shield.js
deleted file mode 100644
index 760a6b60..00000000
--- a/src/components/FeatherIcons/icons/shield.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Shield = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Shield.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Shield.displayName = 'Shield';
-
-export default Shield;
diff --git a/src/components/FeatherIcons/icons/shopping-bag.js b/src/components/FeatherIcons/icons/shopping-bag.js
deleted file mode 100644
index 2060a774..00000000
--- a/src/components/FeatherIcons/icons/shopping-bag.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ShoppingBag = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ShoppingBag.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ShoppingBag.displayName = 'ShoppingBag';
-
-export default ShoppingBag;
diff --git a/src/components/FeatherIcons/icons/shopping-cart.js b/src/components/FeatherIcons/icons/shopping-cart.js
deleted file mode 100644
index 86fdb9d6..00000000
--- a/src/components/FeatherIcons/icons/shopping-cart.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ShoppingCart = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ShoppingCart.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ShoppingCart.displayName = 'ShoppingCart';
-
-export default ShoppingCart;
diff --git a/src/components/FeatherIcons/icons/shuffle.js b/src/components/FeatherIcons/icons/shuffle.js
deleted file mode 100644
index 837df756..00000000
--- a/src/components/FeatherIcons/icons/shuffle.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Shuffle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
- );
-});
-
-Shuffle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Shuffle.displayName = 'Shuffle';
-
-export default Shuffle;
diff --git a/src/components/FeatherIcons/icons/sidebar.js b/src/components/FeatherIcons/icons/sidebar.js
deleted file mode 100644
index 43a6f1d0..00000000
--- a/src/components/FeatherIcons/icons/sidebar.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Sidebar = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Sidebar.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Sidebar.displayName = 'Sidebar';
-
-export default Sidebar;
diff --git a/src/components/FeatherIcons/icons/skip-back.js b/src/components/FeatherIcons/icons/skip-back.js
deleted file mode 100644
index 0a2b4485..00000000
--- a/src/components/FeatherIcons/icons/skip-back.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const SkipBack = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-SkipBack.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-SkipBack.displayName = 'SkipBack';
-
-export default SkipBack;
diff --git a/src/components/FeatherIcons/icons/skip-forward.js b/src/components/FeatherIcons/icons/skip-forward.js
deleted file mode 100644
index 380ea255..00000000
--- a/src/components/FeatherIcons/icons/skip-forward.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const SkipForward = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-SkipForward.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-SkipForward.displayName = 'SkipForward';
-
-export default SkipForward;
diff --git a/src/components/FeatherIcons/icons/slack.js b/src/components/FeatherIcons/icons/slack.js
deleted file mode 100644
index 854c8ad7..00000000
--- a/src/components/FeatherIcons/icons/slack.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Slack = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Slack.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Slack.displayName = 'Slack';
-
-export default Slack;
diff --git a/src/components/FeatherIcons/icons/slash.js b/src/components/FeatherIcons/icons/slash.js
deleted file mode 100644
index 73d2bbd5..00000000
--- a/src/components/FeatherIcons/icons/slash.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Slash = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Slash.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Slash.displayName = 'Slash';
-
-export default Slash;
diff --git a/src/components/FeatherIcons/icons/sliders.js b/src/components/FeatherIcons/icons/sliders.js
deleted file mode 100644
index 6f79a341..00000000
--- a/src/components/FeatherIcons/icons/sliders.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Sliders = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Sliders.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Sliders.displayName = 'Sliders';
-
-export default Sliders;
diff --git a/src/components/FeatherIcons/icons/smartphone.js b/src/components/FeatherIcons/icons/smartphone.js
deleted file mode 100644
index dafbebd4..00000000
--- a/src/components/FeatherIcons/icons/smartphone.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Smartphone = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Smartphone.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Smartphone.displayName = 'Smartphone';
-
-export default Smartphone;
diff --git a/src/components/FeatherIcons/icons/smile.js b/src/components/FeatherIcons/icons/smile.js
deleted file mode 100644
index f47c363e..00000000
--- a/src/components/FeatherIcons/icons/smile.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Smile = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Smile.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Smile.displayName = 'Smile';
-
-export default Smile;
diff --git a/src/components/FeatherIcons/icons/speaker.js b/src/components/FeatherIcons/icons/speaker.js
deleted file mode 100644
index f74416b8..00000000
--- a/src/components/FeatherIcons/icons/speaker.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Speaker = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Speaker.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Speaker.displayName = 'Speaker';
-
-export default Speaker;
diff --git a/src/components/FeatherIcons/icons/square.js b/src/components/FeatherIcons/icons/square.js
deleted file mode 100644
index c48ed123..00000000
--- a/src/components/FeatherIcons/icons/square.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Square = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Square.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Square.displayName = 'Square';
-
-export default Square;
diff --git a/src/components/FeatherIcons/icons/star.js b/src/components/FeatherIcons/icons/star.js
deleted file mode 100644
index 0d8351a8..00000000
--- a/src/components/FeatherIcons/icons/star.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Star = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Star.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Star.displayName = 'Star';
-
-export default Star;
diff --git a/src/components/FeatherIcons/icons/stop-circle.js b/src/components/FeatherIcons/icons/stop-circle.js
deleted file mode 100644
index 257bccd7..00000000
--- a/src/components/FeatherIcons/icons/stop-circle.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const StopCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-StopCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-StopCircle.displayName = 'StopCircle';
-
-export default StopCircle;
diff --git a/src/components/FeatherIcons/icons/sun.js b/src/components/FeatherIcons/icons/sun.js
deleted file mode 100644
index fd3025da..00000000
--- a/src/components/FeatherIcons/icons/sun.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Sun = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Sun.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Sun.displayName = 'Sun';
-
-export default Sun;
diff --git a/src/components/FeatherIcons/icons/sunrise.js b/src/components/FeatherIcons/icons/sunrise.js
deleted file mode 100644
index 3015d223..00000000
--- a/src/components/FeatherIcons/icons/sunrise.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Sunrise = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Sunrise.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Sunrise.displayName = 'Sunrise';
-
-export default Sunrise;
diff --git a/src/components/FeatherIcons/icons/sunset.js b/src/components/FeatherIcons/icons/sunset.js
deleted file mode 100644
index 6ef95bfd..00000000
--- a/src/components/FeatherIcons/icons/sunset.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Sunset = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
-
- );
-});
-
-Sunset.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Sunset.displayName = 'Sunset';
-
-export default Sunset;
diff --git a/src/components/FeatherIcons/icons/tablet.js b/src/components/FeatherIcons/icons/tablet.js
deleted file mode 100644
index b3011e82..00000000
--- a/src/components/FeatherIcons/icons/tablet.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Tablet = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Tablet.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Tablet.displayName = 'Tablet';
-
-export default Tablet;
diff --git a/src/components/FeatherIcons/icons/tag.js b/src/components/FeatherIcons/icons/tag.js
deleted file mode 100644
index ddf41051..00000000
--- a/src/components/FeatherIcons/icons/tag.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Tag = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Tag.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Tag.displayName = 'Tag';
-
-export default Tag;
diff --git a/src/components/FeatherIcons/icons/target.js b/src/components/FeatherIcons/icons/target.js
deleted file mode 100644
index fe016f8f..00000000
--- a/src/components/FeatherIcons/icons/target.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Target = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Target.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Target.displayName = 'Target';
-
-export default Target;
diff --git a/src/components/FeatherIcons/icons/terminal.js b/src/components/FeatherIcons/icons/terminal.js
deleted file mode 100644
index 5ddfae4d..00000000
--- a/src/components/FeatherIcons/icons/terminal.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Terminal = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Terminal.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Terminal.displayName = 'Terminal';
-
-export default Terminal;
diff --git a/src/components/FeatherIcons/icons/thermometer.js b/src/components/FeatherIcons/icons/thermometer.js
deleted file mode 100644
index c673db8c..00000000
--- a/src/components/FeatherIcons/icons/thermometer.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Thermometer = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Thermometer.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Thermometer.displayName = 'Thermometer';
-
-export default Thermometer;
diff --git a/src/components/FeatherIcons/icons/thumbs-down.js b/src/components/FeatherIcons/icons/thumbs-down.js
deleted file mode 100644
index 69769991..00000000
--- a/src/components/FeatherIcons/icons/thumbs-down.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ThumbsDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ThumbsDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ThumbsDown.displayName = 'ThumbsDown';
-
-export default ThumbsDown;
diff --git a/src/components/FeatherIcons/icons/thumbs-up.js b/src/components/FeatherIcons/icons/thumbs-up.js
deleted file mode 100644
index a958abbb..00000000
--- a/src/components/FeatherIcons/icons/thumbs-up.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ThumbsUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-ThumbsUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ThumbsUp.displayName = 'ThumbsUp';
-
-export default ThumbsUp;
diff --git a/src/components/FeatherIcons/icons/toggle-left.js b/src/components/FeatherIcons/icons/toggle-left.js
deleted file mode 100644
index 4cd3e1f3..00000000
--- a/src/components/FeatherIcons/icons/toggle-left.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ToggleLeft = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ToggleLeft.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ToggleLeft.displayName = 'ToggleLeft';
-
-export default ToggleLeft;
diff --git a/src/components/FeatherIcons/icons/toggle-right.js b/src/components/FeatherIcons/icons/toggle-right.js
deleted file mode 100644
index 82edafb9..00000000
--- a/src/components/FeatherIcons/icons/toggle-right.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ToggleRight = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-ToggleRight.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ToggleRight.displayName = 'ToggleRight';
-
-export default ToggleRight;
diff --git a/src/components/FeatherIcons/icons/tool.js b/src/components/FeatherIcons/icons/tool.js
deleted file mode 100644
index 4b658318..00000000
--- a/src/components/FeatherIcons/icons/tool.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Tool = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Tool.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Tool.displayName = 'Tool';
-
-export default Tool;
diff --git a/src/components/FeatherIcons/icons/trash-2.js b/src/components/FeatherIcons/icons/trash-2.js
deleted file mode 100644
index 30fdd025..00000000
--- a/src/components/FeatherIcons/icons/trash-2.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Trash2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Trash2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Trash2.displayName = 'Trash2';
-
-export default Trash2;
diff --git a/src/components/FeatherIcons/icons/trash.js b/src/components/FeatherIcons/icons/trash.js
deleted file mode 100644
index 865a35e2..00000000
--- a/src/components/FeatherIcons/icons/trash.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Trash = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Trash.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Trash.displayName = 'Trash';
-
-export default Trash;
diff --git a/src/components/FeatherIcons/icons/trello.js b/src/components/FeatherIcons/icons/trello.js
deleted file mode 100644
index 16f041b9..00000000
--- a/src/components/FeatherIcons/icons/trello.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Trello = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Trello.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Trello.displayName = 'Trello';
-
-export default Trello;
diff --git a/src/components/FeatherIcons/icons/trending-down.js b/src/components/FeatherIcons/icons/trending-down.js
deleted file mode 100644
index 07e70a69..00000000
--- a/src/components/FeatherIcons/icons/trending-down.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const TrendingDown = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-TrendingDown.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-TrendingDown.displayName = 'TrendingDown';
-
-export default TrendingDown;
diff --git a/src/components/FeatherIcons/icons/trending-up.js b/src/components/FeatherIcons/icons/trending-up.js
deleted file mode 100644
index f3c594fd..00000000
--- a/src/components/FeatherIcons/icons/trending-up.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const TrendingUp = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-TrendingUp.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-TrendingUp.displayName = 'TrendingUp';
-
-export default TrendingUp;
diff --git a/src/components/FeatherIcons/icons/triangle.js b/src/components/FeatherIcons/icons/triangle.js
deleted file mode 100644
index af07c3aa..00000000
--- a/src/components/FeatherIcons/icons/triangle.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Triangle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Triangle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Triangle.displayName = 'Triangle';
-
-export default Triangle;
diff --git a/src/components/FeatherIcons/icons/truck.js b/src/components/FeatherIcons/icons/truck.js
deleted file mode 100644
index dd8d6555..00000000
--- a/src/components/FeatherIcons/icons/truck.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Truck = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Truck.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Truck.displayName = 'Truck';
-
-export default Truck;
diff --git a/src/components/FeatherIcons/icons/tv.js b/src/components/FeatherIcons/icons/tv.js
deleted file mode 100644
index 4b5eb1a9..00000000
--- a/src/components/FeatherIcons/icons/tv.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Tv = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Tv.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Tv.displayName = 'Tv';
-
-export default Tv;
diff --git a/src/components/FeatherIcons/icons/twitch.js b/src/components/FeatherIcons/icons/twitch.js
deleted file mode 100644
index 497d4859..00000000
--- a/src/components/FeatherIcons/icons/twitch.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Twitch = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Twitch.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Twitch.displayName = 'Twitch';
-
-export default Twitch;
diff --git a/src/components/FeatherIcons/icons/twitter.js b/src/components/FeatherIcons/icons/twitter.js
deleted file mode 100644
index f2ddebde..00000000
--- a/src/components/FeatherIcons/icons/twitter.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Twitter = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Twitter.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Twitter.displayName = 'Twitter';
-
-export default Twitter;
diff --git a/src/components/FeatherIcons/icons/type.js b/src/components/FeatherIcons/icons/type.js
deleted file mode 100644
index 7b19c426..00000000
--- a/src/components/FeatherIcons/icons/type.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Type = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Type.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Type.displayName = 'Type';
-
-export default Type;
diff --git a/src/components/FeatherIcons/icons/umbrella.js b/src/components/FeatherIcons/icons/umbrella.js
deleted file mode 100644
index 1ec2dce1..00000000
--- a/src/components/FeatherIcons/icons/umbrella.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Umbrella = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Umbrella.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Umbrella.displayName = 'Umbrella';
-
-export default Umbrella;
diff --git a/src/components/FeatherIcons/icons/underline.js b/src/components/FeatherIcons/icons/underline.js
deleted file mode 100644
index b41e2d11..00000000
--- a/src/components/FeatherIcons/icons/underline.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Underline = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Underline.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Underline.displayName = 'Underline';
-
-export default Underline;
diff --git a/src/components/FeatherIcons/icons/unlock.js b/src/components/FeatherIcons/icons/unlock.js
deleted file mode 100644
index afffc179..00000000
--- a/src/components/FeatherIcons/icons/unlock.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Unlock = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Unlock.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Unlock.displayName = 'Unlock';
-
-export default Unlock;
diff --git a/src/components/FeatherIcons/icons/upload-cloud.js b/src/components/FeatherIcons/icons/upload-cloud.js
deleted file mode 100644
index 9126887f..00000000
--- a/src/components/FeatherIcons/icons/upload-cloud.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const UploadCloud = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-UploadCloud.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-UploadCloud.displayName = 'UploadCloud';
-
-export default UploadCloud;
diff --git a/src/components/FeatherIcons/icons/upload.js b/src/components/FeatherIcons/icons/upload.js
deleted file mode 100644
index 87c9bf76..00000000
--- a/src/components/FeatherIcons/icons/upload.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Upload = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Upload.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Upload.displayName = 'Upload';
-
-export default Upload;
diff --git a/src/components/FeatherIcons/icons/user-check.js b/src/components/FeatherIcons/icons/user-check.js
deleted file mode 100644
index bb563a29..00000000
--- a/src/components/FeatherIcons/icons/user-check.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const UserCheck = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-UserCheck.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-UserCheck.displayName = 'UserCheck';
-
-export default UserCheck;
diff --git a/src/components/FeatherIcons/icons/user-minus.js b/src/components/FeatherIcons/icons/user-minus.js
deleted file mode 100644
index 9ef8e319..00000000
--- a/src/components/FeatherIcons/icons/user-minus.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const UserMinus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-UserMinus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-UserMinus.displayName = 'UserMinus';
-
-export default UserMinus;
diff --git a/src/components/FeatherIcons/icons/user-plus.js b/src/components/FeatherIcons/icons/user-plus.js
deleted file mode 100644
index 26ad8995..00000000
--- a/src/components/FeatherIcons/icons/user-plus.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const UserPlus = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-UserPlus.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-UserPlus.displayName = 'UserPlus';
-
-export default UserPlus;
diff --git a/src/components/FeatherIcons/icons/user-x.js b/src/components/FeatherIcons/icons/user-x.js
deleted file mode 100644
index 196051be..00000000
--- a/src/components/FeatherIcons/icons/user-x.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const UserX = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-UserX.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-UserX.displayName = 'UserX';
-
-export default UserX;
diff --git a/src/components/FeatherIcons/icons/user.js b/src/components/FeatherIcons/icons/user.js
deleted file mode 100644
index 2fceefda..00000000
--- a/src/components/FeatherIcons/icons/user.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const User = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-User.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-User.displayName = 'User';
-
-export default User;
diff --git a/src/components/FeatherIcons/icons/users.js b/src/components/FeatherIcons/icons/users.js
deleted file mode 100644
index a84c1aa1..00000000
--- a/src/components/FeatherIcons/icons/users.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Users = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Users.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Users.displayName = 'Users';
-
-export default Users;
diff --git a/src/components/FeatherIcons/icons/video-off.js b/src/components/FeatherIcons/icons/video-off.js
deleted file mode 100644
index 23dc5846..00000000
--- a/src/components/FeatherIcons/icons/video-off.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const VideoOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-VideoOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-VideoOff.displayName = 'VideoOff';
-
-export default VideoOff;
diff --git a/src/components/FeatherIcons/icons/video.js b/src/components/FeatherIcons/icons/video.js
deleted file mode 100644
index 1e5093d0..00000000
--- a/src/components/FeatherIcons/icons/video.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Video = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Video.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Video.displayName = 'Video';
-
-export default Video;
diff --git a/src/components/FeatherIcons/icons/voicemail.js b/src/components/FeatherIcons/icons/voicemail.js
deleted file mode 100644
index 890c2e11..00000000
--- a/src/components/FeatherIcons/icons/voicemail.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Voicemail = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Voicemail.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Voicemail.displayName = 'Voicemail';
-
-export default Voicemail;
diff --git a/src/components/FeatherIcons/icons/volume-1.js b/src/components/FeatherIcons/icons/volume-1.js
deleted file mode 100644
index 091e3bcd..00000000
--- a/src/components/FeatherIcons/icons/volume-1.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Volume1 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Volume1.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Volume1.displayName = 'Volume1';
-
-export default Volume1;
diff --git a/src/components/FeatherIcons/icons/volume-2.js b/src/components/FeatherIcons/icons/volume-2.js
deleted file mode 100644
index 6d1a3c5b..00000000
--- a/src/components/FeatherIcons/icons/volume-2.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Volume2 = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Volume2.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Volume2.displayName = 'Volume2';
-
-export default Volume2;
diff --git a/src/components/FeatherIcons/icons/volume-x.js b/src/components/FeatherIcons/icons/volume-x.js
deleted file mode 100644
index 5a5fd19e..00000000
--- a/src/components/FeatherIcons/icons/volume-x.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const VolumeX = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-VolumeX.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-VolumeX.displayName = 'VolumeX';
-
-export default VolumeX;
diff --git a/src/components/FeatherIcons/icons/volume.js b/src/components/FeatherIcons/icons/volume.js
deleted file mode 100644
index 8caef1a6..00000000
--- a/src/components/FeatherIcons/icons/volume.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Volume = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Volume.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Volume.displayName = 'Volume';
-
-export default Volume;
diff --git a/src/components/FeatherIcons/icons/watch.js b/src/components/FeatherIcons/icons/watch.js
deleted file mode 100644
index 48caba39..00000000
--- a/src/components/FeatherIcons/icons/watch.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Watch = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-Watch.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Watch.displayName = 'Watch';
-
-export default Watch;
diff --git a/src/components/FeatherIcons/icons/wifi-off.js b/src/components/FeatherIcons/icons/wifi-off.js
deleted file mode 100644
index c8b3526e..00000000
--- a/src/components/FeatherIcons/icons/wifi-off.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const WifiOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
-
-
-
- );
-});
-
-WifiOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-WifiOff.displayName = 'WifiOff';
-
-export default WifiOff;
diff --git a/src/components/FeatherIcons/icons/wifi.js b/src/components/FeatherIcons/icons/wifi.js
deleted file mode 100644
index 016bc156..00000000
--- a/src/components/FeatherIcons/icons/wifi.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Wifi = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-Wifi.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Wifi.displayName = 'Wifi';
-
-export default Wifi;
diff --git a/src/components/FeatherIcons/icons/wind.js b/src/components/FeatherIcons/icons/wind.js
deleted file mode 100644
index e8543b24..00000000
--- a/src/components/FeatherIcons/icons/wind.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Wind = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Wind.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Wind.displayName = 'Wind';
-
-export default Wind;
diff --git a/src/components/FeatherIcons/icons/x-circle.js b/src/components/FeatherIcons/icons/x-circle.js
deleted file mode 100644
index b4ed15ef..00000000
--- a/src/components/FeatherIcons/icons/x-circle.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const XCircle = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-XCircle.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-XCircle.displayName = 'XCircle';
-
-export default XCircle;
diff --git a/src/components/FeatherIcons/icons/x-octagon.js b/src/components/FeatherIcons/icons/x-octagon.js
deleted file mode 100644
index 4895a086..00000000
--- a/src/components/FeatherIcons/icons/x-octagon.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const XOctagon = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-XOctagon.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-XOctagon.displayName = 'XOctagon';
-
-export default XOctagon;
diff --git a/src/components/FeatherIcons/icons/x-square.js b/src/components/FeatherIcons/icons/x-square.js
deleted file mode 100644
index aa9c0d58..00000000
--- a/src/components/FeatherIcons/icons/x-square.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const XSquare = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-XSquare.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-XSquare.displayName = 'XSquare';
-
-export default XSquare;
diff --git a/src/components/FeatherIcons/icons/x.js b/src/components/FeatherIcons/icons/x.js
deleted file mode 100644
index e633935f..00000000
--- a/src/components/FeatherIcons/icons/x.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const X = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-X.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-X.displayName = 'X';
-
-export default X;
diff --git a/src/components/FeatherIcons/icons/youtube.js b/src/components/FeatherIcons/icons/youtube.js
deleted file mode 100644
index c8025c3b..00000000
--- a/src/components/FeatherIcons/icons/youtube.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Youtube = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
- );
-});
-
-Youtube.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Youtube.displayName = 'Youtube';
-
-export default Youtube;
diff --git a/src/components/FeatherIcons/icons/zap-off.js b/src/components/FeatherIcons/icons/zap-off.js
deleted file mode 100644
index ee3d9182..00000000
--- a/src/components/FeatherIcons/icons/zap-off.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ZapOff = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-ZapOff.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ZapOff.displayName = 'ZapOff';
-
-export default ZapOff;
diff --git a/src/components/FeatherIcons/icons/zap.js b/src/components/FeatherIcons/icons/zap.js
deleted file mode 100644
index 7dc408bf..00000000
--- a/src/components/FeatherIcons/icons/zap.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const Zap = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
- );
-});
-
-Zap.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-Zap.displayName = 'Zap';
-
-export default Zap;
diff --git a/src/components/FeatherIcons/icons/zoom-in.js b/src/components/FeatherIcons/icons/zoom-in.js
deleted file mode 100644
index ed10d000..00000000
--- a/src/components/FeatherIcons/icons/zoom-in.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ZoomIn = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
-
- );
-});
-
-ZoomIn.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ZoomIn.displayName = 'ZoomIn';
-
-export default ZoomIn;
diff --git a/src/components/FeatherIcons/icons/zoom-out.js b/src/components/FeatherIcons/icons/zoom-out.js
deleted file mode 100644
index a7ffcdc7..00000000
--- a/src/components/FeatherIcons/icons/zoom-out.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { forwardRef } from 'react';
-import PropTypes from 'prop-types';
-
-const ZoomOut = forwardRef(({ color = 'currentColor', size = "1em", ...rest }, ref) => {
- return (
-
-
-
-
-
- );
-});
-
-ZoomOut.propTypes = {
- color: PropTypes.string,
- size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
-ZoomOut.displayName = 'ZoomOut';
-
-export default ZoomOut;
diff --git a/src/components/FeatherIcons/index.d.ts b/src/components/FeatherIcons/index.d.ts
deleted file mode 100644
index ae32e9e6..00000000
--- a/src/components/FeatherIcons/index.d.ts
+++ /dev/null
@@ -1,295 +0,0 @@
-///
-import { FC, SVGAttributes } from 'react';
-
-interface Props extends SVGAttributes {
- color?: string;
- size?: string | number;
-}
-
-type Icon = FC;
-export const Activity: Icon;
-export const Airplay: Icon;
-export const AlertCircle: Icon;
-export const AlertOctagon: Icon;
-export const AlertTriangle: Icon;
-export const AlignCenter: Icon;
-export const AlignJustify: Icon;
-export const AlignLeft: Icon;
-export const AlignRight: Icon;
-export const Anchor: Icon;
-export const Aperture: Icon;
-export const Archive: Icon;
-export const ArrowDownCircle: Icon;
-export const ArrowDownLeft: Icon;
-export const ArrowDownRight: Icon;
-export const ArrowDown: Icon;
-export const ArrowLeftCircle: Icon;
-export const ArrowLeft: Icon;
-export const ArrowRightCircle: Icon;
-export const ArrowRight: Icon;
-export const ArrowUpCircle: Icon;
-export const ArrowUpLeft: Icon;
-export const ArrowUpRight: Icon;
-export const ArrowUp: Icon;
-export const AtSign: Icon;
-export const Award: Icon;
-export const BarChart2: Icon;
-export const BarChart: Icon;
-export const BatteryCharging: Icon;
-export const Battery: Icon;
-export const BellOff: Icon;
-export const Bell: Icon;
-export const Bluetooth: Icon;
-export const Bold: Icon;
-export const BookOpen: Icon;
-export const Book: Icon;
-export const Bookmark: Icon;
-export const Box: Icon;
-export const Briefcase: Icon;
-export const Calendar: Icon;
-export const CameraOff: Icon;
-export const Camera: Icon;
-export const Cast: Icon;
-export const CheckCircle: Icon;
-export const CheckSquare: Icon;
-export const Check: Icon;
-export const ChevronDown: Icon;
-export const ChevronLeft: Icon;
-export const ChevronRight: Icon;
-export const ChevronUp: Icon;
-export const ChevronsDown: Icon;
-export const ChevronsLeft: Icon;
-export const ChevronsRight: Icon;
-export const ChevronsUp: Icon;
-export const Chrome: Icon;
-export const Circle: Icon;
-export const Clipboard: Icon;
-export const Clock: Icon;
-export const CloudDrizzle: Icon;
-export const CloudLightning: Icon;
-export const CloudOff: Icon;
-export const CloudRain: Icon;
-export const CloudSnow: Icon;
-export const Cloud: Icon;
-export const Code: Icon;
-export const Codepen: Icon;
-export const Codesandbox: Icon;
-export const Coffee: Icon;
-export const Columns: Icon;
-export const Command: Icon;
-export const Compass: Icon;
-export const Copy: Icon;
-export const CornerDownLeft: Icon;
-export const CornerDownRight: Icon;
-export const CornerLeftDown: Icon;
-export const CornerLeftUp: Icon;
-export const CornerRightDown: Icon;
-export const CornerRightUp: Icon;
-export const CornerUpLeft: Icon;
-export const CornerUpRight: Icon;
-export const Cpu: Icon;
-export const CreditCard: Icon;
-export const Crop: Icon;
-export const Crosshair: Icon;
-export const Database: Icon;
-export const Delete: Icon;
-export const Disc: Icon;
-export const DivideCircle: Icon;
-export const DivideSquare: Icon;
-export const Divide: Icon;
-export const DollarSign: Icon;
-export const DownloadCloud: Icon;
-export const Download: Icon;
-export const Dribbble: Icon;
-export const Droplet: Icon;
-export const Edit2: Icon;
-export const Edit3: Icon;
-export const Edit: Icon;
-export const ExternalLink: Icon;
-export const EyeOff: Icon;
-export const Eye: Icon;
-export const Facebook: Icon;
-export const FastForward: Icon;
-export const Feather: Icon;
-export const Figma: Icon;
-export const FileMinus: Icon;
-export const FilePlus: Icon;
-export const FileText: Icon;
-export const File: Icon;
-export const Film: Icon;
-export const Filter: Icon;
-export const Flag: Icon;
-export const FolderMinus: Icon;
-export const FolderPlus: Icon;
-export const Folder: Icon;
-export const Framer: Icon;
-export const Frown: Icon;
-export const Gift: Icon;
-export const GitBranch: Icon;
-export const GitCommit: Icon;
-export const GitMerge: Icon;
-export const GitPullRequest: Icon;
-export const GitHub: Icon;
-export const Gitlab: Icon;
-export const Globe: Icon;
-export const Grid: Icon;
-export const HardDrive: Icon;
-export const Hash: Icon;
-export const Headphones: Icon;
-export const Heart: Icon;
-export const HelpCircle: Icon;
-export const Hexagon: Icon;
-export const Home: Icon;
-export const Image: Icon;
-export const Inbox: Icon;
-export const Info: Icon;
-export const Instagram: Icon;
-export const Italic: Icon;
-export const Key: Icon;
-export const Layers: Icon;
-export const Layout: Icon;
-export const LifeBuoy: Icon;
-export const Link2: Icon;
-export const Link: Icon;
-export const Linkedin: Icon;
-export const List: Icon;
-export const Loader: Icon;
-export const Lock: Icon;
-export const LogIn: Icon;
-export const LogOut: Icon;
-export const Mail: Icon;
-export const MapPin: Icon;
-export const Map: Icon;
-export const Maximize2: Icon;
-export const Maximize: Icon;
-export const Meh: Icon;
-export const Menu: Icon;
-export const MessageCircle: Icon;
-export const MessageSquare: Icon;
-export const MicOff: Icon;
-export const Mic: Icon;
-export const Minimize2: Icon;
-export const Minimize: Icon;
-export const MinusCircle: Icon;
-export const MinusSquare: Icon;
-export const Minus: Icon;
-export const Monitor: Icon;
-export const Moon: Icon;
-export const MoreHorizontal: Icon;
-export const MoreVertical: Icon;
-export const MousePointer: Icon;
-export const Move: Icon;
-export const Music: Icon;
-export const Navigation2: Icon;
-export const Navigation: Icon;
-export const Octagon: Icon;
-export const Package: Icon;
-export const Paperclip: Icon;
-export const PauseCircle: Icon;
-export const Pause: Icon;
-export const PenTool: Icon;
-export const Percent: Icon;
-export const PhoneCall: Icon;
-export const PhoneForwarded: Icon;
-export const PhoneIncoming: Icon;
-export const PhoneMissed: Icon;
-export const PhoneOff: Icon;
-export const PhoneOutgoing: Icon;
-export const Phone: Icon;
-export const PieChart: Icon;
-export const PlayCircle: Icon;
-export const Play: Icon;
-export const PlusCircle: Icon;
-export const PlusSquare: Icon;
-export const Plus: Icon;
-export const Pocket: Icon;
-export const Power: Icon;
-export const Printer: Icon;
-export const Radio: Icon;
-export const RefreshCcw: Icon;
-export const RefreshCw: Icon;
-export const Repeat: Icon;
-export const Rewind: Icon;
-export const RotateCcw: Icon;
-export const RotateCw: Icon;
-export const Rss: Icon;
-export const Save: Icon;
-export const Scissors: Icon;
-export const Search: Icon;
-export const Send: Icon;
-export const Server: Icon;
-export const Settings: Icon;
-export const Share2: Icon;
-export const Share: Icon;
-export const ShieldOff: Icon;
-export const Shield: Icon;
-export const ShoppingBag: Icon;
-export const ShoppingCart: Icon;
-export const Shuffle: Icon;
-export const Sidebar: Icon;
-export const SkipBack: Icon;
-export const SkipForward: Icon;
-export const Slack: Icon;
-export const Slash: Icon;
-export const Sliders: Icon;
-export const Smartphone: Icon;
-export const Smile: Icon;
-export const Speaker: Icon;
-export const Square: Icon;
-export const Star: Icon;
-export const StopCircle: Icon;
-export const Sun: Icon;
-export const Sunrise: Icon;
-export const Sunset: Icon;
-export const Tablet: Icon;
-export const Tag: Icon;
-export const Target: Icon;
-export const Terminal: Icon;
-export const Thermometer: Icon;
-export const ThumbsDown: Icon;
-export const ThumbsUp: Icon;
-export const ToggleLeft: Icon;
-export const ToggleRight: Icon;
-export const Tool: Icon;
-export const Trash2: Icon;
-export const Trash: Icon;
-export const Trello: Icon;
-export const TrendingDown: Icon;
-export const TrendingUp: Icon;
-export const Triangle: Icon;
-export const Truck: Icon;
-export const Tv: Icon;
-export const Twitch: Icon;
-export const Twitter: Icon;
-export const Type: Icon;
-export const Umbrella: Icon;
-export const Underline: Icon;
-export const Unlock: Icon;
-export const UploadCloud: Icon;
-export const Upload: Icon;
-export const UserCheck: Icon;
-export const UserMinus: Icon;
-export const UserPlus: Icon;
-export const UserX: Icon;
-export const User: Icon;
-export const Users: Icon;
-export const VideoOff: Icon;
-export const Video: Icon;
-export const Voicemail: Icon;
-export const Volume1: Icon;
-export const Volume2: Icon;
-export const VolumeX: Icon;
-export const Volume: Icon;
-export const Watch: Icon;
-export const WifiOff: Icon;
-export const Wifi: Icon;
-export const Wind: Icon;
-export const XCircle: Icon;
-export const XOctagon: Icon;
-export const XSquare: Icon;
-export const X: Icon;
-export const Youtube: Icon;
-export const ZapOff: Icon;
-export const Zap: Icon;
-export const ZoomIn: Icon;
-export const ZoomOut: Icon;
diff --git a/src/components/FeatherIcons/index.js b/src/components/FeatherIcons/index.js
deleted file mode 100644
index b3474b4f..00000000
--- a/src/components/FeatherIcons/index.js
+++ /dev/null
@@ -1,286 +0,0 @@
-export { default as Activity } from './icons/activity';
-export { default as Airplay } from './icons/airplay';
-export { default as AlertCircle } from './icons/alert-circle';
-export { default as AlertOctagon } from './icons/alert-octagon';
-export { default as AlertTriangle } from './icons/alert-triangle';
-export { default as AlignCenter } from './icons/align-center';
-export { default as AlignJustify } from './icons/align-justify';
-export { default as AlignLeft } from './icons/align-left';
-export { default as AlignRight } from './icons/align-right';
-export { default as Anchor } from './icons/anchor';
-export { default as Aperture } from './icons/aperture';
-export { default as Archive } from './icons/archive';
-export { default as ArrowDownCircle } from './icons/arrow-down-circle';
-export { default as ArrowDownLeft } from './icons/arrow-down-left';
-export { default as ArrowDownRight } from './icons/arrow-down-right';
-export { default as ArrowDown } from './icons/arrow-down';
-export { default as ArrowLeftCircle } from './icons/arrow-left-circle';
-export { default as ArrowLeft } from './icons/arrow-left';
-export { default as ArrowRightCircle } from './icons/arrow-right-circle';
-export { default as ArrowRight } from './icons/arrow-right';
-export { default as ArrowUpCircle } from './icons/arrow-up-circle';
-export { default as ArrowUpLeft } from './icons/arrow-up-left';
-export { default as ArrowUpRight } from './icons/arrow-up-right';
-export { default as ArrowUp } from './icons/arrow-up';
-export { default as AtSign } from './icons/at-sign';
-export { default as Award } from './icons/award';
-export { default as BarChart2 } from './icons/bar-chart-2';
-export { default as BarChart } from './icons/bar-chart';
-export { default as BatteryCharging } from './icons/battery-charging';
-export { default as Battery } from './icons/battery';
-export { default as BellOff } from './icons/bell-off';
-export { default as Bell } from './icons/bell';
-export { default as Bluetooth } from './icons/bluetooth';
-export { default as Bold } from './icons/bold';
-export { default as BookOpen } from './icons/book-open';
-export { default as Book } from './icons/book';
-export { default as Bookmark } from './icons/bookmark';
-export { default as Box } from './icons/box';
-export { default as Briefcase } from './icons/briefcase';
-export { default as Calendar } from './icons/calendar';
-export { default as CameraOff } from './icons/camera-off';
-export { default as Camera } from './icons/camera';
-export { default as Cast } from './icons/cast';
-export { default as CheckCircle } from './icons/check-circle';
-export { default as CheckSquare } from './icons/check-square';
-export { default as Check } from './icons/check';
-export { default as ChevronDown } from './icons/chevron-down';
-export { default as ChevronLeft } from './icons/chevron-left';
-export { default as ChevronRight } from './icons/chevron-right';
-export { default as ChevronUp } from './icons/chevron-up';
-export { default as ChevronsDown } from './icons/chevrons-down';
-export { default as ChevronsLeft } from './icons/chevrons-left';
-export { default as ChevronsRight } from './icons/chevrons-right';
-export { default as ChevronsUp } from './icons/chevrons-up';
-export { default as Chrome } from './icons/chrome';
-export { default as Circle } from './icons/circle';
-export { default as Clipboard } from './icons/clipboard';
-export { default as Clock } from './icons/clock';
-export { default as CloudDrizzle } from './icons/cloud-drizzle';
-export { default as CloudLightning } from './icons/cloud-lightning';
-export { default as CloudOff } from './icons/cloud-off';
-export { default as CloudRain } from './icons/cloud-rain';
-export { default as CloudSnow } from './icons/cloud-snow';
-export { default as Cloud } from './icons/cloud';
-export { default as Code } from './icons/code';
-export { default as Codepen } from './icons/codepen';
-export { default as Codesandbox } from './icons/codesandbox';
-export { default as Coffee } from './icons/coffee';
-export { default as Columns } from './icons/columns';
-export { default as Command } from './icons/command';
-export { default as Compass } from './icons/compass';
-export { default as Copy } from './icons/copy';
-export { default as CornerDownLeft } from './icons/corner-down-left';
-export { default as CornerDownRight } from './icons/corner-down-right';
-export { default as CornerLeftDown } from './icons/corner-left-down';
-export { default as CornerLeftUp } from './icons/corner-left-up';
-export { default as CornerRightDown } from './icons/corner-right-down';
-export { default as CornerRightUp } from './icons/corner-right-up';
-export { default as CornerUpLeft } from './icons/corner-up-left';
-export { default as CornerUpRight } from './icons/corner-up-right';
-export { default as Cpu } from './icons/cpu';
-export { default as CreditCard } from './icons/credit-card';
-export { default as Crop } from './icons/crop';
-export { default as Crosshair } from './icons/crosshair';
-export { default as Database } from './icons/database';
-export { default as Delete } from './icons/delete';
-export { default as Disc } from './icons/disc';
-export { default as DivideCircle } from './icons/divide-circle';
-export { default as DivideSquare } from './icons/divide-square';
-export { default as Divide } from './icons/divide';
-export { default as DollarSign } from './icons/dollar-sign';
-export { default as DownloadCloud } from './icons/download-cloud';
-export { default as Download } from './icons/download';
-export { default as Dribbble } from './icons/dribbble';
-export { default as Droplet } from './icons/droplet';
-export { default as Edit2 } from './icons/edit-2';
-export { default as Edit3 } from './icons/edit-3';
-export { default as Edit } from './icons/edit';
-export { default as ExternalLink } from './icons/external-link';
-export { default as EyeOff } from './icons/eye-off';
-export { default as Eye } from './icons/eye';
-export { default as Facebook } from './icons/facebook';
-export { default as FastForward } from './icons/fast-forward';
-export { default as Feather } from './icons/feather';
-export { default as Figma } from './icons/figma';
-export { default as FileMinus } from './icons/file-minus';
-export { default as FilePlus } from './icons/file-plus';
-export { default as FileText } from './icons/file-text';
-export { default as File } from './icons/file';
-export { default as Film } from './icons/film';
-export { default as Filter } from './icons/filter';
-export { default as Flag } from './icons/flag';
-export { default as FolderMinus } from './icons/folder-minus';
-export { default as FolderPlus } from './icons/folder-plus';
-export { default as Folder } from './icons/folder';
-export { default as Framer } from './icons/framer';
-export { default as Frown } from './icons/frown';
-export { default as Gift } from './icons/gift';
-export { default as GitBranch } from './icons/git-branch';
-export { default as GitCommit } from './icons/git-commit';
-export { default as GitMerge } from './icons/git-merge';
-export { default as GitPullRequest } from './icons/git-pull-request';
-export { default as GitHub } from './icons/github';
-export { default as Gitlab } from './icons/gitlab';
-export { default as Globe } from './icons/globe';
-export { default as Grid } from './icons/grid';
-export { default as HardDrive } from './icons/hard-drive';
-export { default as Hash } from './icons/hash';
-export { default as Headphones } from './icons/headphones';
-export { default as Heart } from './icons/heart';
-export { default as HelpCircle } from './icons/help-circle';
-export { default as Hexagon } from './icons/hexagon';
-export { default as Home } from './icons/home';
-export { default as Image } from './icons/image';
-export { default as Inbox } from './icons/inbox';
-export { default as Info } from './icons/info';
-export { default as Instagram } from './icons/instagram';
-export { default as Italic } from './icons/italic';
-export { default as Key } from './icons/key';
-export { default as Layers } from './icons/layers';
-export { default as Layout } from './icons/layout';
-export { default as LifeBuoy } from './icons/life-buoy';
-export { default as Link2 } from './icons/link-2';
-export { default as Link } from './icons/link';
-export { default as Linkedin } from './icons/linkedin';
-export { default as List } from './icons/list';
-export { default as Loader } from './icons/loader';
-export { default as Lock } from './icons/lock';
-export { default as LogIn } from './icons/log-in';
-export { default as LogOut } from './icons/log-out';
-export { default as Mail } from './icons/mail';
-export { default as MapPin } from './icons/map-pin';
-export { default as Map } from './icons/map';
-export { default as Maximize2 } from './icons/maximize-2';
-export { default as Maximize } from './icons/maximize';
-export { default as Meh } from './icons/meh';
-export { default as Menu } from './icons/menu';
-export { default as MessageCircle } from './icons/message-circle';
-export { default as MessageSquare } from './icons/message-square';
-export { default as MicOff } from './icons/mic-off';
-export { default as Mic } from './icons/mic';
-export { default as Minimize2 } from './icons/minimize-2';
-export { default as Minimize } from './icons/minimize';
-export { default as MinusCircle } from './icons/minus-circle';
-export { default as MinusSquare } from './icons/minus-square';
-export { default as Minus } from './icons/minus';
-export { default as Monitor } from './icons/monitor';
-export { default as Moon } from './icons/moon';
-export { default as MoreHorizontal } from './icons/more-horizontal';
-export { default as MoreVertical } from './icons/more-vertical';
-export { default as MousePointer } from './icons/mouse-pointer';
-export { default as Move } from './icons/move';
-export { default as Music } from './icons/music';
-export { default as Navigation2 } from './icons/navigation-2';
-export { default as Navigation } from './icons/navigation';
-export { default as Octagon } from './icons/octagon';
-export { default as Package } from './icons/package';
-export { default as Paperclip } from './icons/paperclip';
-export { default as PauseCircle } from './icons/pause-circle';
-export { default as Pause } from './icons/pause';
-export { default as PenTool } from './icons/pen-tool';
-export { default as Percent } from './icons/percent';
-export { default as PhoneCall } from './icons/phone-call';
-export { default as PhoneForwarded } from './icons/phone-forwarded';
-export { default as PhoneIncoming } from './icons/phone-incoming';
-export { default as PhoneMissed } from './icons/phone-missed';
-export { default as PhoneOff } from './icons/phone-off';
-export { default as PhoneOutgoing } from './icons/phone-outgoing';
-export { default as Phone } from './icons/phone';
-export { default as PieChart } from './icons/pie-chart';
-export { default as PlayCircle } from './icons/play-circle';
-export { default as Play } from './icons/play';
-export { default as PlusCircle } from './icons/plus-circle';
-export { default as PlusSquare } from './icons/plus-square';
-export { default as Plus } from './icons/plus';
-export { default as Pocket } from './icons/pocket';
-export { default as Power } from './icons/power';
-export { default as Printer } from './icons/printer';
-export { default as Radio } from './icons/radio';
-export { default as RefreshCcw } from './icons/refresh-ccw';
-export { default as RefreshCw } from './icons/refresh-cw';
-export { default as Repeat } from './icons/repeat';
-export { default as Rewind } from './icons/rewind';
-export { default as RotateCcw } from './icons/rotate-ccw';
-export { default as RotateCw } from './icons/rotate-cw';
-export { default as Rss } from './icons/rss';
-export { default as Save } from './icons/save';
-export { default as Scissors } from './icons/scissors';
-export { default as Search } from './icons/search';
-export { default as Send } from './icons/send';
-export { default as Server } from './icons/server';
-export { default as Settings } from './icons/settings';
-export { default as Share2 } from './icons/share-2';
-export { default as Share } from './icons/share';
-export { default as ShieldOff } from './icons/shield-off';
-export { default as Shield } from './icons/shield';
-export { default as ShoppingBag } from './icons/shopping-bag';
-export { default as ShoppingCart } from './icons/shopping-cart';
-export { default as Shuffle } from './icons/shuffle';
-export { default as Sidebar } from './icons/sidebar';
-export { default as SkipBack } from './icons/skip-back';
-export { default as SkipForward } from './icons/skip-forward';
-export { default as Slack } from './icons/slack';
-export { default as Slash } from './icons/slash';
-export { default as Sliders } from './icons/sliders';
-export { default as Smartphone } from './icons/smartphone';
-export { default as Smile } from './icons/smile';
-export { default as Speaker } from './icons/speaker';
-export { default as Square } from './icons/square';
-export { default as Star } from './icons/star';
-export { default as StopCircle } from './icons/stop-circle';
-export { default as Sun } from './icons/sun';
-export { default as Sunrise } from './icons/sunrise';
-export { default as Sunset } from './icons/sunset';
-export { default as Tablet } from './icons/tablet';
-export { default as Tag } from './icons/tag';
-export { default as Target } from './icons/target';
-export { default as Terminal } from './icons/terminal';
-export { default as Thermometer } from './icons/thermometer';
-export { default as ThumbsDown } from './icons/thumbs-down';
-export { default as ThumbsUp } from './icons/thumbs-up';
-export { default as ToggleLeft } from './icons/toggle-left';
-export { default as ToggleRight } from './icons/toggle-right';
-export { default as Tool } from './icons/tool';
-export { default as Trash2 } from './icons/trash-2';
-export { default as Trash } from './icons/trash';
-export { default as Trello } from './icons/trello';
-export { default as TrendingDown } from './icons/trending-down';
-export { default as TrendingUp } from './icons/trending-up';
-export { default as Triangle } from './icons/triangle';
-export { default as Truck } from './icons/truck';
-export { default as Tv } from './icons/tv';
-export { default as Twitch } from './icons/twitch';
-export { default as Twitter } from './icons/twitter';
-export { default as Type } from './icons/type';
-export { default as Umbrella } from './icons/umbrella';
-export { default as Underline } from './icons/underline';
-export { default as Unlock } from './icons/unlock';
-export { default as UploadCloud } from './icons/upload-cloud';
-export { default as Upload } from './icons/upload';
-export { default as UserCheck } from './icons/user-check';
-export { default as UserMinus } from './icons/user-minus';
-export { default as UserPlus } from './icons/user-plus';
-export { default as UserX } from './icons/user-x';
-export { default as User } from './icons/user';
-export { default as Users } from './icons/users';
-export { default as VideoOff } from './icons/video-off';
-export { default as Video } from './icons/video';
-export { default as Voicemail } from './icons/voicemail';
-export { default as Volume1 } from './icons/volume-1';
-export { default as Volume2 } from './icons/volume-2';
-export { default as VolumeX } from './icons/volume-x';
-export { default as Volume } from './icons/volume';
-export { default as Watch } from './icons/watch';
-export { default as WifiOff } from './icons/wifi-off';
-export { default as Wifi } from './icons/wifi';
-export { default as Wind } from './icons/wind';
-export { default as XCircle } from './icons/x-circle';
-export { default as XOctagon } from './icons/x-octagon';
-export { default as XSquare } from './icons/x-square';
-export { default as X } from './icons/x';
-export { default as Youtube } from './icons/youtube';
-export { default as ZapOff } from './icons/zap-off';
-export { default as Zap } from './icons/zap';
-export { default as ZoomIn } from './icons/zoom-in';
-export { default as ZoomOut } from './icons/zoom-out';
diff --git a/src/components/HeaderSearch/index.js b/src/components/HeaderSearch/index.js
index 2cf71a46..c6716fda 100755
--- a/src/components/HeaderSearch/index.js
+++ b/src/components/HeaderSearch/index.js
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './index.less'
import classnames from 'classnames'
import * as Icons from '@ant-design/icons'
@@ -28,18 +28,18 @@ export default class HeaderSearch extends Component {
const { value } = this.state
if (value.length < 1) return false
if (value == /\s/) return false
- ycore.SwapMode.openSearch(value);
+ app.SwapMode.openSearch(value);
}
sendToSearch = () => {
const { value } = this.state
- ycore.router.go(`s/${value}`)
+ app.router.go(`s/${value}`)
}
onChange = e => {
const { value } = e.target
this.setState({ value: value })
- if (ycore.AppSettings.auto_search_ontype == 'true') {
+ if (app.AppSettings.auto_search_ontype == 'true') {
this.autosend()
}
}
@@ -51,7 +51,7 @@ export default class HeaderSearch extends Component {
clearTimeout(timeout)
timeout = setTimeout(() => {
const { value } = this.state
- ycore.router.go(`s/${value}`)
+ app.router.go(`s/${value}`)
}, 500)
})
}
diff --git a/src/components/Layout/Control.js b/src/components/Layout/Control.js
index 5cabdc19..fc525438 100755
--- a/src/components/Layout/Control.js
+++ b/src/components/Layout/Control.js
@@ -1,6 +1,6 @@
import React from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './Control.less'
import classnames from 'classnames'
@@ -36,14 +36,14 @@ class Control extends React.PureComponent {
}
}
DummySetControls = e => {
- ycore.yconsole.log('Controls recived => ', e)
+ app.yconsole.log('Controls recived => ', e)
if (this.state.Show == false) {
this.setState({ FadeIN: true })
}
this.setState({ Show: true, RenderFragment: e })
}
DummyCloseControls() {
- ycore.yconsole.log('Closing Control Bar...')
+ app.yconsole.log('Closing Control Bar...')
this.setState({ FadeIN: false })
setTimeout(() => this.setState({ Show: false, RenderFragment: null }), 1000)
}
diff --git a/src/components/Layout/Secondary/components/layout/__pri.tsx b/src/components/Layout/Secondary/components/layout/__pri.tsx
index 83e3bda9..79734592 100644
--- a/src/components/Layout/Secondary/components/layout/__pri.tsx
+++ b/src/components/Layout/Secondary/components/layout/__pri.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import styles from '../../index.less'
diff --git a/src/components/Layout/Secondary/components/layout/__sec.tsx b/src/components/Layout/Secondary/components/layout/__sec.tsx
index c4debb42..754fa1c8 100644
--- a/src/components/Layout/Secondary/components/layout/__sec.tsx
+++ b/src/components/Layout/Secondary/components/layout/__sec.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import styles from '../../index.less'
diff --git a/src/components/Layout/Secondary/components/main/__searchBar.js b/src/components/Layout/Secondary/components/main/__searchBar.js
index 258009d5..98d28708 100644
--- a/src/components/Layout/Secondary/components/main/__searchBar.js
+++ b/src/components/Layout/Secondary/components/main/__searchBar.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './__searchBar.less'
export default class __searchBar extends React.Component{
@@ -10,12 +10,12 @@ export default class __searchBar extends React.Component{
const { value } = this.state
if (value.length < 1) return false
if (value == /\s/) return false
- ycore.SwapMode.openSearch(value);
+ app.SwapMode.openSearch(value);
}
onChange = e => {
const { value } = e.target
this.setState({ value: value })
- if (ycore.AppSettings.auto_search_ontype == 'true') {
+ if (app.AppSettings.auto_search_ontype == 'true') {
this.autosend()
}
}
diff --git a/src/components/Layout/Secondary/components/swapper/__priPost.js b/src/components/Layout/Secondary/components/swapper/__priPost.js
index 77d04c0c..e399b2f8 100644
--- a/src/components/Layout/Secondary/components/swapper/__priPost.js
+++ b/src/components/Layout/Secondary/components/swapper/__priPost.js
@@ -2,7 +2,7 @@ import React from 'react'
import styles from './__priPost.less'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -44,12 +44,12 @@ export default class __priPost extends React.PureComponent {
{publisher.username}{' '}
- {ycore.booleanFix(publisher.verified) ? (
+ {app.booleanFix(publisher.verified) ? (
) : null}
- {post_time} {ycore.IsThisUser.dev() ? `| #${id}` : null}{' '}
+ {post_time} {app.IsThisUser.dev() ? `| #${id}` : null}{' '}
diff --git a/src/components/Layout/Secondary/components/swapper/__priSearch.js b/src/components/Layout/Secondary/components/swapper/__priSearch.js
index 341e4beb..34a9ac17 100644
--- a/src/components/Layout/Secondary/components/swapper/__priSearch.js
+++ b/src/components/Layout/Secondary/components/swapper/__priSearch.js
@@ -2,7 +2,7 @@ import React from 'react'
import styles from './__priSearch.less'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import Icon from '@ant-design/icons'
const VerifiedBadge = () => (
@@ -37,19 +37,19 @@ export default class __priSearch extends React.PureComponent {
const users = () => {
if (usersParsed.length >= 1) {
- ycore.yconsole.log('Users => ', usersParsed)
+ app.yconsole.log('Users => ', usersParsed)
return this.EntryComponent('Users', usersParsed)
}
}
const groups = () => {
if (groupsParsed.length >= 1) {
- ycore.yconsole.log('Groups => ', groupsParsed)
+ app.yconsole.log('Groups => ', groupsParsed)
return this.EntryComponent('Groups', groupsParsed)
}
}
const pages = () => {
if (pagesParsed.length >= 1) {
- ycore.yconsole.log('Pages => ', pagesParsed)
+ app.yconsole.log('Pages => ', pagesParsed)
return this.EntryComponent('Pages', pagesParsed)
}
}
@@ -77,12 +77,12 @@ export default class __priSearch extends React.PureComponent {
- {ycore.router.go(`@${item.username}`)}}>
+
{app.router.go(`@${item.username}`)}}>
@{item.username}
- {ycore.booleanFix(item.verified) ? (
+ {app.booleanFix(item.verified) ? (
) : null}
diff --git a/src/components/Layout/Secondary/components/swapper/__secComments.js b/src/components/Layout/Secondary/components/swapper/__secComments.js
index b8e8912f..865768f1 100644
--- a/src/components/Layout/Secondary/components/swapper/__secComments.js
+++ b/src/components/Layout/Secondary/components/swapper/__secComments.js
@@ -3,7 +3,7 @@ import styles from './__secComments.less'
import { SearchCard, Feather } from 'components'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -26,8 +26,8 @@ export default class __secComments extends React.Component {
loading: false,
}
handleDeleteComment(id) {
- ycore.yconsole.log(`Removing Comment with id => ${id}`)
- ycore.comty_post_comment.delete(
+ app.yconsole.log(`Removing Comment with id => ${id}`)
+ app.comty_post_comment.delete(
(err, res) => {
if (err) {
return false
@@ -42,9 +42,9 @@ export default class __secComments extends React.Component {
const { post_id } = this.props
if (raw_comment) {
const payload = { post_id: post_id, raw_text: raw_comment }
- ycore.comty_post_comment.new((err, res) => {
+ app.comty_post_comment.new((err, res) => {
if (err) {
- ycore.notify.error('This action could not be performed.', err)
+ app.notify.error('This action could not be performed.', err)
}
this.setState({ raw_comment: '' })
return this.reloadComments()
@@ -71,12 +71,12 @@ export default class __secComments extends React.Component {
@{publisher.username}{' '}
- {ycore.booleanFix(publisher.verified) ? (
+ {app.booleanFix(publisher.verified) ? (
) : null}
@@ -84,7 +84,7 @@ export default class __secComments extends React.Component {
onClick={e => e.preventDefault()}
className={styles.comment_user_ago}
>
- {ycore.time.stmToAgo(time)}
+ {app.time.stmToAgo(time)}
@@ -102,7 +102,7 @@ export default class __secComments extends React.Component {
try {
this.setState({ loading: true })
const payload = { post_id: this.props.post_id }
- ycore.comty_post.get((err, res) => {
+ app.comty_post.get((err, res) => {
const post_comments = JSON.parse(res)['post_comments']
this.setState({ comment_data: post_comments, loading: false })
}, payload)
diff --git a/src/components/Layout/Secondary/index.js b/src/components/Layout/Secondary/index.js
index d9919239..83b856ad 100755
--- a/src/components/Layout/Secondary/index.js
+++ b/src/components/Layout/Secondary/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import styles from './index.less'
@@ -34,7 +34,7 @@ export const SwapMode = {
let promise = new Promise((res, rej) => {
const payload = { post_id: id }
- ycore.comty_post.get((err, response) => {
+ app.comty_post.get((err, response) => {
try {
res(JSON.parse(response)['post_data'])
} catch (error) {
@@ -64,7 +64,7 @@ export const SwapMode = {
let promise = new Promise((res, rej) => {
const payload = { post_id: id }
- ycore.comty_post.get((err, response) => {
+ app.comty_post.get((err, response) => {
try {
res(JSON.parse(response)['post_comments'])
}catch (error) {
@@ -92,7 +92,7 @@ export const SwapMode = {
let tmp;
let promise = new Promise((res, rej) => {
const payload = { key: id }
- ycore.comty_search.keywords((err, response) => {
+ app.comty_search.keywords((err, response) => {
res(response)
}, payload)
});
@@ -157,7 +157,7 @@ export default class Secondary extends React.PureComponent {
}
handle_genData() {
- ycore.comty_get.general_data((err, res) => {
+ app.comty_data.general_data((err, res) => {
if (err) return false
try {
const notification_data = JSON.parse(res)['notifications']
diff --git a/src/components/Layout/Sider/default.js b/src/components/Layout/Sider/default.js
index 4244f705..35b0810d 100755
--- a/src/components/Layout/Sider/default.js
+++ b/src/components/Layout/Sider/default.js
@@ -5,7 +5,7 @@ import Icon from '@ant-design/icons'
import { withI18n, Trans } from '@lingui/react'
import styles from './default.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import CustomIcons from '../../CustomIcons'
@withI18n()
@@ -20,7 +20,7 @@ export default class Sider_Default extends React.PureComponent {
>
ycore.router.go('main')}
+ onClick={() => app.router.go('main')}
src={logo}
/>
@@ -78,7 +78,7 @@ export default class Sider_Default extends React.PureComponent {
Settings
- {ycore.IsThisUser.dev() ? (
+ {app.IsThisUser.dev() ? (
Debug
diff --git a/src/components/Layout/Sider/index.js b/src/components/Layout/Sider/index.js
index 1bc696a5..3c5a00b2 100755
--- a/src/components/Layout/Sider/index.js
+++ b/src/components/Layout/Sider/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import config from 'config'
-import * as ycore from 'ycore'
+import * as app from 'app'
import Sider_Mobile from './mobile.js'
import Sider_Default from './default.js'
@@ -10,36 +10,36 @@ class Sider extends React.PureComponent {
onClickFunctions = {
saves: (e) => {
this.setState({selectedKey: e})
- ycore.router.go('saves')
+ app.router.go('saves')
},
events: (e) => {
this.setState({selectedKey: e})
- ycore.router.go('events')
+ app.router.go('events')
},
marketplace: (e) => {
this.setState({selectedKey: e})
- ycore.router.go('marketplace')
+ app.router.go('marketplace')
},
explore: (e) => {
this.setState({selectedKey: e})
- ycore.router.go('main')
+ app.router.go('main')
},
chats: (e) => {
this.setState({selectedKey: e})
- ycore.router.go('chats')
+ app.router.go('chats')
}
}
handleClickMenu = e => {
e.key === 'chats' && this.onClickFunctions.chats(e.key)
- e.key === 'SignOut' && ycore.app_session.logout()
- e.key === 'general_settings' && ycore.router.go('settings')
- e.key === 'profile' && ycore.router.goprofile()
+ e.key === 'SignOut' && app.app_session.logout()
+ e.key === 'general_settings' && app.router.go('settings')
+ e.key === 'profile' && app.router.goprofile()
e.key === 'saves' && this.onClickFunctions.saves(e.key)
e.key === 'events' && this.onClickFunctions.events(e.key)
e.key === 'marketplace' && this.onClickFunctions.marketplace(e.key)
e.key === 'explore' && this.onClickFunctions.explore(e.key)
- e.key === 'debug_area' && ycore.router.go('__m')
+ e.key === 'debug_area' && app.router.go('__m')
}
render() {
diff --git a/src/components/Layout/Sider/mobile.js b/src/components/Layout/Sider/mobile.js
index cf482c2b..dd2366c7 100755
--- a/src/components/Layout/Sider/mobile.js
+++ b/src/components/Layout/Sider/mobile.js
@@ -5,7 +5,7 @@ import Icon from '@ant-design/icons'
import { withI18n, Trans } from '@lingui/react'
import styles from './mobile.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import CustomIcons from '../../CustomIcons'
@withI18n()
diff --git a/src/components/Like_button/index.js b/src/components/Like_button/index.js
index 018b53c8..c1c332a9 100755
--- a/src/components/Like_button/index.js
+++ b/src/components/Like_button/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import styles from './index.scss'
-import * as ycore from 'ycore'
+import * as app from 'app'
import classnames from 'classnames'
class Like_button extends React.PureComponent {
@@ -35,15 +35,15 @@ class Like_button extends React.PureComponent {
dispatchLike(e) {
const { type } = this.state
- ycore.yconsole.log(`Dispatch ${type} to post id => ${e}`)
+ app.yconsole.log(`Dispatch ${type} to post id => ${e}`)
this.setState({ clicked: true })
setTimeout(() => {
this.setState({ clicked: false })
}, 500)
const payload = { post_id: e }
- ycore.comty_post.like((err, res) => {
+ app.comty_post.like((err, res) => {
if (err) {
- ycore.notify.error(res)
+ app.notify.error(res)
return
}
if (type == 'like') {
@@ -58,7 +58,7 @@ class Like_button extends React.PureComponent {
const { id } = this.props
const { likes, liked, clicked } = this.state
if (!id) {
- ycore.yconsole.error('[LikeBTN] No post id provided!')
+ app.yconsole.error('[LikeBTN] No post id provided!')
return null
}
return (
diff --git a/src/components/MainFeed/components/renderFeedPosts/index.js b/src/components/MainFeed/components/renderFeedPosts/index.js
index 9f24b228..81aaf990 100755
--- a/src/components/MainFeed/components/renderFeedPosts/index.js
+++ b/src/components/MainFeed/components/renderFeedPosts/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import { PostCard } from 'components'
-import { yconsole } from 'ycore'
+import { yconsole } from 'app'
import { Button, List } from 'antd'
import { DownSquareOutlined } from '@ant-design/icons'
const renderFeedPosts = payload => {
diff --git a/src/components/MainFeed/index.js b/src/components/MainFeed/index.js
index 0de8027b..9cd3f9c9 100755
--- a/src/components/MainFeed/index.js
+++ b/src/components/MainFeed/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './index.less'
import { ComponentNewAV, ComponentInvalid, renderFeedPosts } from './components/index.js'
@@ -19,7 +19,7 @@ export const RenderFeed = {
return
},
goToElement: post_id => {
- ycore.goTo.element(post_id)
+ app.goTo.element(post_id)
},
disableMenu: () => {
window.MainFeedComponent.setState({
@@ -48,7 +48,7 @@ class MainFeed extends React.PureComponent {
componentDidMount() {
this.feedGet.first()
- ycore.sync.FeedListen((data) => {
+ app.sync.FeedListen((data) => {
this.syncService(data)
})
}
@@ -72,7 +72,7 @@ class MainFeed extends React.PureComponent {
killByID(post_id) {
const a = this.state.data
- const b = ycore.arrayRemoveByID(a, post_id)
+ const b = app.arrayRemoveByID(a, post_id)
this.setState({ data: b })
}
@@ -96,14 +96,14 @@ class MainFeed extends React.PureComponent {
return
}
if (!get) {
- ycore.yconsole.error('Please, fill params with an catch type...')
+ app.yconsole.error('Please, fill params with an catch type...')
return
}
this.toogleLoader()
const payload = { fkey: 0, type: get, id: uid }
- ycore.comty_post.getFeed((err, res) => {
+ app.comty_post.getFeed((err, res) => {
if (err) {
- ycore.notify.error('Error when get data from this input')
+ app.notify.error('Error when get data from this input')
return
}
if (JSON.parse(res).api_status == '400') {
@@ -112,34 +112,34 @@ class MainFeed extends React.PureComponent {
}
try {
const parsed = JSON.parse(res)['data']
- const isEnd =parsed.length < ycore.AppSettings.limit_post_catch ? true : false
+ const isEnd =parsed.length < app.AppSettings.limit_post_catch ? true : false
this.setState({ NewAV: false, isEnd: isEnd, data: parsed, loading: false })
} catch (error) {
- ycore.yconsole.log(error)
+ app.yconsole.log(error)
}
}, payload)
} catch (err) {
- ycore.notify.error('err')
+ app.notify.error('err')
}
},
more(fkey){
try {
const { get, uid, filters } = this.props
if (!get) {
- ycore.yconsole.error('Please, fill params with an catch type...')
+ app.yconsole.error('Please, fill params with an catch type...')
return
}
if (!fkey) {
- ycore.yconsole.warn(
+ app.yconsole.warn(
'Please, provide a fkey for offset the feed, default using => 0'
)
}
this.toogleLoader()
- const getLastPost = ycore.objectLast(this.state.data)
- ycore.yconsole.log('LAST POST ID =>', getLastPost.id)
+ const getLastPost = app.objectLast(this.state.data)
+ app.yconsole.log('LAST POST ID =>', getLastPost.id)
const payload = { fkey: getLastPost.id, type: get, id: uid }
- ycore.comty_post.getFeed((err, res) => {
+ app.comty_post.getFeed((err, res) => {
if (err) {
return false
}
@@ -147,14 +147,14 @@ class MainFeed extends React.PureComponent {
const parsed = JSON.parse(res)['data']
const mix = oldData.concat(parsed)
const isEnd =
- parsed.length < ycore.AppSettings.limit_post_catch ? true : false
+ parsed.length < app.AppSettings.limit_post_catch ? true : false
this.setState({ isEnd: isEnd, data: mix, loading: false }, () =>
- ycore.goTo.element(getLastPost.id)
+ app.goTo.element(getLastPost.id)
)
return true
}, payload)
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
}
}
diff --git a/src/components/MobileWarning/index.js b/src/components/MobileWarning/index.js
deleted file mode 100755
index 880bd85a..00000000
--- a/src/components/MobileWarning/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from 'react'
-import styles from './index.less'
-import store from 'store'
-import * as antd from 'antd'
-
-export default class MobileWarning extends React.PureComponent {
- state = {
- resbypass: store.get('resbypass') || false,
- }
-
- ResByPassHandler = () => {
- this.setState({ resbypass: true })
- }
-
- render() {
- const { resbypass } = this.state
-
- if (resbypass == false) {
- return (
-
-
-
- This version of the application is not fully compatible with
- the resolution of this screen, a higher resolution is
- recommended for an optimal experience
-
- Please choose an option to continue
-
-
- this.ResByPassHandler()}
- >
- Continue
-
-
- }
- />
-
- )
- }
- return null
- }
-}
diff --git a/src/components/MobileWarning/index.less b/src/components/MobileWarning/index.less
deleted file mode 100755
index 62ea91e1..00000000
--- a/src/components/MobileWarning/index.less
+++ /dev/null
@@ -1,18 +0,0 @@
-.mobilewarning {
- background-color: rgba(0, 0, 0, 0.975);
- color: white;
- width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- z-index: 100000;
- display: flex;
- justify-content: center;
- text-align: center;
-
- :global {
- .ant-result-title {
- color: white;
- }
- }
-}
\ No newline at end of file
diff --git a/src/components/PostCard/index.js b/src/components/PostCard/index.js
index 99ce9ced..6176b06a 100755
--- a/src/components/PostCard/index.js
+++ b/src/components/PostCard/index.js
@@ -2,7 +2,7 @@ import React from 'react'
import * as antd from 'antd'
import styles from './index.less'
import { CustomIcons, Like_button, MediaPlayer } from 'components'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
import classnames from 'classnames'
@@ -40,7 +40,7 @@ class PostCard extends React.PureComponent {
render() {
const { payload, customActions } = this.props
- const ActShowMode = ycore.AppSettings.auto_hide_postbar
+ const ActShowMode = app.AppSettings.auto_hide_postbar
const post_data = payload || emptyPayload;
const {
@@ -59,52 +59,52 @@ class PostCard extends React.PureComponent {
const SwapThisPost = () => {
localStorage.setItem('p_back_uid', id)
if (postFile){
- ycore.SwapMode.openPost(id, post_data)
+ app.SwapMode.openPost(id, post_data)
}
- ycore.SwapMode.openComments(id)
+ app.SwapMode.openComments(id)
}
const handlePostActions = {
delete: post_id => {
const payload = { post_id: post_id }
- ycore.comty_post.delete((err, res) => {
+ app.comty_post.delete((err, res) => {
if (err) {
return false
}
- ycore.FeedHandler.killByID(post_id)
+ app.FeedHandler.killByID(post_id)
}, payload)
},
save: post_id => {
const payload = { post_id: post_id }
- ycore.comty_post.save((err, res) => {
+ app.comty_post.save((err, res) => {
if (err) {
return false
}
if (this.state.postSaved == false) {
- ycore.notify.success('Post Saved')
+ app.notify.success('Post Saved')
this.setState({ postSaved: true })
return
} else {
- ycore.notify.info('Removed from Saved')
+ app.notify.info('Removed from Saved')
this.setState({ postSaved: false })
}
}, payload)
},
report: post_id => {
- ycore.app_modals.report_post(post_id)
+ app.app_modals.report_post(post_id)
},
boost: post_id => {
const payload = { post_id: post_id }
- ycore.comty_post.__boost((err, res) => {
+ app.comty_post.__boost((err, res) => {
if (err) {
return false
}
if (this.state.postBoosted == false) {
- ycore.notify.success('Post Boosted')
+ app.notify.success('Post Boosted')
this.setState({ postBoosted: true })
return
} else {
- ycore.notify.info('Post Unboosted')
+ app.notify.info('Post Unboosted')
this.setState({ postBoosted: false })
}
}, payload)
@@ -115,7 +115,7 @@ class PostCard extends React.PureComponent {
,
@@ -127,7 +127,7 @@ class PostCard extends React.PureComponent {
const MoreMenu = (
- {ycore.IsThisPost.owner(publisher.id) ? (
+ {app.IsThisPost.owner(publisher.id) ? (
@@ -142,8 +142,8 @@ class PostCard extends React.PureComponent {
) : null}
- {ycore.IsThisPost.owner(publisher.id) ? (
- ycore.IsThisUser.pro(publisher.id) ? (
+ {app.IsThisPost.owner(publisher.id) ? (
+ app.IsThisUser.pro(publisher.id) ? (
handlePostActions.boost(id) & this.toogleMoreMenu()}
key="boost_post"
@@ -153,7 +153,7 @@ class PostCard extends React.PureComponent {
) : null
) : null}
- {ycore.IsThisPost.owner(publisher.id) ? : null}
+ {app.IsThisPost.owner(publisher.id) ? : null}
handlePostActions.save(id) & this.toogleMoreMenu()}
key="save_post"
@@ -215,18 +215,18 @@ class PostCard extends React.PureComponent {
- ycore.router.go(`@${publisher.username}`)
+ app.router.go(`@${publisher.username}`)
}
className={styles.titleUser}
>
@{publisher.username}
- {ycore.booleanFix(publisher.verified) ? (
+ {app.booleanFix(publisher.verified) ? (
) : null}
- {ycore.booleanFix(publisher.nsfw_flag) ? (
+ {app.booleanFix(publisher.nsfw_flag) ? (
- {ycore.booleanFix(is_post_pinned) ? (
+ {app.booleanFix(is_post_pinned) ? (
) : null}
diff --git a/src/components/PostCreator/index.js b/src/components/PostCreator/index.js
index adbbc68f..4ad74a55 100755
--- a/src/components/PostCreator/index.js
+++ b/src/components/PostCreator/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './index.less'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -27,7 +27,7 @@ class PostCreator extends React.PureComponent {
this.state = {
visible: true,
FadeIN: true,
- keys_remaining: ycore.AppSettings.MaxLengthPosts,
+ keys_remaining: app.AppSettings.MaxLengthPosts,
rawtext: '',
posting: false,
posting_ok: false,
@@ -121,10 +121,10 @@ class PostCreator extends React.PureComponent {
antd.message.error(`${file.type} This file is not valid!`)
}
const maxsize =
- file.size / 1024 / 1024 < ycore.AppSettings.MaximunAPIPayload
+ file.size / 1024 / 1024 < app.AppSettings.MaximunAPIPayload
if (!maxsize) {
antd.message.error(
- `Image must smaller than ${ycore.AppSettings.MaximunAPIPayload} KB!`
+ `Image must smaller than ${app.AppSettings.MaximunAPIPayload} KB!`
)
}
return filter && maxsize
@@ -133,13 +133,13 @@ class PostCreator extends React.PureComponent {
handleChanges = ({ target: { value } }) => {
this.setState({
rawtext: value,
- keys_remaining: ycore.AppSettings.MaxLengthPosts - value.length,
+ keys_remaining: app.AppSettings.MaxLengthPosts - value.length,
})
}
handleKeysProgressBar() {
const { keys_remaining } = this.state
- if (keys_remaining <= (ycore.AppSettings.MaxLengthPosts / 100) * 30) {
+ if (keys_remaining <= (app.AppSettings.MaxLengthPosts / 100) * 30) {
return 'exception'
} else return 'active'
}
@@ -155,7 +155,7 @@ class PostCreator extends React.PureComponent {
setTimeout(() => {
this.setState({ posting_ok: false })
}, 1000)
- ycore.FeedHandler.refresh()
+ app.FeedHandler.refresh()
return true
}
@@ -166,33 +166,42 @@ class PostCreator extends React.PureComponent {
}
this.setState({
posting: true,
- keys_remaining: ycore.AppSettings.MaxLengthPosts,
+ keys_remaining: app.AppSettings.MaxLengthPosts,
})
const post_options = optionBox.get()
const payload = {
- privacy: ycore.GetPostPrivacy.bool(shareWith),
+ privacy: app.GetPostPrivacy.bool(shareWith),
text: rawtext,
file: file,
}
- ycore.comty_post.new((err, res) => {
+ app.comty_post.new((err, res) => {
if (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
return false
}
- const status_temp_error = JSON.parse(res)['data'].error
- status_temp_error? ycore.notify.error('It seems that a processing error has occurred, your publication has not been published.') : null
+
+ let status_temp_error;
+
+ try {
+ status_temp_error = JSON.parse(res)['data'].error
+ } catch (error) {
+ app.notify.error('It seems that a processing error has occurred, your publication has not been published and the application stopped working due to a critical error')
+ return false
+ }
+
+ status_temp_error? app.notify.error('It seems that a processing error has occurred, your publication has not been published.') : null
const id_temp_parse = JSON.parse(res)['data'].id
- const pro_boost_val = ycore.ReturnValueFromMap({ data: post_options, key: 'pro_boost' })
- const allow_comments_val = ycore.ReturnValueFromMap({ data: post_options, key: 'allow_comments' })
+ const pro_boost_val = app.ReturnValueFromMap({ data: post_options, key: 'pro_boost' })
+ const allow_comments_val = app.ReturnValueFromMap({ data: post_options, key: 'allow_comments' })
console.log(id_temp_parse)
- ycore.sync.emmitPost(id_temp_parse)
- ycore.yconsole.log(`pro_boost => ${pro_boost_val} | allow_comments => ${allow_comments_val}`)
+ app.sync.emmitPost(id_temp_parse)
+ app.yconsole.log(`pro_boost => ${pro_boost_val} | allow_comments => ${allow_comments_val}`)
if (pro_boost_val) {
- ycore.yconsole.log(`Boosting post with ID => ${id_temp_parse}`)
- ycore.comty_post.__boost(
+ app.yconsole.log(`Boosting post with ID => ${id_temp_parse}`)
+ app.comty_post.__boost(
(err, res) => {
return true
},
@@ -202,8 +211,8 @@ class PostCreator extends React.PureComponent {
if (
!allow_comments_val
) {
- ycore.yconsole.log(`Disabling comments with ID => ${id_temp_parse}`)
- ycore.comty_post.__disableComments(
+ app.yconsole.log(`Disabling comments with ID => ${id_temp_parse}`)
+ app.comty_post.__disableComments(
(err, res) => {
return true
},
@@ -211,7 +220,7 @@ class PostCreator extends React.PureComponent {
)
}
this.FlushPostState()
- // ycore.FeedHandler.addToRend(JSON.parse(res)['data'])
+ // app.FeedHandler.addToRend(JSON.parse(res)['data'])
}, payload)
}
dropRef = React.createRef()
@@ -239,18 +248,18 @@ class PostCreator extends React.PureComponent {
var e = je.originalEvent
for (var i = 0; i < e.clipboardData.items.length; i++) {
var item = e.clipboardData.items[i]
- ycore.yconsole.log('Item: ' + item.type)
+ app.yconsole.log('Item: ' + item.type)
if (item.type.indexOf('image') != -1) {
//item.
let a;
a = item.getAsFile()
_this.setState({ file: a })
- ycore.ReadFileAsB64(a, res => {
+ app.ReadFileAsB64(a, res => {
_this.setState({ fileURL: res })
})
} else {
// ignore not images
- ycore.yconsole.log('Discarding not image paste data')
+ app.yconsole.log('Discarding not image paste data')
}
}
})
@@ -267,7 +276,7 @@ class PostCreator extends React.PureComponent {
canPost() {
const { fileURL, keys_remaining } = this.state
- const isTypedSomething = keys_remaining < ycore.AppSettings.MaxLengthPosts
+ const isTypedSomething = keys_remaining < app.AppSettings.MaxLengthPosts
const isUploadedFile = fileURL ? true : false
return isUploadedFile || isTypedSomething
@@ -277,7 +286,7 @@ class PostCreator extends React.PureComponent {
const { userData } = this.props
const { keys_remaining, visible, fileURL } = this.state
const percent = (
- (keys_remaining / ycore.AppSettings.MaxLengthPosts) *
+ (keys_remaining / app.AppSettings.MaxLengthPosts) *
100
).toFixed(2)
const changeShare = ({ key }) => {
@@ -287,16 +296,16 @@ class PostCreator extends React.PureComponent {
const shareOptionsMenu = (
- {ycore.GetPostPrivacy.decorator('any')}
+ {app.GetPostPrivacy.decorator('any')}
- {ycore.GetPostPrivacy.decorator('only_follow')}
+ {app.GetPostPrivacy.decorator('only_follow')}
- {ycore.GetPostPrivacy.decorator('only_followers')}
+ {app.GetPostPrivacy.decorator('only_followers')}
- {ycore.GetPostPrivacy.decorator('private')}
+ {app.GetPostPrivacy.decorator('private')}
)
@@ -333,7 +342,7 @@ class PostCreator extends React.PureComponent {
placeholder="What are you thinking?"
onChange={this.handleChanges}
allowClear
- maxLength={ycore.AppSettings.MaxLengthPosts}
+ maxLength={app.AppSettings.MaxLengthPosts}
rows={8}
/>
@@ -392,7 +401,7 @@ class PostCreator extends React.PureComponent {
className={styles.shareWith}
onClick={e => e.preventDefault()}
>
- {ycore.GetPostPrivacy.decorator(this.state.shareWith)}
+ {app.GetPostPrivacy.decorator(this.state.shareWith)}
diff --git a/src/components/PostCreator/local_components/post_options.js b/src/components/PostCreator/local_components/post_options.js
index 6064139f..5850bfd2 100755
--- a/src/components/PostCreator/local_components/post_options.js
+++ b/src/components/PostCreator/local_components/post_options.js
@@ -1,6 +1,6 @@
import React from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
import { Post_Options } from 'globals/post_options.js'
@@ -27,7 +27,7 @@ export default class Post_options extends React.Component {
}
onChangeOption(checked, id) {
- ycore.yconsole.log(`${id} to ${checked}`)
+ app.yconsole.log(`${id} to ${checked}`)
}
handleToggleToolbox = () => {
@@ -41,7 +41,7 @@ export default class Post_options extends React.Component {
ita === item ? Object.assign(ita, { value: to }) : ita
)
this.setState({ options_repo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.key} to value ${to}`)
+ app.yconsole.log(`Changing ${item.key} to value ${to}`)
} catch (err) {
console.log(err)
}
@@ -52,14 +52,14 @@ export default class Post_options extends React.Component {
try {
switch (i) {
case 'pro':
- return ycore.IsThisUser.pro() ? false : true
+ return app.IsThisUser.pro() ? false : true
case 'dev':
- return ycore.IsThisUser.dev() ? false : true
+ return app.IsThisUser.dev() ? false : true
default:
break
}
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
return false
}
}
diff --git a/src/components/SearchCard/index.js b/src/components/SearchCard/index.js
index e93d50f9..a45a82d3 100755
--- a/src/components/SearchCard/index.js
+++ b/src/components/SearchCard/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import styles from './index.less'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -13,7 +13,7 @@ class SearchCard extends React.PureComponent {
const { source } = this.props
const { username, avatar, about, id } = source
const DevInfo = `ID #${id} | Dev ${
- ycore.booleanFix(source.dev) ? 'yes' : 'no'
+ app.booleanFix(source.dev) ? 'yes' : 'no'
} | `
const AdminInfo = `RID #${source.country_id} | IP ${source.ip_address} | `
@@ -52,13 +52,13 @@ class SearchCard extends React.PureComponent {
title={
ycore.router.go(`@${username}`)}
+ onClick={() => app.router.go(`@${username}`)}
className={styles.titleUser}
>
{DataStrip.title()}
- {ycore.booleanFix(source.verified) ? (
+ {app.booleanFix(source.verified) ? (
}
description={
- ycore.IsThisUser.dev() ? (
+ app.IsThisUser.dev() ? (
{DataStrip.description()}
diff --git a/src/components/UserBadges/index.js b/src/components/UserBadges/index.js
index 623f618c..74b461fd 100755
--- a/src/components/UserBadges/index.js
+++ b/src/components/UserBadges/index.js
@@ -1,7 +1,7 @@
import React from 'react'
import styles from './index.less'
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import { BadgesType } from 'globals/badges_list'
export default class UserBadges extends React.Component {
@@ -10,15 +10,15 @@ export default class UserBadges extends React.Component {
console.log(BadgesType)
return (
- {ycore.booleanFix(values.nsfw_flag) ? (
+ {app.booleanFix(values.nsfw_flag) ? (
NSFW
) : null}
- {ycore.booleanFix(values.is_pro) ? (
+ {app.booleanFix(values.is_pro) ? (
CPRO™
) : null}
- {ycore.booleanFix(values.dev) ? (
+ {app.booleanFix(values.dev) ? (
DEVELOPER
diff --git a/src/components/UserProfile/index.js b/src/components/UserProfile/index.js
index 80f8a99d..d3010a78 100755
--- a/src/components/UserProfile/index.js
+++ b/src/components/UserProfile/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import styles from './styles.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import { CustomIcons, MainFeed, PostCreator } from 'components'
import * as Icons from '@ant-design/icons'
@@ -29,14 +29,14 @@ class UserProfile extends React.PureComponent {
try {
switch (i) {
case 'pro':
- return ycore.booleanFix(this.state.RenderValue.is_pro)
+ return app.booleanFix(this.state.RenderValue.is_pro)
case 'dev':
- return ycore.booleanFix(this.state.RenderValue.dev)
+ return app.booleanFix(this.state.RenderValue.dev)
case 'nsfw':
- return ycore.booleanFix(this.state.RenderValue.nsfw_flag)
+ return app.booleanFix(this.state.RenderValue.nsfw_flag)
}
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
return false
}
}
@@ -45,7 +45,7 @@ class UserProfile extends React.PureComponent {
handleFollowUser = () => {
const payload = { user_id: this.state.UUID }
- ycore.comty_user.follow((err, res) => {
+ app.comty_user.follow((err, res) => {
if (err) {
return false
}
@@ -65,31 +65,31 @@ class UserProfile extends React.PureComponent {
const string = raw.replace('/@', '')
const payload = { key: string }
- ycore.comty_user.find((err, res) => {
- err ? ycore.notify.error(err) : null
+ app.comty_user.find((err, res) => {
+ err ? app.notify.error(err) : null
try {
const rp = JSON.parse(res)
- ycore.yconsole.log(rp)
+ app.yconsole.log(rp)
if (!rp['0']) {
- ycore.yconsole.log('Bad response / User not found')
+ app.yconsole.log('Bad response / User not found')
const val = { id: null, username: 'User not found!' }
this.setState({ invalid: true, RenderValue: val, loading: false })
- ycore.router.go(`main`)
+ app.router.go(`main`)
antd.message.warning(`Its seams like @${string} not exist`)
return
}
const c1 = rp['0'].username.toLowerCase()
const c2 = string.toLowerCase()
if (c1 !== c2) {
- ycore.yconsole.log(`Using aproximate user! => ${c1} / ${c2}`)
- ycore.router.go(`@${c1}`)
+ app.yconsole.log(`Using aproximate user! => ${c1} / ${c2}`)
+ app.router.go(`@${c1}`)
}
this.setState({
UUID: rp['0'].user_id,
RenderValue: rp['0'],
loading: false,
- Followed: ycore.booleanFix(rp['0'].is_following),
+ Followed: app.booleanFix(rp['0'].is_following),
})
reducers.get.followers((res)=>{
@@ -101,7 +101,7 @@ class UserProfile extends React.PureComponent {
},rp['0'].user_id)
- ycore.comty_user.__tags(
+ app.comty_user.__tags(
(err, res) => {
if (err) return false
let fn = []
@@ -124,7 +124,7 @@ class UserProfile extends React.PureComponent {
{ id: this.state.UUID }
)
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
}, payload)
}
@@ -174,7 +174,7 @@ className={classnames(styles.userWrapper, {
/>
) : null}
- {ycore.IsThisUser.same(RenderValue.id) ? null : (
+ {app.IsThisUser.same(RenderValue.id) ? null : (
this.handleFollowUser()}
@@ -193,7 +193,7 @@ className={classnames(styles.userWrapper, {
- {ycore.booleanFix(RenderValue.verified) ? (
+ {app.booleanFix(RenderValue.verified) ? (
- { ycore.IsThisUser.same(UUID)?
+ { app.IsThisUser.same(UUID)?
@@ -225,7 +225,7 @@ className={classnames(styles.userWrapper, {
- {ycore.IsThisUser.same(UUID) ? ( ) : null}
+ {app.IsThisUser.same(UUID) ? ( ) : null}
)
diff --git a/src/components/UserProfile/reducers.js b/src/components/UserProfile/reducers.js
index e3f8bbc4..b449e36a 100644
--- a/src/components/UserProfile/reducers.js
+++ b/src/components/UserProfile/reducers.js
@@ -1,10 +1,10 @@
-import * as ycore from 'ycore'
+import * as app from 'app'
// REDUCERS, USERPROFILE
export const get = {
followers: (callback,id) => {
const payload = { user_id: id }
- ycore.comty_user.getFollowers((err,res) => {
+ app.comty_user.getFollowers((err,res) => {
try {
const a = JSON.parse(res)['followers']
callback(a)
diff --git a/src/components/YulioID/index.js b/src/components/YulioID/index.js
index 64a5eea3..decc0f9d 100644
--- a/src/components/YulioID/index.js
+++ b/src/components/YulioID/index.js
@@ -3,7 +3,7 @@ import { connect } from 'dva'
import { Form, Icon as LegacyIcon } from '@ant-design/compatible'
import { Button, Input, Drawer } from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import styles from './index.less'
@@ -45,17 +45,17 @@ class YulioID extends Component {
if (!EncUsername || !EncPassword) {
var message = 'Incomplete information!'
- ycore.yconsole.log(prefix, message)
+ app.yconsole.log(prefix, message)
}
if (EncUsername && EncPassword) {
this.setState({ ShowLoading: true, StateMessage: 'Wait a sec...' })
- if (ycore.AppSettings.InfiniteLogin == true) {
- ycore.yconsole.log(prefix, 'InfiniteLogin is enabled! Disabled getAuth')
+ if (app.AppSettings.InfiniteLogin == true) {
+ app.yconsole.log(prefix, 'InfiniteLogin is enabled! Disabled getAuth')
} else {
- ycore.yconsole.log(prefix, 'Initialising login process...')
+ app.yconsole.log(prefix, 'Initialising login process...')
const payload = { EncUsername, EncPassword }
- ycore.app_session.login((err, res) => {
+ app.app_session.login((err, res) => {
this.handleResponse(res)
}, payload)
}
@@ -64,7 +64,7 @@ class YulioID extends Component {
handleResponse = response => {
if (response == '200') {
- ycore.LoginPage.transitionToogle()
+ app.LoginPage.transitionToogle()
this.setState({
StateIcon: 'login',
StateMessage: 'Wait a sec...',
diff --git a/src/components/index.js b/src/components/index.js
index 8bd68595..1c881712 100755
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -1,12 +1,11 @@
// @alias from 'components'
// Helpers & Misc
-import MobileWarning from './MobileWarning'
import CustomIcons from './CustomIcons'
import Loader from './Loader/Loader.js'
import ScrollBar from './ScrollBar'
import App_about from './App_about'
-import * as Feather from './FeatherIcons'
+import * as Feather from 'feather-reactjs'
// App Layout Components
import * as MyLayout from './Layout/index.js'
@@ -31,7 +30,6 @@ export {
App_about,
MediaPlayer,
UserBadges,
- MobileWarning,
PageTransition,
SearchCard,
HeaderSearch,
diff --git a/src/layouts/BaseLayout.js b/src/layouts/BaseLayout.js
index 0e790821..2617cf33 100755
--- a/src/layouts/BaseLayout.js
+++ b/src/layouts/BaseLayout.js
@@ -7,7 +7,7 @@ import { queryLayout } from 'utils'
import NProgress from 'nprogress'
import config from 'config'
import withRouter from 'umi/withRouter'
-import {AppSettings} from 'ycore'
+import {AppSettings} from 'app'
import PublicLayout from './PublicLayout'
import PrimaryLayout from './PrimaryLayout'
diff --git a/src/layouts/PrimaryLayout.js b/src/layouts/PrimaryLayout.js
index 6f5a93c5..d91483f9 100755
--- a/src/layouts/PrimaryLayout.js
+++ b/src/layouts/PrimaryLayout.js
@@ -8,13 +8,12 @@ import {
MyLayout,
PageTransition,
HeaderSearch,
- MobileWarning,
} from 'components'
import { enquireScreen, unenquireScreen } from 'enquire-js'
import store from 'store'
import classnames from 'classnames'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
@@ -30,7 +29,7 @@ class PrimaryLayout extends React.Component {
super(props)
window.PrimaryComponent = this
this.state = {
- collapsed: ycore.AppSettings.default_collapse_sider ? true : false,
+ collapsed: app.AppSettings.default_collapse_sider ? true : false,
isMobile: false,
desktop_mode: false,
userData: '',
@@ -39,7 +38,7 @@ class PrimaryLayout extends React.Component {
componentDidMount() {
this.setState({
- userData: ycore.userData(),
+ userData: app.userData(),
})
this.enquireHandler = enquireScreen(mobile => {
@@ -90,7 +89,6 @@ class PrimaryLayout extends React.Component {
return (
- {/* {isMobile ? : null} */}
@@ -106,7 +104,7 @@ class PrimaryLayout extends React.Component {
id="primaryContent"
className={styles.primary_layout_content}
>
- {children}
+ {children? children : null}
diff --git a/src/models/app.js b/src/models/app.js
index b9656204..9d73c041 100755
--- a/src/models/app.js
+++ b/src/models/app.js
@@ -3,7 +3,7 @@ import { router } from 'utils'
import store from 'store'
import { pathMatchRegexp } from 'utils'
import config from 'config'
-import * as ycore from 'ycore'
+import * as app from 'app'
export default {
namespace: 'app',
@@ -42,16 +42,16 @@ export default {
},
effects: {
*query({ payload }, { call, put, select }) {
- const validBackup = ycore.validate.backup()
- if (ycore.validate.session() == true) {
+ const validBackup = app.validate.backup()
+ if (app.validate.session() == true) {
if (pathMatchRegexp(['/', '/login'], window.location.pathname)) {
router.push({ pathname: '/main' })
}
- ycore._app.query()
+ app._app.query()
return true
} else if (!pathMatchRegexp(['', '/login'], window.location.pathname)) {
if (validBackup == true) {
- ycore._app.logout()
+ app._app.logout()
} else {
router.push({ pathname: '/login' })
}
diff --git a/src/pages/$page/index.js b/src/pages/$page/index.js
index 4440b39a..8d717709 100755
--- a/src/pages/$page/index.js
+++ b/src/pages/$page/index.js
@@ -1,31 +1,23 @@
import React, { PureComponent } from 'react'
import { UserProfile } from 'components'
-import __m from '../__m/index.js'
import { pathMatchRegexp } from 'utils'
import Error404 from '../404.js'
-import * as ycore from 'ycore'
+import * as app from 'app'
class PageIndexer extends PureComponent {
render() {
const { location } = this.props
const matchUser = pathMatchRegexp('/@:id', location.pathname)
- const matchMaster = pathMatchRegexp('/__m', location.pathname)
if (matchUser) {
- ycore.yconsole.log(`User matched! ${location.pathname}`)
+ app.yconsole.log(`User matched! ${location.pathname}`)
return (
)
}
- if (matchMaster) {
- return ycore.IsThisUser.dev() || ycore.IsThisUser.admin() ? (
- <__m />
- ) : (
-
- )
- }
+
// By default return Error 404
return (
diff --git a/src/pages/__m/index.js b/src/pages/__m/index.js
deleted file mode 100755
index 7ef35bb9..00000000
--- a/src/pages/__m/index.js
+++ /dev/null
@@ -1,160 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import * as antd from 'antd'
-import * as Icons from '@ant-design/icons'
-import jwt from 'jsonwebtoken'
-
-import styles from './style.less'
-import MainFeed from '../../components/MainFeed'
-
-const UserData = ycore.userData()
-
-export default class __m extends React.Component {
- constructor(props) {
- super(props),
- (this.state = {
- s_id: '',
- coninfo: 'Getting info...',
- s_swtoken: '',
- s_ses: '',
- })
- }
-
- componentDidMount() {
- this.handleSID()
- this.handleToken()
- }
-
- handleSID() {
- ycore.comty_get.session_id((err, response) => {
- if (err) {
- return ycore.notify.error(err)
- }
- this.setState({ s_id: response })
- })
- }
-
- handleToken() {
- const a = ycore.token_data.getRaw()
- const b = jwt.decode(a)
- this.setState({ s_token: b })
- {
- ycore.validate.session(res => {
- this.setState({ s_ses: res })
- })
- }
- }
-
- render() {
- const { UserID, UserToken, expiresIn } = this.state.s_token
-
- const AddDummy = {
- id: '3',
- publisher: { id: '1' },
- post_id: '1',
- user_id: '48',
- recipient_id: '0',
- postText: 'New by ID Dummy Payload',
- }
-
- return (
-
-
-
- yCore™ Server
-
-
-
-
-
- Server UID
-
- {ycore.__server.getKey()}
-
-
-
- Your SID
-
- {this.state.s_id}
-
-
-
- Current Session
-
- Raw => {JSON.stringify(this.state.s_token)}
-
- UID => {UserID}
- Session Token => {UserToken}
- expiresIn => {expiresIn}
-
-
-
- Using v{ycore.AppInfo.version} | User @{UserData.username}#
- {UserData.id} |
-
-
-
-
-
-
- Test yCore™
-
-
-
-
-
-
ycore.app_modals.report_post()}>
- Open report_post modal
-
-
-
ycore.sync.emmitPost()}>
- Emmit Post feed
-
-
-
ycore.SwapMode.openComment('1020')}>
- Open Comment
-
-
-
-
-
- MainFeed | ENV Test
-
-
-
-
- ycore.FeedHandler.addToRend(AddDummy)}>
-
- ADD DUMMY
-
- ycore.FeedHandler.killByID(3)}>
-
- KillByID (3)
-
-
-
-
-
-
- )
- }
-}
diff --git a/src/pages/__m/style.less b/src/pages/__m/style.less
deleted file mode 100755
index ad2d7dc7..00000000
--- a/src/pages/__m/style.less
+++ /dev/null
@@ -1,31 +0,0 @@
-@import '~themes/index.less';
-
-.Wrapper {
- padding: 10px;
-}
-
-.titleHeader {
- position: relative;
- width: 100%;
- height: 40px;
- background-color: #fff;
- border-radius: 8px;
- line-height: 40px;
- padding: 0 30px 0 15px;
-
- h1 {
- font-family: "Poppins", sans-serif;
- font-size: 14px;
- color: #1890ff;
- }
-
-}
-
-.sectionWrapper {
- word-break: break-all;
- max-width: 100%;
- text-overflow: clip;
- margin: 15px auto 15px 0;
- padding: 15px;
- background-color: rgb(236, 236, 236);
-}
\ No newline at end of file
diff --git a/src/pages/chats/chats/ChatContainer.js b/src/pages/chats/chats/ChatContainer.js
index ffb64a42..f1d0b749 100644
--- a/src/pages/chats/chats/ChatContainer.js
+++ b/src/pages/chats/chats/ChatContainer.js
@@ -5,13 +5,13 @@ import { MESSAGE_SENT, MESSAGE_RECIEVED, TYPING, PRIVATE_MESSAGE } from '../Even
import Messages from '../messages/Messages'
import MessageInput from '../messages/MessageInput'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import styles from '../styles.less'
import classnames from 'classnames'
-const userData = ycore.userData();
+const userData = app.userData();
export default class ChatContainer extends Component {
constructor(props) {
diff --git a/src/pages/chats/chats/SideBar.js b/src/pages/chats/chats/SideBar.js
index e1d5a61d..4332f76b 100644
--- a/src/pages/chats/chats/SideBar.js
+++ b/src/pages/chats/chats/SideBar.js
@@ -1,9 +1,9 @@
import React, { Component } from 'react';
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import styles from '../styles.less'
-const userData = ycore.userData()
+const userData = app.userData()
export default class SideBar extends React.PureComponent{
constructor(props){
diff --git a/src/pages/chats/index.js b/src/pages/chats/index.js
index 4d89a3ea..e983c4ab 100644
--- a/src/pages/chats/index.js
+++ b/src/pages/chats/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import io from 'socket.io-client'
@@ -9,7 +9,7 @@ import { USER_CONNECTED, LOGOUT } from './Events'
import ChatContainer from './chats/ChatContainer'
-const userData = ycore.userData()
+const userData = app.userData()
const prefix = '[Messaging Socket] '
const socketUrl = io(`${config.sync_server}/messaging_socket`);
diff --git a/src/pages/debug_test/chats.js b/src/pages/debug_test/chats.js
deleted file mode 100644
index 07c757c7..00000000
--- a/src/pages/debug_test/chats.js
+++ /dev/null
@@ -1,150 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import Peer from 'peerjs'
-
-var lastPeerId = null;
-var peer = new Peer
-var peerId = null;
-var conn = null;
-
-function addMessage(msg) {
- var now = new Date();
- var h = now.getHours();
- var m = addZero(now.getMinutes());
- var s = addZero(now.getSeconds());
-
- if (h > 12)
- h -= 12;
- else if (h === 0)
- h = 12;
-
- function addZero(t) {
- if (t < 10)
- t = "0" + t;
- return t;
- };
-
- message.innerHTML = "
" + h + ":" + m + ":" + s + " - " + msg + message.innerHTML;
-}
-
-
-
-function putStatus(key){
- if(!key)return false
- window.ChatClass.setState({ status: key })
-}
-function putID(key){
- if(!key)return false
- window.ChatClass.setState({ ssid: key })
-}
-export default class Chats extends React.PureComponent{
- constructor(props){
- super(props),
- this.state = {
- ssid: null,
- loading: true,
- status: "Init...",
- _d: null
- }
- window.ChatClass = this
- }
-
-
-
- async __init (){
- const userData = await ycore.userData()
- this.setState({ _d: userData, loading: false })
- console.log(this.state._d)
-
- peer.on('open', function (id) {
- // Workaround for peer.reconnect deleting previous id
- if (peer.id === null) {
- console.log('Received null id from peer open');
- peer.id = lastPeerId;
- } else {
- lastPeerId = peer.id;
- }
- putID(peer.id)
- putStatus("Awaiting connection...")
- });
- peer.on('connection', function (c) {
- // Allow only a single connection
- if (conn) {
- c.on('open', function() {
- c.send("Already connected to another client");
- setTimeout(function() { c.close(); }, 500);
- });
- return;
- }
-
- conn = c;
- console.log("Connected to: " + conn.peer);
- putStatus("Connected...")
- window.ChatClass.ready();
- });
- peer.on('disconnected', function () {
- window.ChatClass.setState({ status: 'Connection lost. Please reconnect' })
- console.log('Connection lost. Please reconnect');
-
- // Workaround for peer.reconnect deleting previous id
- peer.reconnect();
- });
- peer.on('close', function() {
- conn = null;
- putStatus("Connection Destroyed...")
- console.log('Connection destroyed');
- });
- peer.on('error', function (err) {
- console.log(err);
- alert('' + err);
- });
- }
-
- ready() {
- conn.on('data', function (data) {
- console.log("Data recieved");
- var cueString = "
Cue: ";
- switch (data) {
- case 'Go':
- go();
- addMessage(cueString + data);
- break;
- case 'Fade':
- fade();
- addMessage(cueString + data);
- break;
- case 'Off':
- off();
- addMessage(cueString + data);
- break;
- case 'Reset':
- reset();
- addMessage(cueString + data);
- break;
- default:
- addMessage("
Peer: " + data);
- break;
- };
- });
- conn.on('close', function () {
- putStatus("Connection reset...")
- conn = null;
- start(true);
- });
- }
-
- componentDidMount(){
- this.__init()
- }
- render(){
- const { _d, loading } = this.state
- if (loading) return null
- return(
-
-
Proto IRC
- Status: {this.state.status} | SSID: {this.state.ssid}
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/src/pages/debug_test/drag.css b/src/pages/debug_test/drag.css
deleted file mode 100644
index 2f80360b..00000000
--- a/src/pages/debug_test/drag.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.draggable {
- width: 25%;
- min-height: 6.5em;
- margin: 10%;
- background-color: #29e;
- color: white;
- border-radius: 0.75em;
- padding: 4%;
- touch-action: none;
- user-select: none;
- -webkit-transform: translate(0px, 0px);
- transform: translate(0px, 0px);
- }
\ No newline at end of file
diff --git a/src/pages/debug_test/drag.js b/src/pages/debug_test/drag.js
deleted file mode 100644
index a3c06f49..00000000
--- a/src/pages/debug_test/drag.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-import interact from 'interact.js'
-import styles from './drag.css'
-import reactable from 'reactablejs'
-import Demo from './drag_t.tsx'
-
-export default class __Drag extends React.PureComponent{
- render(){
- const Reactable = reactable(Demo);
-
- const BasicDemo = () => {
- const [coordinate, setCoordinate] = React.useState({ y: 0 });
- return (
-
{
- const { dy } = event;
- setCoordinate(prev => ({
- y: prev.y + dy,
- }));
- }}
- y={coordinate.y}
- />
- );
- };
-
-
- return(
-
-
DRAG _TEST
- ycore.SwapMode.openFragment(<>>)} >Open drag
-
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/src/pages/debug_test/drag_t.tsx b/src/pages/debug_test/drag_t.tsx
deleted file mode 100644
index df0dfaa1..00000000
--- a/src/pages/debug_test/drag_t.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import * as React from 'react'
-
-export interface DemoProps {
- y?: number;
- width?: number;
- height?: number;
- angle?: number;
- getRef: React.Ref;
-}
-
-const Demo = (props: DemoProps) => {
- const { getRef, y, angle, width, height } = props
- return (
-
- Reactable is a react hight-order component for interactjs.
-
- top: {y}
- width: {width}
- height: {height}
-
-
- )
-}
-
-Demo.defaultProps = {
- x: 0,
- y: 0,
- width: 200,
- height: 200,
- angle: 0
-}
-
-export default Demo
\ No newline at end of file
diff --git a/src/pages/debug_test/fileshare.jsx b/src/pages/debug_test/fileshare.jsx
deleted file mode 100644
index 25bcacfd..00000000
--- a/src/pages/debug_test/fileshare.jsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import React from 'react'
-import randomstring from 'randomstring'
-import Peer from 'peerjs'
-
-export default class extends React.PureComponent{
- constructor(props){
- super(props),
- this.state={
- peer: new Peer(),
- my_id: null,
- peer_id: null,
- initialized: false,
- files: []
- }
- }
- componentWillMount(){
- this.state.peer.on('open', (id)=>{
- console.log('My peer ID is: ' + id);
- this.setState({
- my_id: id,
- initialized: true
- })
- })
- this.state.peer.on('connection', (connection) => {
- console.log('New Connected')
- console.log(connection)
- this.setState({
- conn: connection
- }, () => {
- this.state.conn.on('open', this.on)
- })
- })
- }
- componentWillUnmount(){
-
- }
- connect(){
-
- }
- sendFile(){
-
- }
- onReceiveData(){
-
- }
- addFile(){
-
- }
- handleTextChange(){
-
- }
- render(){
- return(
- __ RENDER
- )
- }
- renderNotConnected(){
-
- }
- renderConnected(){
-
- }
- renderListFiles(){
-
- }
- renderNoFiles(){
-
- }
- renderFile(){
-
- }
-}
diff --git a/src/pages/debug_test/index.js b/src/pages/debug_test/index.js
deleted file mode 100644
index 9c098d20..00000000
--- a/src/pages/debug_test/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react'
-
-export default class _test extends React.PureComponent{
- render(){
- return(
-
-
__test
-
drag
-
upload
-
- )
- }
-}
\ No newline at end of file
diff --git a/src/pages/debug_test/temp.js b/src/pages/debug_test/temp.js
deleted file mode 100644
index 7391563e..00000000
--- a/src/pages/debug_test/temp.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import React from 'react'
-import * as ycore from 'ycore'
-
-export default class _temp01 extends React.PureComponent{
- state = {
- loading: true,
- ua: 'asd',
- nombre_de_usuario: ' Error ',
- estado_2: 'Algo'
- }
-
- componentDidMount(){
- const a = ycore.userData()
- const b = JSON.stringify(a)
- console.log(a)
- this.setState({ ua: b, nombre_de_usuario: 'GVASHDJH', loading: false })
-
- }
-
- render(){
- if(this.state.loading) return loading...
- return(
-
-
Hola de nuevo, {this.state.nombre_de_usuario}
- Este es tu token:
- { this.state.ua }
-
- )
- }
-}
diff --git a/src/pages/debug_test/upload.js b/src/pages/debug_test/upload.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/pages/g/$group/index.js b/src/pages/g/$group/index.js
index 3d774581..509d6e44 100755
--- a/src/pages/g/$group/index.js
+++ b/src/pages/g/$group/index.js
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react'
import { pathMatchRegexp } from 'utils'
import { SearchCard } from 'components'
import styles from './styles.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -26,7 +26,7 @@ class GroupIndexer extends PureComponent {
const raw = parsed.toString()
const string = raw.replace('/s/', '')
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
}
diff --git a/src/pages/index.js b/src/pages/index.js
index 183c0a9e..5df7edbe 100755
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -1,9 +1,9 @@
import React, { PureComponent } from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
class Index extends PureComponent {
render() {
- ycore.router.go(`login`)
+ app.router.go(`login`)
}
}
diff --git a/src/pages/login/index.js b/src/pages/login/index.js
index 6832aa16..65c1b59b 100755
--- a/src/pages/login/index.js
+++ b/src/pages/login/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import { AppInfo } from 'ycore'
+import { AppInfo } from 'app'
import styles from './index.less'
import classnames from 'classnames'
diff --git a/src/pages/login/login.js b/src/pages/login/login.js
index 231bd947..d41d39e9 100755
--- a/src/pages/login/login.js
+++ b/src/pages/login/login.js
@@ -5,7 +5,7 @@ import Fade from 'react-reveal/Fade'
import HeadShake from 'react-reveal/HeadShake';
import * as antd from 'antd'
-import * as ycore from 'ycore'
+import * as app from 'app'
import { Form, Input, Button, Checkbox } from 'antd'
import {
@@ -31,7 +31,7 @@ export class NormalLoginForm extends React.PureComponent {
switch (a) {
case 1:
const payload = { username: Object.values(values).toString() }
- ycore.get_early.user((err, res) => {
+ app.get_early.user((err, res) => {
if (err || !res) return false
try {
const res_data = JSON.parse(res)
@@ -90,11 +90,11 @@ export class NormalLoginForm extends React.PureComponent {
const frame = { EncUsername: form_rawd_1, EncPassword: form_rawd_2 }
this.setState({ step_error: false, validating: true })
- ycore.app_session.login((err, res) => {
+ app.app_session.login((err, res) => {
switch (res) {
case '200': {
this.anim_transition(300)
- ycore.LoginPage.transitionToogle()
+ app.LoginPage.transitionToogle()
return
}
case '400': {
diff --git a/src/pages/main/index.js b/src/pages/main/index.js
index 1eaaff42..36ad00c9 100755
--- a/src/pages/main/index.js
+++ b/src/pages/main/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import { PostCreator, MainFeed } from 'components'
import styles from './index.less'
@@ -7,7 +7,7 @@ export default class Main extends React.Component {
render() {
return (
)
diff --git a/src/pages/p/$post/index.js b/src/pages/p/$post/index.js
index e4f70dda..13821fdb 100755
--- a/src/pages/p/$post/index.js
+++ b/src/pages/p/$post/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import { pathMatchRegexp } from 'utils'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
@@ -16,11 +16,11 @@ export default class Indexer_Post extends React.Component {
toSwap(id) {
const payload = { post_id: id }
- ycore.comty_post.get((err, res) => {
+ app.comty_post.get((err, res) => {
if (err) {
return false
}
- ycore.SecondarySwap.openPost(res)
+ app.SecondarySwap.openPost(res)
}, payload)
}
@@ -36,12 +36,12 @@ export default class Indexer_Post extends React.Component {
this.toSwap(string)
}
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
}
render() {
- ycore.router.go('main')
+ app.router.go('main')
return null
}
}
diff --git a/src/pages/s/$search/index.js b/src/pages/s/$search/index.js
index 75ce960d..17589281 100755
--- a/src/pages/s/$search/index.js
+++ b/src/pages/s/$search/index.js
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react'
import { pathMatchRegexp } from 'utils'
import { SearchCard } from 'components'
import styles from './styles.less'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
@@ -27,16 +27,16 @@ class SearchPageIndexer extends PureComponent {
const string = raw.replace('/s/', '')
const payload = { key: string }
- ycore.comty_search.keywords((err, res) => {
+ app.comty_search.keywords((err, res) => {
if (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
- ycore.yconsole.log('Founded entries => ', JSON.parse(res))
+ app.yconsole.log('Founded entries => ', JSON.parse(res))
this.setState({ SearchResult: res })
this.toogleLoading()
}, payload)
} catch (err) {
- ycore.notify.error(err)
+ app.notify.error(err)
}
}
@@ -59,19 +59,19 @@ class SearchPageIndexer extends PureComponent {
const users = () => {
if (usersParsed.length >= 1) {
- ycore.yconsole.log('Users => ', usersParsed)
+ app.yconsole.log('Users => ', usersParsed)
return this.EntryComponent('Users', usersParsed)
}
}
const groups = () => {
if (groupsParsed.length >= 1) {
- ycore.yconsole.log('Groups => ', groupsParsed)
+ app.yconsole.log('Groups => ', groupsParsed)
return this.EntryComponent('Groups', groupsParsed)
}
}
const pages = () => {
if (pagesParsed.length >= 1) {
- ycore.yconsole.log('Pages => ', pagesParsed)
+ app.yconsole.log('Pages => ', pagesParsed)
return this.EntryComponent('Pages', pagesParsed)
}
}
@@ -135,7 +135,7 @@ class SearchPageIndexer extends PureComponent {
const string = raw.replace('/s/', '')
if (matchSearch) {
- ycore.yconsole.log(`Search matched! ${location.pathname}`)
+ app.yconsole.log(`Search matched! ${location.pathname}`)
return (
diff --git a/src/pages/saves/index.js b/src/pages/saves/index.js
index 6b12a01c..68e6ce42 100755
--- a/src/pages/saves/index.js
+++ b/src/pages/saves/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
import { MainFeed } from 'components'
@@ -11,13 +11,13 @@ export default class PostSaved extends React.PureComponent{
data: null,
}
componentDidMount(){
- ycore.comty_post.getSaved((err,res) => {
+ app.comty_post.getSaved((err,res) => {
if (err) return false
try {
const a = JSON.parse(res)['data']
this.setState({ data: a, loading: false })
} catch (error) {
- ycore.notify.exception('Error cathing saved posts... ', error)
+ app.notify.exception('Error cathing saved posts... ', error)
}
})
}
diff --git a/src/pages/settings/components/base.js b/src/pages/settings/components/base.js
index e9b50d3d..43f55588 100755
--- a/src/pages/settings/components/base.js
+++ b/src/pages/settings/components/base.js
@@ -1,8 +1,8 @@
import React, { Component, Fragment } from 'react'
import { List, Switch, Button, notification, InputNumber } from 'antd'
import { ListSettings } from '../../../../globals/settings.js'
-import { ControlBar } from 'ycore'
-import * as ycore from 'ycore'
+import { ControlBar } from 'app'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import Icon from '@ant-design/icons'
import { CustomIcons } from 'components'
@@ -18,7 +18,7 @@ class Base extends Component {
componentDidMount() {
if (!localStorage.getItem('app_settings')) {
- ycore.yconsole.warn(
+ app.yconsole.warn(
'The settings for this app in your Account isnt set yet, Using stock settings...'
)
}
@@ -70,7 +70,7 @@ class Base extends Component {
)
} catch (err) {
- return ycore.yconsole.log(err)
+ return app.yconsole.log(err)
}
}
handleControlBar() {
@@ -96,7 +96,7 @@ class Base extends Component {
description:
'The configuration has been saved, it may for some configuration to make changes you need to reload the application',
})
- setTimeout(ycore._app.refresh(), 1000)
+ setTimeout(app._app.refresh(), 1000)
ControlBar.close()
}
@@ -108,7 +108,7 @@ class Base extends Component {
ita === item ? Object.assign(ita, { value: to }) : ita
)
this.setState({ SettingRepo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
+ app.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
} catch (err) {
console.log(err)
}
@@ -124,7 +124,7 @@ class Base extends Component {
ita === item ? Object.assign(ita, { value: value }) : ita
)
this.setState({ SettingRepo: updatedValue, forSave: true })
- ycore.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
+ app.yconsole.log(`Changing ${item.SettingID} to value ${to}`)
} catch (err) {
console.log(err)
}
diff --git a/src/pages/settings/components/earnings/index.js b/src/pages/settings/components/earnings/index.js
index 525aea65..e27fae79 100755
--- a/src/pages/settings/components/earnings/index.js
+++ b/src/pages/settings/components/earnings/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
import * as Icons from '@ant-design/icons'
@@ -10,7 +10,7 @@ export default class Earnings extends React.Component {
}
componentDidMount(){
- ycore.comty_get.get_user_data((err,res)=>{
+ app.comty_data.get_user_data((err,res)=>{
if (err) return false
try {
const a = JSON.parse(res)['user_data']
diff --git a/src/pages/settings/components/notification/index.js b/src/pages/settings/components/notification/index.js
index 3edd9135..193f8801 100755
--- a/src/pages/settings/components/notification/index.js
+++ b/src/pages/settings/components/notification/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import styles from './index.less'
diff --git a/src/pages/settings/components/security/index.js b/src/pages/settings/components/security/index.js
index 496a31a2..c97de7a9 100755
--- a/src/pages/settings/components/security/index.js
+++ b/src/pages/settings/components/security/index.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as Icons from '@ant-design/icons'
import * as antd from 'antd'
import styles from './index.less'
diff --git a/src/pages/settings/components/security/sessions.js b/src/pages/settings/components/security/sessions.js
index 01c168c1..f2c4454f 100755
--- a/src/pages/settings/components/security/sessions.js
+++ b/src/pages/settings/components/security/sessions.js
@@ -1,5 +1,5 @@
import React from 'react'
-import * as ycore from 'ycore'
+import * as app from 'app'
import * as antd from 'antd'
export default class Sessions_Manager extends React.Component {
@@ -7,10 +7,10 @@ export default class Sessions_Manager extends React.Component {
sessions_data: '',
}
componentDidMount() {
- ycore.comty_get.session_id((err, res) => {
+ app.comty_data.session_id((err, res) => {
this.setState({ sid: res })
})
- ycore.comty_get.sessions((err, res) => {
+ app.comty_data.sessions((err, res) => {
const a = JSON.parse(res)['data']
this.setState({ sessions_data: a })
})
diff --git a/src/utils/index.js b/src/utils/index.js
index 0f2ebe47..f816f105 100755
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -2,7 +2,7 @@ import { cloneDeep, isString, flow, curry } from 'lodash'
import umiRouter from 'umi/router'
import pathToRegexp from 'path-to-regexp'
import { i18n } from 'config'
-import * as ycore from 'ycore'
+import * as app from 'app'
export const { defaultLanguage } = i18n
export const languages = i18n.languages.map(item => item.key)
@@ -244,25 +244,25 @@ export function setLocale(language) {
export const _app = {
setup: () => {
- ycore.notify.success('Authorised, please wait...')
+ app.notify.success('Authorised, please wait...')
const resourceLoad = localStorage.getItem('resource_bundle')
if (!resourceLoad) {
localStorage.setItem('resource_bundle', 'light_ng')
}
- ycore.router.push('main')
+ app.router.push('main')
},
query: () => {
- const validBackup = ycore.validate.backup()
- if (!validBackup) ycore.make_data.backup()
+ const validBackup = app.validate.backup()
+ if (!validBackup) app.cid_backup.set()
},
refresh: () => {
return window.location = '/'
},
logout: () => {
- return ycore.app_session.logout()
+ return app.app_session.logout()
},
login: (callback, data) => {
- return ycore.app_session.login(callback, data)
+ return app.app_session.login(callback, data)
},
}
\ No newline at end of file