Skip to content

Commit 14e5400

Browse files
committed
AGPLv3 it
1 parent 6289490 commit 14e5400

11 files changed

+806
-1
lines changed

COPYING

+661
Large diffs are not rendered by default.

chroot

config.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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
import { exists } from "./filesystem.ts";
218
import { AuthCodeConfig, AuthTokenConfig } from "./oauth.ts";
319

deps.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
319
import { ROOT, exists } from "./filesystem.ts";
420

521
Deno.chdir(dirname(Deno.mainModule));

filesystem.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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
export const ROOT = "vscode";
218

319
export async function exists(filename: string): Promise<boolean> {

main.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
319
import { deferred } from "https://deno.land/[email protected]/async/mod.ts";
420
import { decode, encode } from "https://deno.land/[email protected]/encoding/base64.ts";
521
import { Status, serve } from "https://deno.land/[email protected]/http/mod.ts";

mutex.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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
import { Deferred, deferred } from "https://deno.land/[email protected]/async/mod.ts";
218

319
export function mutex<T>(): Mutex<T> {

oauth.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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

openid.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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
import { decode } from "https://deno.land/[email protected]/encoding/base64.ts";
218

319
export function decodeId(id: string): Identification {

plugins/openvscode-drive

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
319
readonly DISPLAY_MODE="800x600"
420
readonly X11_PORT="5900"
521
readonly VNC_PORT="6080"

refresh_tokens.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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
import { exists } from "./filesystem.ts";
218
import { mutex } from "./mutex.ts";
319

0 commit comments

Comments
 (0)