Skip to content

Commit

Permalink
chore: remove the options page
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Dec 10, 2024
1 parent 09752b9 commit e31c5be
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 306 deletions.
60 changes: 0 additions & 60 deletions src/assets/js/components/options/authenticated-options.jsx

This file was deleted.

90 changes: 0 additions & 90 deletions src/assets/js/components/options/sign-in.jsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/assets/js/components/popup/sign-in.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { callApi } from '@/main';
import {
notifySignInSuccess,
} from '@/features/popup/popupSlice';
import { TokenHelpText } from '@/components/options/token-help-text';
import { TokenHelpText } from '@/components/popup/token-help-text';

const SignInFormError = ({ message }) => {
return (
Expand All @@ -21,7 +21,7 @@ const SignInFormError = ({ message }) => {
);
};

export const SignInCallToAction = () => {
export const SignInForm = () => {
const [isLoading, setIsLoading] = useState(false);
const [showSignInFormError, setShowSignInFormError] = useState(false);
const [token, setToken] = useState('');
Expand Down Expand Up @@ -51,7 +51,7 @@ export const SignInCallToAction = () => {
}

return (
<div className="page" id="sign-in-page">
<div className="page mt-4" id="sign-in-page">
<div className="d-flex flex-column">
<section className="align-items-center d-flex flex-grow-1 justify-content-center border-0">
<div className="text-center">
Expand Down
40 changes: 0 additions & 40 deletions src/assets/js/features/options/optionsSlice.js

This file was deleted.

88 changes: 0 additions & 88 deletions src/assets/js/options.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/assets/js/popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'bootstrap-icons/font/bootstrap-icons.scss';
import '@/scss/style.scss';
import '@/scss/sweetalert-icons.scss';

import { SignInCallToAction } from '@/components/popup/sign-in';
import { SignInForm } from '@/components/popup/sign-in';
import { Success } from '@/components/popup/success';
import { Proposal } from '@/components/popup/proposal';
import { SignInSuccess } from '@/components/popup/sign-in-success';
Expand Down Expand Up @@ -46,7 +46,7 @@ const PopupPage = () => {

return (
<>
{showSignIn && <SignInCallToAction />}
{showSignIn && <SignInForm />}
{showProposal && <Proposal />}
{showSuccess && <Success assetDashboardLink={assetDashboardLink} />}
{showSignInSuccess && <SignInSuccess />}
Expand Down
2 changes: 0 additions & 2 deletions src/assets/js/store.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { configureStore } from '@reduxjs/toolkit';

import authReducer from '@/features/options/optionsSlice';
import popupReducer from '@/features/popup/popupSlice';

export const store = configureStore({
reducer: {
auth: authReducer,
popup: popupReducer,
},
});
3 changes: 1 addition & 2 deletions src/manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@
"16": "assets/images/screenly-logo-16.png",
"32": "assets/images/screenly-logo-32.png"
}
},
"options_page": "options.html"
}
}
1 change: 0 additions & 1 deletion src/manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"32": "assets/images/screenly-logo-32.png"
}
},
"options_page": "options.html",
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
Expand Down
12 changes: 0 additions & 12 deletions src/options.html

This file was deleted.

6 changes: 0 additions & 6 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
entry: {
'popup': './src/assets/js/popup.jsx',
'options': './src/assets/js/options.jsx',
},

module: {
Expand Down Expand Up @@ -73,11 +72,6 @@ module.exports = {
template: './src/popup.html',
chunks: ['popup']
}),
new HtmlWebpackPlugin({
filename: 'options.html',
template: './src/options.html',
chunks: ['options']
}),

new MiniCssExtractPlugin(),

Expand Down

0 comments on commit e31c5be

Please sign in to comment.