Skip to content

Commit

Permalink
feat!: refactor/rewrite frontend
Browse files Browse the repository at this point in the history
* switched from scss to tailwindcss
* rewrote all styles
* added support for dark mode (toggle-able via ctrl+,)
* added adfinis ci/cd colour theme (toggle-able via ctrl+.)
* fixed some visual bugs
* a lot more
  • Loading branch information
c0rydoras authored Dec 5, 2024
1 parent 6b3510f commit a62047c
Show file tree
Hide file tree
Showing 324 changed files with 6,643 additions and 10,668 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

strategy:
matrix:
target: [js, hbs]
target: [js, hbs, css]

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": [
"prettier-plugin-tailwindcss"
]
}
20 changes: 17 additions & 3 deletions frontend/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@

module.exports = {
plugins: ["stylelint-prettier"],
extends: ["stylelint-prettier/recommended", "stylelint-config-standard-scss"],
extends: ["stylelint-prettier/recommended", "stylelint-config-standard"],
rules: {
"scss/at-extend-no-missing-placeholder": null,
"selector-class-pattern": null,
"custom-property-empty-line-before": null, // we use empty lines to group/order properties
"at-rule-empty-line-before": ["never", { ignoreAtRules: ["import"] }], // we use empty lines to group/order imports (su)
"selector-class-pattern": null, // we can ignore this because most css is styling 3rd party components where we don't control the class names
"import-notation": null, // doesn't really work with postcss-import
"at-rule-no-unknown": [
true,
{
ignoreAtRules: ["apply"], // ignore tailwind decorators
},
],
"function-no-unknown": [
true,
{
ignoreFunctions: ["theme"], // ignore tailwind functions
},
],
},
};
23 changes: 0 additions & 23 deletions frontend/.template-lintrc-ci.js

This file was deleted.

3 changes: 2 additions & 1 deletion frontend/.template-lintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";

module.exports = {
extends: "recommended",
plugins: ["ember-template-lint-plugin-prettier"],
extends: ["recommended", "ember-template-lint-plugin-prettier:recommended"],
};
2 changes: 1 addition & 1 deletion frontend/app/abilities/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ReportAbility extends Ability {
(this.model?.taskAssignees ?? [])
.concat(
this.model?.projectAssignees ?? [],
this.model?.customerAssignees ?? []
this.model?.customerAssignees ?? [],
)
.filter((a) => a?.user)
.map((a) => a.user.get("id"))
Expand Down
8 changes: 4 additions & 4 deletions frontend/app/analysis/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class AnalysisEditController extends Controller {
})}`,
{
method: "GET",
}
},
);

yield this.store.pushPayload("report-intersection", res);
Expand Down Expand Up @@ -252,9 +252,9 @@ export default class AnalysisEditController extends Controller {
underscoreQueryParams(
serializeQueryParams(
filterQueryParams(params, "editable"),
queryParamsState(this)
)
)
queryParamsState(this),
),
),
);
}
}
Loading

0 comments on commit a62047c

Please sign in to comment.