File tree 11 files changed +806
-1
lines changed
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
+
1
17
import { exists } from "./filesystem.ts" ;
2
18
import { AuthCodeConfig , AuthTokenConfig } from "./oauth.ts" ;
3
19
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env -S deno run --allow-net --allow-read --allow-write --allow-run --check
2
2
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
+
3
19
import { ROOT , exists } from "./filesystem.ts" ;
4
20
5
21
Deno . 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
+
1
17
export const ROOT = "vscode" ;
2
18
3
19
export async function exists ( filename : string ) : Promise < boolean > {
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env -S deno run --import-map vendor/import_map.json --allow-net --allow-read=. --allow-write=refresh_tokens.json --allow-run --check
2
2
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
+
3
19
import { deferred } from "https://deno.land/[email protected] /async/mod.ts" ;
4
20
import { decode , encode } from "https://deno.land/[email protected] /encoding/base64.ts" ;
5
21
import { 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
+
1
17
import { Deferred , deferred } from "https://deno.land/[email protected] /async/mod.ts" ;
2
18
3
19
export 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
+
1
17
// OAuth documentation: https://developers.google.com/identity/protocols/oauth2/web-server
2
18
// OpenID documentation: https://developers.google.com/identity/protocols/oauth2/openid-connect
3
19
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
+
1
17
import { decode } from "https://deno.land/[email protected] /encoding/base64.ts" ;
2
18
3
19
export function decodeId ( id : string ) : Identification {
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
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
+
3
19
readonly DISPLAY_MODE=" 800x600"
4
20
readonly X11_PORT=" 5900"
5
21
readonly VNC_PORT=" 6080"
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
+
1
17
import { exists } from "./filesystem.ts" ;
2
18
import { mutex } from "./mutex.ts" ;
3
19
You can’t perform that action at this time.
0 commit comments