Skip to content

Commit

Permalink
Put back old remix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Nov 24, 2024
1 parent 320c518 commit 6188e5e
Show file tree
Hide file tree
Showing 15 changed files with 157 additions and 142 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
rules: {
"import/no-cycle": "error",
"import/order": [
"warn",
"error",
{
alphabetize: { caseInsensitive: true, order: "asc" },
groups: ["builtin", "external", "internal", "parent", "sibling"],
Expand Down
2 changes: 1 addition & 1 deletion app/features/dictionary/DictEntryReadings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { DictionaryPageFigureWithPriorityUses } from "./getDictionaryPageFigure.server";
import { kanjidicKanaToRomaji } from "./kanjidicKanaToRomaji";
import { QysDialogContent } from "./QysDialogContent";
import scallopBorder from "./scallopBorder.css?url";
import scallopBorder from "./scallopBorder.css";
import slideDownStyles from "./slideDown.module.css";
import { transcribeSbgyXiaoyun } from "./transcribeSbgyXiaoyun";

Expand Down
2 changes: 1 addition & 1 deletion app/features/dictionary/SingleFigureDictionaryEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { FigureTags } from "./FigureTags";
import { GlyphsImagesSection } from "./GlyphsImagesSection";
import { GlyphsJson } from "./GlyphsJson";
import { kangxiRadicals } from "./kangxiRadicals";
import kvgStyles from "./kvg.css?url";
import kvgStyles from "./kvg.css";
import type { KvgJsonData } from "./KvgJsonData";
import { RadicalSection } from "./RadicalSection";

Expand Down
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "@remix-run/react";

import { getUser } from "~/session.server";
import stylesheet from "~/tailwind.css?url";
import stylesheet from "~/tailwind.css";

import Index from "./routes/_index";

Expand Down
9 changes: 5 additions & 4 deletions app/routes/curate.$courseId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useActionData, useLoaderData, useSubmit } from "@remix-run/react";
import {
ActionFunctionArgs,
LoaderFunctionArgs,
json,
} from "@remix-run/server-runtime";
import {
Fragment,
Expand Down Expand Up @@ -83,9 +84,9 @@ export const action = async ({ request }: ActionFunctionArgs) => {
},
});

return {
return json({
courseId,
};
});
};

export const loader = async ({ request, params }: LoaderFunctionArgs) => {
Expand Down Expand Up @@ -120,7 +121,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
textGroupsCount,
} = await getCurationState(courseId, page);

return {
return json({
course,
page,
seenTexts,
Expand All @@ -147,7 +148,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
},
})
.then((figures) => figures.map((f) => f.key)),
};
});
};

export default function CuratePage() {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/dict.$figureKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
links as kvgLinks,
SingleFigureDictionaryEntry,
} from "~/features/dictionary/SingleFigureDictionaryEntry";
import css from "~/features/dictionary/styles.css?url";
import css from "~/features/dictionary/styles.css";
import { getLatestFigureId } from "~/models/figure";

type LoaderData =
Expand Down
2 changes: 1 addition & 1 deletion app/routes/dict.middle-chinese-pronunciation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Fragment,
} from "react";

import css from "app/features/dictionary/middle-chinese.css?url";
import css from "app/features/dictionary/middle-chinese.css";
import { MiddleChineseLink } from "~/components/AppLink";
import DictionaryLayout from "~/components/DictionaryLayout";
import { useTocHighlighting } from "~/components/useTocHighlighting";
Expand Down
2 changes: 1 addition & 1 deletion app/routes/dict.middle-chinese.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "~/components/AppLink";
import DictionaryLayout from "~/components/DictionaryLayout";
import { useTocHighlighting } from "~/components/useTocHighlighting";
import css from "~/features/dictionary/middle-chinese.css?url";
import css from "~/features/dictionary/middle-chinese.css";
import { G } from "~/features/dictionary/QysHints";
import { NavLi } from "~/features/qysInfo/NavLi";
import screenshot1 from "~/images/mc-screenshot-1.png";
Expand Down
Loading

0 comments on commit 6188e5e

Please sign in to comment.