File tree Expand file tree Collapse file tree 11 files changed +806
-1
lines changed Expand file tree Collapse file tree 11 files changed +806
-1
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2022, Sol Boucher
2+ //
3+ // This file is part of OpenVSCode GDrive.
4+ //
5+ // This program is free software: you can redistribute it and/or modify
6+ // it under the terms of the GNU Affero General Public License as
7+ // published by the Free Software Foundation, version 3.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117import { exists } from "./filesystem.ts" ;
218import { AuthCodeConfig , AuthTokenConfig } from "./oauth.ts" ;
319
Original file line number Diff line number Diff line change 11#!/usr/bin/env -S deno run --allow-net --allow-read --allow-write --allow-run --check
22
3+ // Copyright (C) 2022, Sol Boucher
4+ //
5+ // This file is part of OpenVSCode GDrive.
6+ //
7+ // This program is free software: you can redistribute it and/or modify
8+ // it under the terms of the GNU Affero General Public License as
9+ // published by the Free Software Foundation, version 3.
10+ //
11+ // This program is distributed in the hope that it will be useful,
12+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ // GNU Affero General Public License for more details.
15+ //
16+ // You should have received a copy of the GNU Affero General Public License
17+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
319import { ROOT , exists } from "./filesystem.ts" ;
420
521Deno . chdir ( dirname ( Deno . mainModule ) ) ;
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2022, Sol Boucher
2+ //
3+ // This file is part of OpenVSCode GDrive.
4+ //
5+ // This program is free software: you can redistribute it and/or modify
6+ // it under the terms of the GNU Affero General Public License as
7+ // published by the Free Software Foundation, version 3.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117export const ROOT = "vscode" ;
218
319export async function exists ( filename : string ) : Promise < boolean > {
Original file line number Diff line number Diff line change 11#!/usr/bin/env -S deno run --import-map vendor/import_map.json --allow-net --allow-read=. --allow-write=refresh_tokens.json --allow-run --check
22
3+ // Copyright (C) 2022, Sol Boucher
4+ //
5+ // This file is part of OpenVSCode GDrive.
6+ //
7+ // This program is free software: you can redistribute it and/or modify
8+ // it under the terms of the GNU Affero General Public License as
9+ // published by the Free Software Foundation, version 3.
10+ //
11+ // This program is distributed in the hope that it will be useful,
12+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ // GNU Affero General Public License for more details.
15+ //
16+ // You should have received a copy of the GNU Affero General Public License
17+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
319import { deferred } from "https://deno.land/[email protected] /async/mod.ts" ; 420import { decode , encode } from "https://deno.land/[email protected] /encoding/base64.ts" ; 521import { Status , serve } from "https://deno.land/[email protected] /http/mod.ts" ;
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2022, Sol Boucher
2+ //
3+ // This file is part of OpenVSCode GDrive.
4+ //
5+ // This program is free software: you can redistribute it and/or modify
6+ // it under the terms of the GNU Affero General Public License as
7+ // published by the Free Software Foundation, version 3.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117import { Deferred , deferred } from "https://deno.land/[email protected] /async/mod.ts" ; 218
319export function mutex < T > ( ) : Mutex < T > {
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2022, Sol Boucher
2+ //
3+ // This file is part of OpenVSCode GDrive.
4+ //
5+ // This program is free software: you can redistribute it and/or modify
6+ // it under the terms of the GNU Affero General Public License as
7+ // published by the Free Software Foundation, version 3.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117// OAuth documentation: https://developers.google.com/identity/protocols/oauth2/web-server
218// OpenID documentation: https://developers.google.com/identity/protocols/oauth2/openid-connect
319
Original file line number Diff line number Diff line change 1+ // Copyright (C) 2022, Sol Boucher
2+ //
3+ // This file is part of OpenVSCode GDrive.
4+ //
5+ // This program is free software: you can redistribute it and/or modify
6+ // it under the terms of the GNU Affero General Public License as
7+ // published by the Free Software Foundation, version 3.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117import { decode } from "https://deno.land/[email protected] /encoding/base64.ts" ; 218
319export function decodeId ( id : string ) : Identification {
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # Copyright (C) 2022, Sol Boucher
4+ #
5+ # This file is part of OpenVSCode GDrive.
6+ #
7+ # This program is free software: you can redistribute it and/or modify
8+ # it under the terms of the GNU Affero General Public License as
9+ # published by the Free Software Foundation, version 3.
10+ #
11+ # This program is distributed in the hope that it will be useful,
12+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ # GNU Affero General Public License for more details.
15+ #
16+ # You should have received a copy of the GNU Affero General Public License
17+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
319readonly DISPLAY_MODE=" 800x600"
420readonly X11_PORT=" 5900"
521readonly VNC_PORT=" 6080"
You can’t perform that action at this time.
0 commit comments