Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: removed the duplication of themes #223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Pull requests are the best way to propose changes. We actively welcome your pull

GitHub Readme Quotes would appreciate your contribution to new themes!

All you need to do is edit [themes/themes.js](./src/themes/themes.js) file and add your theme at the end of the file.
All you need to do is edit [themes/themes.js](util/themes/themes.js) file and add your theme at the end of the file.

While creating the pull request make sure to add a screenshot of your theme. That would help us!!

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontr

<!-- Scrnshot of quote in different themes -->

You can explore different themes [here](./src/themes/README.md).
You can explore different themes [here](util/themes/README.md).

<b>Feel free to contribute different themes.</b>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/organisms/TemplateCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import getTemplate from "../../../util/template/getTemplate";
import Template from "../../../util/template/Template";
import mainLayouts from "../../../util/layouts";
import mainAnimations from "../../../util/animation";
import mainThemes from "../../../util/themes";
import mainThemes from "../../../../../util/themes/themes";
import mainFonts from "../../../util/fonts";

const TemplateCard = (props) => {
Expand Down
245 changes: 0 additions & 245 deletions frontend/src/util/themes/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions src/animations/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/api/controllers/quotesController.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const themes = require("../../themes/themes");
const themes = require("../../../util/themes/themes");
const animations = require("../../animations/animation");
const layouts=require("../../layouts/layout");
const quoteService=require("../services/quotesService");
Expand Down
2 changes: 1 addition & 1 deletion src/themes/README.md → util/themes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ Use `?theme=THEME_NAME` parameter like so :-

Wanted to add a new theme? Consider reading the [contribution guidelines](../../CONTRIBUTING.md#themes-contribution) :D

You can add your new themes [here](./themes.js).
You can add your new themes [here](themes.js).
File renamed without changes.