Skip to content

Commit

Permalink
Bulk find replace of steemit.com to smoke.io
Browse files Browse the repository at this point in the history
  • Loading branch information
joshystuart committed Feb 22, 2018
1 parent bbd0cd6 commit f0f11bc
Show file tree
Hide file tree
Showing 34 changed files with 172 additions and 210 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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

Expand All @@ -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.

Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dependencies:

test:
override:
- docker build -t steemit/steemit.com .
- docker build -t steemit/smoke.io .
6 changes: 3 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down Expand Up @@ -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"
}
8 changes: 4 additions & 4 deletions doc/FAQ.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# steemit.com Repository FAQ
# smoke.io Repository FAQ

# Golden Rules

* The issue tracker is for bugs and specific implementation discussion. It
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.
Expand All @@ -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.)

Expand Down
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -185,9 +184,5 @@
"engines": {
"node": ">=7.0.0",
"npm": ">=5.4.2"
},
"pre-commit": [
"eslint",
"checktranslations"
]
}
}
2 changes: 1 addition & 1 deletion scripts/webpush_notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/app/assets/static/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<title>Search - steemit.com</title>
<title>Search - smoke.io</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation-flex.css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<style>
Expand Down Expand Up @@ -92,7 +92,7 @@
height: auto;
display: block;
height: auto;
}
}
.logo-new .icon-svg {
fill: #06D6A9;
transition: 0.2s all ease-in-out;
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class App extends React.Component {
<CloseButton onClick={() => this.setState({showCallout: false})} />
<ul>
<li>
/*<a href="https://steemit.com/steemit/@steemitblog/steemit-com-is-now-open-source">
/*<a href="https://smoke.io/steemit/@steemitblog/steemit-com-is-now-open-source">
...STORY TEXT...
</a>*/
</li>
Expand Down Expand Up @@ -338,4 +338,4 @@ export default connect(
//dispatch(g.actions.showDialog({name: 'blocktrades_deposit', params: {outputCoinType: 'VESTS'}}));
},
})
)(App);
)(App);
2 changes: 1 addition & 1 deletion src/app/components/elements/CheckLoginOwner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CheckLoginOwner extends React.Component {
const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000
const deadline = last_valid_date.getTime() + THIRTY_DAYS

// https://steemit.com/steem/@originate/steem-s-new-alert-after-key-updates-is-excellent-but-here-s-a-quick-update-that-would-make-it-even-better
// https://smoke.io/steem/@originate/steem-s-new-alert-after-key-updates-is-excellent-but-here-s-a-quick-update-that-would-make-it-even-better
// "If you recently reset your password at(timestamp in strftime, example: Thu, 21 Jul 2016 02:39:19 PST) this alert was most likely prompted by this action, otherwise your immediate attention is needed"
return <span>
<Reveal show>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/elements/SlateEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default class SlateEditor extends React.Component {
}

else if (state.isExpanded) {
const href = window.prompt('Enter the URL of the link:', 'http://steemit.com')
const href = window.prompt('Enter the URL of the link:', 'http://smoke.io')
if(href) {
state = state
.transform()
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/elements/YoutubePreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class YoutubePreview extends React.Component {
static defaultProps = {
width: 640,
height: 360,
dataParams: 'enablejsapi=0&rel=0&origin=https://steemit.com'
dataParams: 'enablejsapi=0&rel=0&origin=https://smoke.io'
}

constructor() {
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/modules/ExplorePost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class ExplorePost extends Component {
const steemd = 'https://steemd.com' + link;
const steemdb = 'https://steemdb.com' + link;
const busy = 'https://busy.org' + link;
const steemit = 'https://steemit.com' + link;
const phist = 'https://phist.steemdata.com/history?identifier=steemit.com' + link;
const steemit = 'https://smoke.io' + link;
const phist = 'https://phist.steemdata.com/history?identifier=smoke.io' + link;
let text = this.state.copied == true ? tt('explorepost_jsx.copied') : tt('explorepost_jsx.copy');
return (
<span className="ExplorePost">
Expand Down
Loading

0 comments on commit f0f11bc

Please sign in to comment.