Skip to content

Commit

Permalink
[FB] Nora | Introduce biome
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Jun 1, 2024
1 parent ce1f8fb commit aa78a81
Show file tree
Hide file tree
Showing 11 changed files with 161 additions and 39 deletions.
23 changes: 23 additions & 0 deletions nora/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off"
}
}
},
"files": {
"ignore": [
"bin/**",
"dist/**",
"node_modules/**"
]
}
}
2 changes: 1 addition & 1 deletion nora/dist/assets/utils.js.map

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions nora/dist/content.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nora/dist/content.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nora/dist/csk.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions nora/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"license": "MPL-2.0",
"type": "module",
"devDependencies": {
"@biomejs/biome": "1.7.3",
"execa": "^9.1.0",
"puppeteer-core": "^22.10.0",
"solid-styled-jsx": "^0.27.1",
Expand Down
91 changes: 91 additions & 0 deletions nora/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions nora/src/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import { initBrowserContextMenu } from "./context-menu";
CustomShortcutKey.getInstance();

window.SessionStore.promiseInitialized.then(() => {
initBrowserContextMenu();
initStatusbar();
initBrowserContextMenu();
initStatusbar();
});
2 changes: 1 addition & 1 deletion nora/src/preferences/csk/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import type {} from "../../solid-xul/jsx-runtime"
import type {} from "../../solid-xul/jsx-runtime";
export function category() {
return (
<xul:richlistitem
Expand Down
19 changes: 13 additions & 6 deletions nora/src/preferences/csk/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ import {
setCurrentFocus,
setEditingStatus,
} from "./setkey";
import { commands, csk_category } from "../../components/custom-shortcut-key/commands";
import {
commands,
csk_category,
} from "../../components/custom-shortcut-key/commands";

export const CustomShortcutKeyPage = () => {
return (
<>
<div>
<h1 data-l10n-id="floorp-CSK-title"/>
<xul:description class="indent tip-caption" data-l10n-id="floorp-CSK-description"/>
<h1 data-l10n-id="floorp-CSK-title" />
<xul:description
class="indent tip-caption"
data-l10n-id="floorp-CSK-description"
/>
<xul:checkbox data-l10n-id="disable-fx-actions" />
</div>
<For each={csk_category}>
Expand Down Expand Up @@ -65,17 +71,18 @@ export const CustomShortcutKeyPage = () => {
color: "inherit",
padding: "6px 10px",
"background-color": "transparent !important",
border: "1px solid var(--input-border-color) !important",
border:
"1px solid var(--input-border-color) !important",
transition: "all .2s ease-in-out !important",
}}
/>
</div>
) : undefined
}
</For>
</xul:vbox>
</xul:vbox>
)}
</For>
</>
);
}
};
2 changes: 1 addition & 1 deletion nora/src/preferences/csk/setkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
zCSKData,
} from "../../components/custom-shortcut-key/defines";
import type { commands } from "../../components/custom-shortcut-key/commands";
import { checkIsSystemShortcut } from "../../components/custom-shortcut-key/utils"
import { checkIsSystemShortcut } from "../../components/custom-shortcut-key/utils";
import { create } from "sortablejs";

export const [editingStatus, setEditingStatus] = createSignal<string | null>(
Expand Down

0 comments on commit aa78a81

Please sign in to comment.