Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed May 31, 2024
1 parent b7fd2ca commit 0fa8705
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 304 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ COPY ./LICENSE ./

ENV LD_LIBRARY_PATH=/app/lib
ENV PATH=/app/bin:$PATH
ENV DENO_DEPLOYMENT_ID=${DENO_DEPLOYMENT_ID}
ENV DOCKER=true
ENV DB_USE_FFI=true
ENV DENO_SQLITE_PATH=/app/lib/libsqlite3.so

RUN deno task server-build && deno task prebuild && \
deno task cache && rm -rf ~/.cache && \
mkdir -p ./thumbnails && chmod 777 ./thumbnails && \
mkdir -p ./downloads && chmod 777 ./downloads && \
mkdir -p ./data && chmod 777 ./data && chmod 777 /deno-dir
ENV DENO_DEPLOYMENT_ID=${DENO_DEPLOYMENT_ID}
ENV DOCKER=true
ENV DB_USE_FFI=true
ENV DENO_SQLITE_PATH=/app/lib/libsqlite3.so

EXPOSE 8000
ENTRYPOINT ["/tini", "--", "deno", "task", "server"]
Expand Down
2 changes: 1 addition & 1 deletion db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { unescape } from "@std/html";
import { join, resolve } from "@std/path";
import { SqliteError } from "sqlite/mod.ts";
import { SqliteError as Sqlite3Error } from "sqlite3/mod.ts";
import { SqliteError as Sqlite3Error } from "sqlite3";
import { Status } from "sqlite/src/constants.ts";
import { parse_bool, sleep, sure_dir_sync, try_remove_sync } from "./utils.ts";
import { Task, TaskType } from "./task.ts";
Expand Down
18 changes: 6 additions & 12 deletions import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"@std/jsonc": "jsr:/@std/[email protected]",
"@std/path": "jsr:/@std/[email protected]",
"@std/semver": "jsr:/@std/[email protected]",
"deno_dom/": "https://deno.land/x/deno_dom@v0.1.43/",
"deno_dom/": "jsr:/@b-fuze/deno-dom@0.1.47/",
"sqlite/": "https://deno.land/x/[email protected]/",
"zipjs/": "https://deno.land/x/[email protected].33/",
"zipjs/": "https://deno.land/x/[email protected].45/",
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
Expand All @@ -20,23 +20,17 @@
"twind": "https://esm.sh/[email protected]",
"twind/": "https://esm.sh/[email protected]/",
"$std/": "https://deno.land/[email protected]/",
"preact-material-components/": "https://esm.sh/v122/[email protected]/deno/",
"accept-language-parser/": "https://esm.sh/[email protected]/",
"sortable": "https://esm.sh/gh/SortableJS/[email protected]/Sortable.min.js",
"esbuild/": "https://deno.land/x/[email protected]/",
"esbuild/": "https://deno.land/x/[email protected]/",
"lifegpc-md5": "https://esm.sh/[email protected]",
"meilisearch": "https://esm.sh/meilisearch@0.37.0",
"meilisearch": "https://esm.sh/meilisearch@0.40.0",
"lodash/": "https://esm.sh/[email protected]/",
"mime": "https://esm.sh/[email protected].1",
"mime": "https://esm.sh/[email protected].3",
"pbkdf2-hmac": "https://esm.sh/[email protected]",
"pbkdf2-hmac/": "https://esm.sh/[email protected]/",
"randomstring": "https://esm.sh/[email protected]",
"@material/web/": "https://unpkg.lifegpc.workers.dev/@material/[email protected]/",
"@lit-labs/react/": "https://esm.sh/@lit-labs/[email protected]/",
"bootstrap/": "https://esm.sh/[email protected]/",
"filesize": "https://esm.sh/[email protected]",
"pwn/": "https://deno.land/x/[email protected]/",
"sqlite3/": "https://deno.land/x/sqlite3@0.10.0/",
"sqlite3": "jsr:/@db/sqlite@0.11.1",
"async/": "https://deno.land/x/[email protected]/"
}
}
2 changes: 1 addition & 1 deletion page/GalleryPage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser, Element } from "deno_dom/deno-dom-wasm-noinit.ts";
import { DOMParser, Element } from "deno_dom/wasm-noinit";
import { extname } from "@std/path";
import { Client } from "../client.ts";
import type { EhFile, PMeta } from "../db.ts";
Expand Down
2 changes: 1 addition & 1 deletion page/HomeOverviewPage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser, Element } from "deno_dom/deno-dom-wasm-noinit.ts";
import { DOMParser, Element } from "deno_dom/wasm-noinit";
import { initDOMParser } from "../utils.ts";

export class HomeOverviewPage {
Expand Down
2 changes: 1 addition & 1 deletion page/MPVPage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser } from "deno_dom/deno-dom-wasm-noinit.ts";
import { DOMParser } from "deno_dom/wasm-noinit";
import { extname } from "@std/path";
import { Client } from "../client.ts";
import { initDOMParser } from "../utils.ts";
Expand Down
2 changes: 1 addition & 1 deletion page/SinglePage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DOMParser } from "deno_dom/deno-dom-wasm-noinit.ts";
import { DOMParser } from "deno_dom/wasm-noinit";
import { Client } from "../client.ts";
import { initDOMParser } from "../utils.ts";

Expand Down
4 changes: 2 additions & 2 deletions scripts/download_ffi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { dirname } from "@std/path";
import { sure_dir } from "../utils.ts";

const map = JSON.parse(await Deno.readTextFile("./import_map.json")).imports;
const re = /x\/sqlite3@([0-9\.]+)/;
const sqlite3_version = map["sqlite3/"].match(re)[1];
const re = /@db\/sqlite@([0-9\.]+)/;
const sqlite3_version = map["sqlite3"].match(re)[1];

async function fetch_file(u: string | URL, p: string) {
await sure_dir(dirname(p));
Expand Down
24 changes: 0 additions & 24 deletions server/auth.ts

This file was deleted.

3 changes: 0 additions & 3 deletions server/bs5.ts

This file was deleted.

50 changes: 0 additions & 50 deletions server/cfg.ts

This file was deleted.

12 changes: 0 additions & 12 deletions server/dark.ts

This file was deleted.

58 changes: 0 additions & 58 deletions server/dmodule.ts

This file was deleted.

94 changes: 0 additions & 94 deletions server/md3.ts

This file was deleted.

38 changes: 0 additions & 38 deletions server/state.ts

This file was deleted.

2 changes: 1 addition & 1 deletion utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exists, existsSync } from "@std/fs/exists";
import { extname } from "@std/path";
import { initParser } from "deno_dom/deno-dom-wasm-noinit.ts";
import { initParser } from "deno_dom/wasm-noinit";
import { configure } from "zipjs/index.js";
import { MD5 } from "lifegpc-md5";

Expand Down
Loading

0 comments on commit 0fa8705

Please sign in to comment.