@kubohiroya/turbowarp-plus-editor-git 0.0.0-stage → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +373 -0
- package/README.ja.md +121 -0
- package/README.md +43 -2
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/dist/THIRD_PARTY_NOTICES.md +1186 -0
- package/dist/block-diff-location.d.ts +22 -0
- package/dist/block-diff-preview.d.ts +33 -0
- package/dist/browser.d.ts +4 -0
- package/dist/connection-settings.d.ts +35 -0
- package/dist/file-diff-view.d.ts +18 -0
- package/dist/filesystem.d.ts +89 -0
- package/dist/github-pull-requests.d.ts +38 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +3563 -0
- package/dist/messages.d.ts +112 -0
- package/dist/mutation-fs.d.ts +58 -0
- package/dist/objectSpread2-Dkd68nJH.js +101 -0
- package/dist/project-asset-paths-KV715791.js +761 -0
- package/dist/project-asset-paths.d.ts +12 -0
- package/dist/project-assets.d.ts +19 -0
- package/dist/project-source-diff.d.ts +26 -0
- package/dist/project-source-diff.js +172 -0
- package/dist/project-source-patch.d.ts +39 -0
- package/dist/project-source-review-model.d.ts +23 -0
- package/dist/project-source-review.d.ts +38 -0
- package/dist/pull-request-panel.d.ts +8 -0
- package/dist/remote-operations.d.ts +5 -0
- package/dist/repository-BQkADJmK.js +17280 -0
- package/dist/repository.d.ts +71 -0
- package/dist/repository.js +1 -0
- package/dist/scratch-block-diff-renderer-xS8OYsRl.js +1830 -0
- package/dist/scratch-block-diff-renderer.d.ts +128 -0
- package/dist/smart-http-BmHEkE7K.js +303 -0
- package/dist/smart-http.d.ts +60 -0
- package/dist/smart-http.js +1 -0
- package/dist/style.css +138 -0
- package/package.json +65 -4
- package/src/block-diff-location.ts +63 -0
- package/src/block-diff-preview.tsx +117 -0
- package/src/browser.ts +5 -0
- package/src/connection-settings.tsx +103 -0
- package/src/file-diff-view.tsx +44 -0
- package/src/filesystem.ts +125 -0
- package/src/github-pull-requests.ts +229 -0
- package/src/index.tsx +352 -0
- package/src/messages.ts +64 -0
- package/src/mutation-fs.ts +204 -0
- package/src/project-asset-paths.ts +33 -0
- package/src/project-assets.ts +66 -0
- package/src/project-source-diff.css +108 -0
- package/src/project-source-diff.tsx +139 -0
- package/src/project-source-patch.ts +126 -0
- package/src/project-source-review-model.ts +116 -0
- package/src/project-source-review.tsx +250 -0
- package/src/pull-request-panel.tsx +134 -0
- package/src/remote-operations.ts +90 -0
- package/src/repository.ts +364 -0
- package/src/scratch-block-diff-renderer.ts +331 -0
- package/src/smart-http.ts +190 -0
- package/src/style.css +29 -0
- package/src/styles.d.ts +1 -0
- package/tsconfig.json +18 -0
- package/vite.config.ts +26 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
en: {
|
|
3
|
+
pullRequests: string;
|
|
4
|
+
localChanges: string;
|
|
5
|
+
title: string;
|
|
6
|
+
menu: string;
|
|
7
|
+
close: string;
|
|
8
|
+
choose: string;
|
|
9
|
+
refresh: string;
|
|
10
|
+
empty: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
project: string;
|
|
13
|
+
none: string;
|
|
14
|
+
root: string;
|
|
15
|
+
open: string;
|
|
16
|
+
reload: string;
|
|
17
|
+
up: string;
|
|
18
|
+
browse: string;
|
|
19
|
+
replace: string;
|
|
20
|
+
dirty: string;
|
|
21
|
+
saved: string;
|
|
22
|
+
staged: string;
|
|
23
|
+
unstaged: string;
|
|
24
|
+
untracked: string;
|
|
25
|
+
commit: string;
|
|
26
|
+
history: string;
|
|
27
|
+
worktree: string;
|
|
28
|
+
clean: string;
|
|
29
|
+
branches: string;
|
|
30
|
+
unborn: string;
|
|
31
|
+
detached: string;
|
|
32
|
+
select: string;
|
|
33
|
+
binary: string;
|
|
34
|
+
large: string;
|
|
35
|
+
bytes: string;
|
|
36
|
+
mode: string;
|
|
37
|
+
permissions: string;
|
|
38
|
+
unchanged: string;
|
|
39
|
+
loading: string;
|
|
40
|
+
invalid: string;
|
|
41
|
+
changed: string;
|
|
42
|
+
outdated: string;
|
|
43
|
+
unsupported: string;
|
|
44
|
+
pullUnsafe: string;
|
|
45
|
+
diverged: string;
|
|
46
|
+
session: string;
|
|
47
|
+
pushUnknown: string;
|
|
48
|
+
pushRefresh: string;
|
|
49
|
+
rollbackFailed: string;
|
|
50
|
+
remoteFailed: string;
|
|
51
|
+
remoteDone: string;
|
|
52
|
+
pulledProject: string;
|
|
53
|
+
confirmPush: string;
|
|
54
|
+
failed: string;
|
|
55
|
+
};
|
|
56
|
+
ja: {
|
|
57
|
+
pullRequests: string;
|
|
58
|
+
localChanges: string;
|
|
59
|
+
title: string;
|
|
60
|
+
menu: string;
|
|
61
|
+
close: string;
|
|
62
|
+
choose: string;
|
|
63
|
+
refresh: string;
|
|
64
|
+
empty: string;
|
|
65
|
+
repository: string;
|
|
66
|
+
project: string;
|
|
67
|
+
none: string;
|
|
68
|
+
root: string;
|
|
69
|
+
open: string;
|
|
70
|
+
reload: string;
|
|
71
|
+
up: string;
|
|
72
|
+
browse: string;
|
|
73
|
+
replace: string;
|
|
74
|
+
dirty: string;
|
|
75
|
+
saved: string;
|
|
76
|
+
staged: string;
|
|
77
|
+
unstaged: string;
|
|
78
|
+
untracked: string;
|
|
79
|
+
commit: string;
|
|
80
|
+
history: string;
|
|
81
|
+
worktree: string;
|
|
82
|
+
clean: string;
|
|
83
|
+
branches: string;
|
|
84
|
+
unborn: string;
|
|
85
|
+
detached: string;
|
|
86
|
+
select: string;
|
|
87
|
+
binary: string;
|
|
88
|
+
large: string;
|
|
89
|
+
bytes: string;
|
|
90
|
+
mode: string;
|
|
91
|
+
permissions: string;
|
|
92
|
+
unchanged: string;
|
|
93
|
+
loading: string;
|
|
94
|
+
invalid: string;
|
|
95
|
+
changed: string;
|
|
96
|
+
outdated: string;
|
|
97
|
+
unsupported: string;
|
|
98
|
+
pullUnsafe: string;
|
|
99
|
+
diverged: string;
|
|
100
|
+
session: string;
|
|
101
|
+
pushUnknown: string;
|
|
102
|
+
pushRefresh: string;
|
|
103
|
+
rollbackFailed: string;
|
|
104
|
+
remoteFailed: string;
|
|
105
|
+
remoteDone: string;
|
|
106
|
+
pulledProject: string;
|
|
107
|
+
confirmPush: string;
|
|
108
|
+
failed: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export type Labels = typeof messages.en;
|
|
112
|
+
export declare const labelsFor: (locale: string) => Labels;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare function createMutationFs(root: FileSystemDirectoryHandle, worktree: boolean): {
|
|
2
|
+
fs: {
|
|
3
|
+
promises: {
|
|
4
|
+
readFile(raw: string, options?: string | {
|
|
5
|
+
encoding?: string;
|
|
6
|
+
}): Promise<string | Uint8Array<ArrayBuffer>>;
|
|
7
|
+
writeFile(raw: string, bytes: string | Uint8Array, options?: {
|
|
8
|
+
mode?: number;
|
|
9
|
+
}): Promise<undefined>;
|
|
10
|
+
mkdir(raw: string): Promise<undefined>;
|
|
11
|
+
unlink: (path: string) => Promise<undefined>;
|
|
12
|
+
rmdir: (path: string) => Promise<undefined>;
|
|
13
|
+
readdir: (raw: string) => Promise<string[]>;
|
|
14
|
+
stat: (raw: string) => Promise<{
|
|
15
|
+
isFile: () => boolean;
|
|
16
|
+
isDirectory: () => boolean;
|
|
17
|
+
isSymbolicLink: () => boolean;
|
|
18
|
+
size: number;
|
|
19
|
+
mode: number;
|
|
20
|
+
mtimeMs: number;
|
|
21
|
+
ctimeMs: number;
|
|
22
|
+
atimeMs: number;
|
|
23
|
+
birthtimeMs: number;
|
|
24
|
+
mtime: Date;
|
|
25
|
+
ctime: Date;
|
|
26
|
+
atime: Date;
|
|
27
|
+
birthtime: Date;
|
|
28
|
+
dev: number;
|
|
29
|
+
ino: number;
|
|
30
|
+
uid: number;
|
|
31
|
+
gid: number;
|
|
32
|
+
}>;
|
|
33
|
+
lstat: (raw: string) => Promise<{
|
|
34
|
+
isFile: () => boolean;
|
|
35
|
+
isDirectory: () => boolean;
|
|
36
|
+
isSymbolicLink: () => boolean;
|
|
37
|
+
size: number;
|
|
38
|
+
mode: number;
|
|
39
|
+
mtimeMs: number;
|
|
40
|
+
ctimeMs: number;
|
|
41
|
+
atimeMs: number;
|
|
42
|
+
birthtimeMs: number;
|
|
43
|
+
mtime: Date;
|
|
44
|
+
ctime: Date;
|
|
45
|
+
atime: Date;
|
|
46
|
+
birthtime: Date;
|
|
47
|
+
dev: number;
|
|
48
|
+
ino: number;
|
|
49
|
+
uid: number;
|
|
50
|
+
gid: number;
|
|
51
|
+
}>;
|
|
52
|
+
readlink: () => Promise<never>;
|
|
53
|
+
symlink: (path: string) => Promise<never>;
|
|
54
|
+
chmod: (path: string) => Promise<never>;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
commit(guard: () => void): Promise<void>;
|
|
58
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esmMin = (fn, res, err) => () => {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = fn(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
32
|
+
function _typeof(o) {
|
|
33
|
+
"@babel/helpers - typeof";
|
|
34
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
35
|
+
return typeof o;
|
|
36
|
+
} : function(o) {
|
|
37
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
38
|
+
}, _typeof(o);
|
|
39
|
+
}
|
|
40
|
+
var init_typeof = __esmMin((() => {}));
|
|
41
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
42
|
+
function toPrimitive(t, r) {
|
|
43
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
44
|
+
var e = t[Symbol.toPrimitive];
|
|
45
|
+
if (void 0 !== e) {
|
|
46
|
+
var i = e.call(t, r || "default");
|
|
47
|
+
if ("object" != _typeof(i)) return i;
|
|
48
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
49
|
+
}
|
|
50
|
+
return ("string" === r ? String : Number)(t);
|
|
51
|
+
}
|
|
52
|
+
var init_toPrimitive = __esmMin((() => {
|
|
53
|
+
init_typeof();
|
|
54
|
+
}));
|
|
55
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
56
|
+
function toPropertyKey(t) {
|
|
57
|
+
var i = toPrimitive(t, "string");
|
|
58
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
59
|
+
}
|
|
60
|
+
var init_toPropertyKey = __esmMin((() => {
|
|
61
|
+
init_typeof();
|
|
62
|
+
init_toPrimitive();
|
|
63
|
+
}));
|
|
64
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
configurable: !0,
|
|
70
|
+
writable: !0
|
|
71
|
+
}) : e[r] = t, e;
|
|
72
|
+
}
|
|
73
|
+
var init_defineProperty = __esmMin((() => {
|
|
74
|
+
init_toPropertyKey();
|
|
75
|
+
}));
|
|
76
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/objectSpread2.js
|
|
77
|
+
function ownKeys(e, r) {
|
|
78
|
+
var t = Object.keys(e);
|
|
79
|
+
if (Object.getOwnPropertySymbols) {
|
|
80
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
81
|
+
r && (o = o.filter(function(r) {
|
|
82
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
83
|
+
})), t.push.apply(t, o);
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function _objectSpread2(e) {
|
|
88
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
89
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
90
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
91
|
+
_defineProperty(e, r, t[r]);
|
|
92
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
93
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return e;
|
|
97
|
+
}
|
|
98
|
+
var init_objectSpread2 = __esmMin((() => {
|
|
99
|
+
init_defineProperty();
|
|
100
|
+
}));
|
|
101
|
+
export { __toESM as i, init_objectSpread2 as n, __commonJSMin as r, _objectSpread2 as t };
|