Skip to content

Commit

Permalink
using the production backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Jan 1, 2022
1 parent 40ffee4 commit 4112feb
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions tumblr-replica/data/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,7 @@
"total_pages": 7,
"first_page_url": true,
"last_page_url": 7,
"next_page_url": "http://api.dev.tumbler.social/api/posts/random_posts?page=2",
"next_page_url": "http://api.tumbler.social/api/posts/random_posts?page=2",
"prev_page_url": null
}
},
Expand Down Expand Up @@ -2540,7 +2540,7 @@
"total_pages": 7,
"first_page_url": true,
"last_page_url": 7,
"next_page_url": "http://api.dev.tumbler.social/api/posts/random_posts?page=2",
"next_page_url": "http://api.tumbler.social/api/posts/random_posts?page=2",
"prev_page_url": null
}
},
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/apis/dashboardApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import axios from 'axios';

export default axios.create({
baseURL: 'http://localhost:8000/',
// baseURL: 'https://api.dev.tumbler.social/api',
// baseURL: 'https://api.tumbler.social/api',

});
2 changes: 1 addition & 1 deletion tumblr-replica/src/apis/dist/dashboardApi.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const _axios = _interopRequireDefault(require('axios'));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const _default = _axios.default.create({
baseURL: 'http://localhost:8000/', // baseURL: 'https://api.dev.tumbler.social/api',
baseURL: 'http://localhost:8000/', // baseURL: 'https://api.tumbler.social/api',

});

Expand Down
4 changes: 2 additions & 2 deletions tumblr-replica/src/apis/dist/globalAPI.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var SERVICETYPE = REAL; // Change this to change the source
exports.SERVICETYPE = SERVICETYPE;
var api = 'http://localhost:8000';
exports.api = api;
var apiR = 'https://api.dev.tumbler.social/api';
var apiR = 'https://api.tumbler.social/api';
exports.apiR = apiR;
var apiREAL = 'https://api.dev.tumbler.social/api';
var apiREAL = 'https://api.tumbler.social/api';
exports.apiREAL = apiREAL;
2 changes: 1 addition & 1 deletion tumblr-replica/src/apis/dist/globalAxpi.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var api = _axios["default"].create({
exports.api = api;

var apiR = _axios["default"].create({
baseURL: 'https://api.dev.tumbler.social/api'
baseURL: 'https://api.tumbler.social/api'
});

exports.apiR = apiR;
4 changes: 2 additions & 2 deletions tumblr-replica/src/apis/globalAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const MOCK = 0;
export const REAL = 1;
export const SERVICETYPE = REAL; // Change this to change the source
export const api = 'http://localhost:8000';
export const apiR = 'https://api.dev.tumbler.social/api';
export const apiREAL = 'https://api.dev.tumbler.social/api';
export const apiR = 'https://api.tumbler.social/api';
export const apiREAL = 'https://api.tumbler.social/api';
2 changes: 1 addition & 1 deletion tumblr-replica/src/apis/globalAxpi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const api = axios.create({
});

export const apiR = axios.create({
baseURL: 'https://api.dev.tumbler.social/api',
baseURL: 'https://api.tumbler.social/api',
});
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const AccountSettingsPage = () => {
padding: '0 10px',
}}
>
web.dev.tumbler.social/liked/by/
tumbler.social/liked/by/
{user.blogName}
</Typography>
</Link>
Expand Down Expand Up @@ -340,7 +340,7 @@ const AccountSettingsPage = () => {
padding: '0 10px',
}}
>
web.dev.tumbler.social/followed/by/
tumbler.social/followed/by/
{user.blogName}
</Typography>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/components/MoreMenu/MoreMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MoreMenu = function MoreMenuComponent(props) {
};

