From f0f11bc5077dc20d05c0c8a136f3c056f36df995 Mon Sep 17 00:00:00 2001 From: crimsonronin Date: Thu, 22 Feb 2018 15:03:14 +1100 Subject: [PATCH] Bulk find replace of steemit.com to smoke.io --- CONTRIBUTING.md | 4 +- Makefile | 2 +- README.md | 18 ++--- circle.yml | 2 +- config/default.json | 6 +- doc/FAQ.md | 8 +-- package.json | 13 ++-- scripts/webpush_notify.js | 2 +- src/app/assets/static/search.html | 4 +- src/app/components/App.jsx | 4 +- .../components/elements/CheckLoginOwner.jsx | 2 +- src/app/components/elements/SlateEditor.jsx | 2 +- .../components/elements/YoutubePreview.jsx | 2 +- src/app/components/modules/ExplorePost.jsx | 4 +- src/app/components/modules/Header.jsx | 28 ++------ src/app/components/modules/TermsAgree.jsx | 6 +- src/app/components/pages/CreateAccount.jsx | 4 +- src/app/components/pages/PickAccount.jsx | 6 +- src/app/components/pages/Privacy.jsx | 2 +- src/app/components/pages/Support.jsx | 2 +- src/app/components/pages/Tos.jsx | 6 +- src/app/help/en/faq.md | 40 +++++------ src/app/help/en/welcome.md | 72 +++++++++---------- src/app/redux/Transaction.js | 2 +- src/app/redux/UserSaga.js | 2 +- src/app/utils/ExtractMeta.js | 72 +++++++++---------- src/app/utils/Links.js | 4 +- src/app/utils/Links.test.js | 4 +- src/app/utils/SanitizeConfig.js | 2 +- src/db/config/config.json | 4 +- src/server/api/oauth.js | 10 +-- src/shared/HtmlReady.js | 4 +- src/shared/HtmlReady.test.js | 18 ++--- yarn.lock | 21 +----- 34 files changed, 172 insertions(+), 210 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4d0ed73..7bb988b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ If you are having trouble using the website but it is not an error with the webs ## Enhancement Suggestions -Do **not** use the issue tracker to suggest enhancements or improvements to the platform. The best place for these discussions is on Steemit.com. If there is a well vetted idea that has the support of the community that you feel should be considered by the development team, please email it to [sneak@steemit.com](mailto:sneak@steemit.com) for review. +Do **not** use the issue tracker to suggest enhancements or improvements to the platform. The best place for these discussions is on Steemit.com. If there is a well vetted idea that has the support of the community that you feel should be considered by the development team, please email it to [sneak@smoke.io](mailto:sneak@smoke.io) for review. ## Implementation Discussion @@ -34,4 +34,4 @@ This issue tracker is only intended to track issues for the Steemit.com website. Anybody in the community is welcome and encouraged to submit pull requests with any desired changes to the platform! -Requests to make changes to steemit.com that include working, tested pull requests jump to the top of the queue. There is not a guarantee that all functionality submitted as a PR will be accepted and merged, however. +Requests to make changes to smoke.io that include working, tested pull requests jump to the top of the queue. There is not a guarantee that all functionality submitted as a PR will be accepted and merged, however. diff --git a/Makefile b/Makefile index 1afba09..c6b722f 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ node_modules: yarn install build: - docker build -t steemit/steemit.com . + docker build -t steemit/smoke.io . clean: rm -rf node_modules *.log tmp npm-debug.log.* diff --git a/README.md b/README.md index aca00ee..ae6eaa2 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,18 @@ # Condenser -Condenser is the react.js web interface to the world's first and best blockchain-based social media platform, steemit.com. It uses [STEEM](https://github.com/steemit/steem), a blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications. +Condenser is the react.js web interface to the world's first and best blockchain-based social media platform, smoke.io. It uses [STEEM](https://github.com/steemit/steem), a blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications. -## Why would I want to use Condenser (steemit.com front-end)? +## Why would I want to use Condenser (smoke.io front-end)? * Learning how to build blockchain-based web applications using STEEM as a content storage mechanism in react.js -* Reviewing the inner workings of the steemit.com social media platform -* Assisting with software development for steemit.com +* Reviewing the inner workings of the smoke.io social media platform +* Assisting with software development for smoke.io ## Installation #### Docker -We highly recommend using docker to run condenser. This is how we run the live steemit.com site and it is the most supported (and fastest) method of both building and running condenser. We will always have the latest version of condenser (master branch) available on dockerhub. Configuration settings can be set using environment variables (see configuration section below for more information). If you need to install docker, you can get it at https://get.docker.com +We highly recommend using docker to run condenser. This is how we run the live smoke.io site and it is the most supported (and fastest) method of both building and running condenser. We will always have the latest version of condenser (master branch) available on dockerhub. Configuration settings can be set using environment variables (see configuration section below for more information). If you need to install docker, you can get it at https://get.docker.com To bring up a running container it's as simple as this: @@ -80,7 +80,7 @@ yarn run start It will take quite a bit longer to start in this mode (~60s) as it needs to build and start the webpack-dev-server. -By default you will be connected to steemit.com's public steem node at `wss://steemd.steeemit.com`. This is actually on the real blockchain and you would use your regular account name and credentials to login - there is not an official separate testnet at this time. If you intend to run a full-fledged site relying on your own, we recommend looking into running a copy of `steemd` locally instead [https://github.com/steemit/steem](https://github.com/steemit/steem). +By default you will be connected to smoke.io's public steem node at `wss://steemd.steeemit.com`. This is actually on the real blockchain and you would use your regular account name and credentials to login - there is not an official separate testnet at this time. If you intend to run a full-fledged site relying on your own, we recommend looking into running a copy of `steemd` locally instead [https://github.com/steemit/steem](https://github.com/steemit/steem). #### Configuration @@ -89,8 +89,8 @@ The intention is to configure condenser using environment variables. You can see Environment variables using an example like this: ```bash -export SDC_CLIENT_STEEMD_URL="wss://steemd.steemit.com" -export SDC_SERVER_STEEMD_URL="wss://steemd.steemit.com" +export SDC_CLIENT_STEEMD_URL="wss://steemd.smoke.io" +export SDC_SERVER_STEEMD_URL="wss://steemd.smoke.io" ``` Keep in mind environment variables only exist in your active session, so if you wish to save them for later use you can put them all in a file and `source` them in. @@ -221,6 +221,6 @@ We adhere to BEM methodology with exception for Foundation classes, here is an e To report a non-critical issue, please file an issue on this GitHub project. -If you find a security issue please report details to: security@steemit.com +If you find a security issue please report details to: security@smoke.io We will evaluate the risk and make a patch available before filing the issue. diff --git a/circle.yml b/circle.yml index dd9c89c..0830205 100644 --- a/circle.yml +++ b/circle.yml @@ -8,4 +8,4 @@ dependencies: test: override: - - docker build -t steemit/steemit.com . + - docker build -t steemit/smoke.io . diff --git a/config/default.json b/config/default.json index 82b8d73..689da99 100644 --- a/config/default.json +++ b/config/default.json @@ -33,7 +33,7 @@ "helmet": { "directives": { "childSrc": "'self' www.youtube.com staticxx.facebook.com w.soundcloud.com player.vimeo.com", - "connectSrc": "'self' steemit.com wss://steemd.steemit.com api.blocktrades.us", + "connectSrc": "'self' smoke.io wss://steemd.smoke.io api.blocktrades.us", "defaultSrc": "'self' www.youtube.com staticxx.facebook.com player.vimeo.com", "fontSrc": "data: fonts.gstatic.com", "frameAncestors": "'none'", @@ -96,8 +96,8 @@ "auth_token": false }, "upload_image": false, - "steemd_connection_client": "wss://steemd.steemit.com", - "steemd_connection_server": "wss://steemd.steemit.com", + "steemd_connection_client": "wss://steemd.smoke.io", + "steemd_connection_server": "wss://steemd.smoke.io", "chain_id": "0000000000000000000000000000000000000000000000000000000000000000", "address_prefix": "STM" } diff --git a/doc/FAQ.md b/doc/FAQ.md index 5e98e2e..6809703 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -1,4 +1,4 @@ -# steemit.com Repository FAQ +# smoke.io Repository FAQ # Golden Rules @@ -6,7 +6,7 @@ is not appropriate for product metadiscussion - it is a workroom, not a cocktail party. -* Not every feature that spawns a drama thread on steemit.com necessarily +* Not every feature that spawns a drama thread on smoke.io necessarily warrants a commit/PR. Frequently, such threads occur even when nothing is broken or when things are working as intended. Not all problems encountered warrant technical solutions. @@ -16,10 +16,10 @@ discussion forum. * Product improvement suggestions are encouraged, however they should be - sent to [sneak@steemit.com](mailto:sneak@steemit.com) for review. + sent to [sneak@smoke.io](mailto:sneak@smoke.io) for review. * Working code (usually) trumps all. Requests to make changes to - steemit.com that include working, tested Pull Requests jump to the top of + smoke.io that include working, tested Pull Requests jump to the top of the queue. (This is not a guarantee that all functionality submitted as a PR will be merged, however.) diff --git a/package.json b/package.json index d07e6ad..aa30233 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "steemit.com", + "name": "smoke.io", "repository": { "type": "git", - "url": "https://github.com/steemit/steemit.com.git" + "url": "https://github.com/steemit/smoke.io.git" }, "version": "1.0.0", - "description": "steemit.com is the koa web server & middleware and react.js in-browser code for the world's first blockchain content + social media monetization platform!", + "description": "smoke.io is the koa web server & middleware and react.js in-browser code for the world's first blockchain content + social media monetization platform!", "main": "index.js", "scripts": { "build": "NODE_ENV=production ./node_modules/babel-cli/bin/babel-node.js ./node_modules/.bin/webpack --config ./webpack/prod.config.js; rm -rf ./lib; NODE_ENV=production babel --plugins transform-runtime,transform-inline-environment-variables src --out-dir lib -Dq", @@ -169,7 +169,6 @@ "koa-webpack-hot-middleware": "^1.0.3", "mocha": "^2.4.5", "node-watch": "^0.5.5", - "pre-commit": "^1.2.2", "react-addons-perf": "15.4.2", "react-addons-test-utils": "15.4.2", "react-transform-catch-errors": "^1.0.1", @@ -185,9 +184,5 @@ "engines": { "node": ">=7.0.0", "npm": ">=5.4.2" - }, - "pre-commit": [ - "eslint", - "checktranslations" - ] + } } diff --git a/scripts/webpush_notify.js b/scripts/webpush_notify.js index 7d459fb..f9bbac0 100644 --- a/scripts/webpush_notify.js +++ b/scripts/webpush_notify.js @@ -10,7 +10,7 @@ function notify(account, nparams, title, body, url, pic) { title, body, url, - icon: pic || 'https://steemit.com/favicon.ico' //FIXME domain name from config + icon: pic || 'https://smoke.io/favicon.ico' //FIXME domain name from config }); return new Promise((resolve, reject) => { webPush.sendNotification(nparams, payload).then(function() { diff --git a/src/app/assets/static/search.html b/src/app/assets/static/search.html index 3b7b270..5628cb1 100644 --- a/src/app/assets/static/search.html +++ b/src/app/assets/static/search.html @@ -3,7 +3,7 @@ - Search - steemit.com + Search - smoke.io