const handleCopy = function CopyPostLinkOption() {
navigator.clipboard.writeText(`https://web.dev.tumbler.social/post/${postId}`);
navigator.clipboard.writeText(`https://tumbler.social/post/${postId}`);
};
return (
<div sx={{ width: 320, maxWidth: '100%' }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Check = function CheckOut(props) {
<div className="conainer2">
<div className="blog">
<span className="blogspan">
<a className="blogname" href={`https://web.dev.tumbler.social/blog/view/${blog.username}`}>
<a className="blogname" href={`https://tumbler.social/blog/view/${blog.username}`}>
<div className="blogdata">
<div className="blogimg">
<img src={blog.avatar} alt="img" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const PostContent = function PostContentDisplay(props) {
dispatch(GetBlogId({ User, blogUsername: mentioned })).then((res) => {
postBody = postBody.replace(
mentioned,
`<a href=https://web.dev.tumbler.social/${res.payload.response.id} style="text-decoration: 'underline';color: '#AAAAAA';""> ${mentioned}
`<a href=https://tumbler.social/${res.payload.response.id} style="text-decoration: 'underline';color: '#AAAAAA';""> ${mentioned}
</a>`,
);
if (k === 0) {
Expand All @@ -80,7 +80,7 @@ const PostContent = function PostContentDisplay(props) {
(hash[0] === '#')
&& (
<>
<Link href={`https://web.dev.tumbler.social/posts/${hash}`} underline="hover" style={{ color: 'grey' }} key={hash}>
<Link href={`https://tumbler.social/posts/${hash}`} underline="hover" style={{ color: 'grey' }} key={hash}>
{' '}
{hash}
{' '}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ function ProfileNavBar({ BlogId }) {
return (
<div className="nav">
<IconButton>
<a href="https://web.dev.tumbler.social/dashboard" target="_blank" rel="noreferrer">
<a href="https://tumbler.social/dashboard" target="_blank" rel="noreferrer">
<FontAwesomeIcon data-testid="HomeIcon" className="icons" icon={faHome} color="white" />
</a>
</IconButton>
<IconButton>

<a href={`https://web.dev.tumbler.social/blog/view/${BlogId}`} target="_blank" rel="noreferrer">
<a href={`https://tumbler.social/blog/view/${BlogId}`} target="_blank" rel="noreferrer">
<FontAwesomeIcon className="icons" icon={faEye} color="white" />
</a>
</IconButton>
Expand All @@ -71,7 +71,7 @@ function ProfileNavBar({ BlogId }) {
<IconButton>
{User.primaryBlogId.toString() !== BlogId && <FontAwesomeIcon data-testid="HumanIcon" onClick={() => SetOpen(!Open)} className="icons" icon={faUserAlt} color="white" />}
{User.primaryBlogId.toString() === BlogId && (
<a href={`https://web.dev.tumbler.social/settings/blog/${BlogId}`} target="blank">
<a href={`https://tumbler.social/settings/blog/${BlogId}`} target="blank">
<FontAwesomeIcon className="icons" icon={faCog} color="white" />
</a>
)}
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/answerslice/answerSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const AnswerAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: 'https://api.dev.tumbler.social/api/answer/' + dispatch.postId,
url: 'https://api.tumbler.social/api/answer/' + dispatch.postId,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/askpostslice/askpostslice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const AskAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/ask/${dispatch.blogid}`,
url: `https://api.tumbler.social/api/ask/${dispatch.blogid}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/blockSlice/blockSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const BlockAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/block/${id}/${BlogId}`,
url: `https://api.tumbler.social/api/block/${id}/${BlogId}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/blockSlice/blockslice.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const BlockAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/block/${id}/${BlogId}`,
url: `https://api.tumbler.social/api/block/${id}/${BlogId}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/blockslice/blockslice.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const BlockAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/block/${id}/${BlogId}`,
url: `https://api.tumbler.social/api/block/${id}/${BlogId}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
4 changes: 2 additions & 2 deletions tumblr-replica/src/states/features/tag/tagSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const DeleteAsyncfollowtags = createAsyncThunk(
const AuthStr = `Bearer ${USERTOKEN}`;
const response = await Axios({
method: 'DELETE',
url: `https://api.dev.tumbler.social/api/follow_tag/${TagDescription}`,
url: `https://api.tumbler.social/api/follow_tag/${TagDescription}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down Expand Up @@ -81,7 +81,7 @@ const AddAsyncfollowtags = createAsyncThunk(
const AuthStr = `Bearer ${USERTOKEN}`;
const response = await Axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/follow_tag/${TagDescription}`,
url: `https://api.tumbler.social/api/follow_tag/${TagDescription}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/followslice/followslice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const FollowAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: `https://api.dev.tumbler.social/api/follow_blog/${BlogId}`,
url: `https://api.tumbler.social/api/follow_blog/${BlogId}`,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function _callee(dispatch, _ref) {
_context.next = 21;
return regeneratorRuntime.awrap((0, _axios["default"])({
method: 'POST',
url: 'https://api.dev.tumbler.social/api/blog',
url: 'https://api.tumbler.social/api/blog',
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/newtumblr/newtumblrAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createBlog = createAsyncThunk(
const AuthStr = `Bearer ${'USERTOKEN'}`;
const response = await axios({
method: 'POST',
url: 'https://api.dev.tumbler.social/api/blog',
url: 'https://api.tumbler.social/api/blog',
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PostSubmissionAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: 'https://api.dev.tumbler.social/api/post/approve/' + PostId,
url: 'https://api.tumbler.social/api/post/approve/' + PostId,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tumblr-replica/src/states/submit/submitAPI.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SubmitAsynch = createAsyncThunk(
try {
const response = await axios({
method: 'POST',
url: 'https://api.dev.tumbler.social/api/post/submission/' + dispatch.blogId,
url: 'https://api.tumbler.social/api/post/submission/' + dispatch.blogId,
headers: {
Authorization: AuthStr,
Accept: 'application/json',
Expand Down

0 comments on commit 4112feb

Please sign in to comment.