diff --git a/Cargo.toml b/Cargo.toml index c74d6046..ff4820b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ members = [ "aries", "saturn", "taurus", - "lunar/src-tauri", "atlas", "orion", "panel", diff --git a/lunar/.env.local b/archived/lunar/.env.local similarity index 100% rename from lunar/.env.local rename to archived/lunar/.env.local diff --git a/lunar/.eslintrc.json b/archived/lunar/.eslintrc.json similarity index 100% rename from lunar/.eslintrc.json rename to archived/lunar/.eslintrc.json diff --git a/lunar/.gitignore b/archived/lunar/.gitignore similarity index 100% rename from lunar/.gitignore rename to archived/lunar/.gitignore diff --git a/lunar/.prettierrc b/archived/lunar/.prettierrc similarity index 100% rename from lunar/.prettierrc rename to archived/lunar/.prettierrc diff --git a/lunar/README.md b/archived/lunar/README.md similarity index 100% rename from lunar/README.md rename to archived/lunar/README.md diff --git a/lunar/next.config.js b/archived/lunar/next.config.js similarity index 100% rename from lunar/next.config.js rename to archived/lunar/next.config.js diff --git a/lunar/package.json b/archived/lunar/package.json similarity index 100% rename from lunar/package.json rename to archived/lunar/package.json diff --git a/lunar/postcss.config.js b/archived/lunar/postcss.config.js similarity index 100% rename from lunar/postcss.config.js rename to archived/lunar/postcss.config.js diff --git a/lunar/public/images/mega.png b/archived/lunar/public/images/mega.png similarity index 100% rename from lunar/public/images/mega.png rename to archived/lunar/public/images/mega.png diff --git a/lunar/public/images/megaLogo.png b/archived/lunar/public/images/megaLogo.png similarity index 100% rename from lunar/public/images/megaLogo.png rename to archived/lunar/public/images/megaLogo.png diff --git a/lunar/public/images/megaTitle.png b/archived/lunar/public/images/megaTitle.png similarity index 100% rename from lunar/public/images/megaTitle.png rename to archived/lunar/public/images/megaTitle.png diff --git a/lunar/src-tauri/.gitignore b/archived/lunar/src-tauri/.gitignore similarity index 100% rename from lunar/src-tauri/.gitignore rename to archived/lunar/src-tauri/.gitignore diff --git a/lunar/src-tauri/Cargo.toml b/archived/lunar/src-tauri/Cargo.toml similarity index 100% rename from lunar/src-tauri/Cargo.toml rename to archived/lunar/src-tauri/Cargo.toml diff --git a/lunar/src-tauri/build.rs b/archived/lunar/src-tauri/build.rs similarity index 100% rename from lunar/src-tauri/build.rs rename to archived/lunar/src-tauri/build.rs diff --git a/lunar/src-tauri/capabilities/migrated.json b/archived/lunar/src-tauri/capabilities/migrated.json similarity index 100% rename from lunar/src-tauri/capabilities/migrated.json rename to archived/lunar/src-tauri/capabilities/migrated.json diff --git a/lunar/src-tauri/gen/schemas/acl-manifests.json b/archived/lunar/src-tauri/gen/schemas/acl-manifests.json similarity index 100% rename from lunar/src-tauri/gen/schemas/acl-manifests.json rename to archived/lunar/src-tauri/gen/schemas/acl-manifests.json diff --git a/lunar/src-tauri/gen/schemas/capabilities.json b/archived/lunar/src-tauri/gen/schemas/capabilities.json similarity index 100% rename from lunar/src-tauri/gen/schemas/capabilities.json rename to archived/lunar/src-tauri/gen/schemas/capabilities.json diff --git a/lunar/src-tauri/gen/schemas/desktop-schema.json b/archived/lunar/src-tauri/gen/schemas/desktop-schema.json similarity index 99% rename from lunar/src-tauri/gen/schemas/desktop-schema.json rename to archived/lunar/src-tauri/gen/schemas/desktop-schema.json index 19a86b0e..6d0ac276 100644 --- a/lunar/src-tauri/gen/schemas/desktop-schema.json +++ b/archived/lunar/src-tauri/gen/schemas/desktop-schema.json @@ -37,7 +37,7 @@ ], "definitions": { "Capability": { - "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```", + "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```", "type": "object", "required": [ "identifier", @@ -84,7 +84,7 @@ } }, "permissions": { - "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ```", + "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```", "type": "array", "items": { "$ref": "#/definitions/PermissionEntry" diff --git a/lunar/src-tauri/gen/schemas/linux-schema.json b/archived/lunar/src-tauri/gen/schemas/linux-schema.json similarity index 100% rename from lunar/src-tauri/gen/schemas/linux-schema.json rename to archived/lunar/src-tauri/gen/schemas/linux-schema.json diff --git a/lunar/src-tauri/gen/schemas/macOS-schema.json b/archived/lunar/src-tauri/gen/schemas/macOS-schema.json similarity index 99% rename from lunar/src-tauri/gen/schemas/macOS-schema.json rename to archived/lunar/src-tauri/gen/schemas/macOS-schema.json index d1de5ba8..6d0ac276 100644 --- a/lunar/src-tauri/gen/schemas/macOS-schema.json +++ b/archived/lunar/src-tauri/gen/schemas/macOS-schema.json @@ -37,7 +37,7 @@ ], "definitions": { "Capability": { - "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```", + "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```", "type": "object", "required": [ "identifier", @@ -84,7 +84,7 @@ } }, "permissions": { - "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ```", + "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```", "type": "array", "items": { "$ref": "#/definitions/PermissionEntry" @@ -1714,6 +1714,14 @@ "name" ], "properties": { + "name": { + "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", + "type": "string" + }, + "cmd": { + "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", + "type": "string" + }, "args": { "description": "The allowed arguments for the command execution.", "allOf": [ @@ -1721,14 +1729,6 @@ "$ref": "#/definitions/ShellScopeEntryAllowedArgs" } ] - }, - "cmd": { - "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", - "type": "string" - }, - "name": { - "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", - "type": "string" } }, "additionalProperties": false @@ -1740,6 +1740,10 @@ "sidecar" ], "properties": { + "name": { + "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", + "type": "string" + }, "args": { "description": "The allowed arguments for the command execution.", "allOf": [ @@ -1748,10 +1752,6 @@ } ] }, - "name": { - "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", - "type": "string" - }, "sidecar": { "description": "If this command is a sidecar command.", "type": "boolean" @@ -1774,6 +1774,14 @@ "name" ], "properties": { + "name": { + "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", + "type": "string" + }, + "cmd": { + "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", + "type": "string" + }, "args": { "description": "The allowed arguments for the command execution.", "allOf": [ @@ -1781,14 +1789,6 @@ "$ref": "#/definitions/ShellScopeEntryAllowedArgs" } ] - }, - "cmd": { - "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.", - "type": "string" - }, - "name": { - "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", - "type": "string" } }, "additionalProperties": false @@ -1800,6 +1800,10 @@ "sidecar" ], "properties": { + "name": { + "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", + "type": "string" + }, "args": { "description": "The allowed arguments for the command execution.", "allOf": [ @@ -1808,10 +1812,6 @@ } ] }, - "name": { - "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.", - "type": "string" - }, "sidecar": { "description": "If this command is a sidecar command.", "type": "boolean" @@ -4938,6 +4938,22 @@ } ] }, + "ShellScopeEntryAllowedArgs": { + "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.", + "anyOf": [ + { + "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.", + "type": "boolean" + }, + { + "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.", + "type": "array", + "items": { + "$ref": "#/definitions/ShellScopeEntryAllowedArg" + } + } + ] + }, "ShellScopeEntryAllowedArg": { "description": "A command argument allowed to be executed by the webview API.", "anyOf": [ @@ -4952,35 +4968,19 @@ "validator" ], "properties": { + "validator": { + "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: ", + "type": "string" + }, "raw": { "description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.", "default": false, "type": "boolean" - }, - "validator": { - "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: ", - "type": "string" } }, "additionalProperties": false } ] - }, - "ShellScopeEntryAllowedArgs": { - "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.", - "anyOf": [ - { - "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.", - "type": "boolean" - }, - { - "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.", - "type": "array", - "items": { - "$ref": "#/definitions/ShellScopeEntryAllowedArg" - } - } - ] } } } \ No newline at end of file diff --git a/lunar/src-tauri/icons/128x128.png b/archived/lunar/src-tauri/icons/128x128.png similarity index 100% rename from lunar/src-tauri/icons/128x128.png rename to archived/lunar/src-tauri/icons/128x128.png diff --git a/lunar/src-tauri/icons/128x128@2x.png b/archived/lunar/src-tauri/icons/128x128@2x.png similarity index 100% rename from lunar/src-tauri/icons/128x128@2x.png rename to archived/lunar/src-tauri/icons/128x128@2x.png diff --git a/lunar/src-tauri/icons/32x32.png b/archived/lunar/src-tauri/icons/32x32.png similarity index 100% rename from lunar/src-tauri/icons/32x32.png rename to archived/lunar/src-tauri/icons/32x32.png diff --git a/lunar/src-tauri/icons/Square107x107Logo.png b/archived/lunar/src-tauri/icons/Square107x107Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square107x107Logo.png rename to archived/lunar/src-tauri/icons/Square107x107Logo.png diff --git a/lunar/src-tauri/icons/Square142x142Logo.png b/archived/lunar/src-tauri/icons/Square142x142Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square142x142Logo.png rename to archived/lunar/src-tauri/icons/Square142x142Logo.png diff --git a/lunar/src-tauri/icons/Square150x150Logo.png b/archived/lunar/src-tauri/icons/Square150x150Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square150x150Logo.png rename to archived/lunar/src-tauri/icons/Square150x150Logo.png diff --git a/lunar/src-tauri/icons/Square284x284Logo.png b/archived/lunar/src-tauri/icons/Square284x284Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square284x284Logo.png rename to archived/lunar/src-tauri/icons/Square284x284Logo.png diff --git a/lunar/src-tauri/icons/Square30x30Logo.png b/archived/lunar/src-tauri/icons/Square30x30Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square30x30Logo.png rename to archived/lunar/src-tauri/icons/Square30x30Logo.png diff --git a/lunar/src-tauri/icons/Square310x310Logo.png b/archived/lunar/src-tauri/icons/Square310x310Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square310x310Logo.png rename to archived/lunar/src-tauri/icons/Square310x310Logo.png diff --git a/lunar/src-tauri/icons/Square44x44Logo.png b/archived/lunar/src-tauri/icons/Square44x44Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square44x44Logo.png rename to archived/lunar/src-tauri/icons/Square44x44Logo.png diff --git a/lunar/src-tauri/icons/Square71x71Logo.png b/archived/lunar/src-tauri/icons/Square71x71Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square71x71Logo.png rename to archived/lunar/src-tauri/icons/Square71x71Logo.png diff --git a/lunar/src-tauri/icons/Square89x89Logo.png b/archived/lunar/src-tauri/icons/Square89x89Logo.png similarity index 100% rename from lunar/src-tauri/icons/Square89x89Logo.png rename to archived/lunar/src-tauri/icons/Square89x89Logo.png diff --git a/lunar/src-tauri/icons/StoreLogo.png b/archived/lunar/src-tauri/icons/StoreLogo.png similarity index 100% rename from lunar/src-tauri/icons/StoreLogo.png rename to archived/lunar/src-tauri/icons/StoreLogo.png diff --git a/lunar/src-tauri/icons/icon.icns b/archived/lunar/src-tauri/icons/icon.icns similarity index 100% rename from lunar/src-tauri/icons/icon.icns rename to archived/lunar/src-tauri/icons/icon.icns diff --git a/lunar/src-tauri/icons/icon.ico b/archived/lunar/src-tauri/icons/icon.ico similarity index 100% rename from lunar/src-tauri/icons/icon.ico rename to archived/lunar/src-tauri/icons/icon.ico diff --git a/lunar/src-tauri/icons/icon.png b/archived/lunar/src-tauri/icons/icon.png similarity index 100% rename from lunar/src-tauri/icons/icon.png rename to archived/lunar/src-tauri/icons/icon.png diff --git a/lunar/src-tauri/src/main.rs b/archived/lunar/src-tauri/src/main.rs similarity index 100% rename from lunar/src-tauri/src/main.rs rename to archived/lunar/src-tauri/src/main.rs diff --git a/lunar/src-tauri/tauri.conf.json b/archived/lunar/src-tauri/tauri.conf.json similarity index 100% rename from lunar/src-tauri/tauri.conf.json rename to archived/lunar/src-tauri/tauri.conf.json diff --git a/lunar/src-tauri/tauri.linux.conf.json b/archived/lunar/src-tauri/tauri.linux.conf.json similarity index 100% rename from lunar/src-tauri/tauri.linux.conf.json rename to archived/lunar/src-tauri/tauri.linux.conf.json diff --git a/lunar/src-tauri/tauri.macos.conf.json b/archived/lunar/src-tauri/tauri.macos.conf.json similarity index 100% rename from lunar/src-tauri/tauri.macos.conf.json rename to archived/lunar/src-tauri/tauri.macos.conf.json diff --git a/lunar/src-tauri/tauri.windows.conf.json b/archived/lunar/src-tauri/tauri.windows.conf.json similarity index 100% rename from lunar/src-tauri/tauri.windows.conf.json rename to archived/lunar/src-tauri/tauri.windows.conf.json diff --git a/lunar/src/app/api/fetcher.ts b/archived/lunar/src/app/api/fetcher.ts similarity index 100% rename from lunar/src/app/api/fetcher.ts rename to archived/lunar/src/app/api/fetcher.ts diff --git a/lunar/src/app/application-layout.tsx b/archived/lunar/src/app/application-layout.tsx similarity index 100% rename from lunar/src/app/application-layout.tsx rename to archived/lunar/src/app/application-layout.tsx diff --git a/lunar/src/app/blob/page.tsx b/archived/lunar/src/app/blob/page.tsx similarity index 100% rename from lunar/src/app/blob/page.tsx rename to archived/lunar/src/app/blob/page.tsx diff --git a/lunar/src/app/layout.tsx b/archived/lunar/src/app/layout.tsx similarity index 100% rename from lunar/src/app/layout.tsx rename to archived/lunar/src/app/layout.tsx diff --git a/lunar/src/app/mr/page.tsx b/archived/lunar/src/app/mr/page.tsx similarity index 100% rename from lunar/src/app/mr/page.tsx rename to archived/lunar/src/app/mr/page.tsx diff --git a/lunar/src/app/page.tsx b/archived/lunar/src/app/page.tsx similarity index 100% rename from lunar/src/app/page.tsx rename to archived/lunar/src/app/page.tsx diff --git a/lunar/src/app/repo/page.tsx b/archived/lunar/src/app/repo/page.tsx similarity index 100% rename from lunar/src/app/repo/page.tsx rename to archived/lunar/src/app/repo/page.tsx diff --git a/lunar/src/app/settings/page.tsx b/archived/lunar/src/app/settings/page.tsx similarity index 100% rename from lunar/src/app/settings/page.tsx rename to archived/lunar/src/app/settings/page.tsx diff --git a/lunar/src/app/tree/page.tsx b/archived/lunar/src/app/tree/page.tsx similarity index 100% rename from lunar/src/app/tree/page.tsx rename to archived/lunar/src/app/tree/page.tsx diff --git a/lunar/src/components/BreadCrumb.module.css b/archived/lunar/src/components/BreadCrumb.module.css similarity index 100% rename from lunar/src/components/BreadCrumb.module.css rename to archived/lunar/src/components/BreadCrumb.module.css diff --git a/lunar/src/components/BreadCrumb.tsx b/archived/lunar/src/components/BreadCrumb.tsx similarity index 100% rename from lunar/src/components/BreadCrumb.tsx rename to archived/lunar/src/components/BreadCrumb.tsx diff --git a/lunar/src/components/CodeContent.module.css b/archived/lunar/src/components/CodeContent.module.css similarity index 100% rename from lunar/src/components/CodeContent.module.css rename to archived/lunar/src/components/CodeContent.module.css diff --git a/lunar/src/components/CodeContent.tsx b/archived/lunar/src/components/CodeContent.tsx similarity index 100% rename from lunar/src/components/CodeContent.tsx rename to archived/lunar/src/components/CodeContent.tsx diff --git a/lunar/src/components/CodeTable.module.css b/archived/lunar/src/components/CodeTable.module.css similarity index 100% rename from lunar/src/components/CodeTable.module.css rename to archived/lunar/src/components/CodeTable.module.css diff --git a/lunar/src/components/CodeTable.tsx b/archived/lunar/src/components/CodeTable.tsx similarity index 100% rename from lunar/src/components/CodeTable.tsx rename to archived/lunar/src/components/CodeTable.tsx diff --git a/lunar/src/components/MergeDetail.tsx b/archived/lunar/src/components/MergeDetail.tsx similarity index 100% rename from lunar/src/components/MergeDetail.tsx rename to archived/lunar/src/components/MergeDetail.tsx diff --git a/lunar/src/components/MergeList.tsx b/archived/lunar/src/components/MergeList.tsx similarity index 100% rename from lunar/src/components/MergeList.tsx rename to archived/lunar/src/components/MergeList.tsx diff --git a/lunar/src/components/RepoList.tsx b/archived/lunar/src/components/RepoList.tsx similarity index 100% rename from lunar/src/components/RepoList.tsx rename to archived/lunar/src/components/RepoList.tsx diff --git a/lunar/src/components/RepoTree.module.css b/archived/lunar/src/components/RepoTree.module.css similarity index 100% rename from lunar/src/components/RepoTree.module.css rename to archived/lunar/src/components/RepoTree.module.css diff --git a/lunar/src/components/RepoTree.tsx b/archived/lunar/src/components/RepoTree.tsx similarity index 100% rename from lunar/src/components/RepoTree.tsx rename to archived/lunar/src/components/RepoTree.tsx diff --git a/lunar/src/components/catalyst/avatar.tsx b/archived/lunar/src/components/catalyst/avatar.tsx similarity index 100% rename from lunar/src/components/catalyst/avatar.tsx rename to archived/lunar/src/components/catalyst/avatar.tsx diff --git a/lunar/src/components/catalyst/button.tsx b/archived/lunar/src/components/catalyst/button.tsx similarity index 100% rename from lunar/src/components/catalyst/button.tsx rename to archived/lunar/src/components/catalyst/button.tsx diff --git a/lunar/src/components/catalyst/divider.tsx b/archived/lunar/src/components/catalyst/divider.tsx similarity index 100% rename from lunar/src/components/catalyst/divider.tsx rename to archived/lunar/src/components/catalyst/divider.tsx diff --git a/lunar/src/components/catalyst/dropdown.tsx b/archived/lunar/src/components/catalyst/dropdown.tsx similarity index 100% rename from lunar/src/components/catalyst/dropdown.tsx rename to archived/lunar/src/components/catalyst/dropdown.tsx diff --git a/lunar/src/components/catalyst/heading.tsx b/archived/lunar/src/components/catalyst/heading.tsx similarity index 100% rename from lunar/src/components/catalyst/heading.tsx rename to archived/lunar/src/components/catalyst/heading.tsx diff --git a/lunar/src/components/catalyst/input.tsx b/archived/lunar/src/components/catalyst/input.tsx similarity index 100% rename from lunar/src/components/catalyst/input.tsx rename to archived/lunar/src/components/catalyst/input.tsx diff --git a/lunar/src/components/catalyst/link.tsx b/archived/lunar/src/components/catalyst/link.tsx similarity index 100% rename from lunar/src/components/catalyst/link.tsx rename to archived/lunar/src/components/catalyst/link.tsx diff --git a/lunar/src/components/catalyst/navbar.tsx b/archived/lunar/src/components/catalyst/navbar.tsx similarity index 100% rename from lunar/src/components/catalyst/navbar.tsx rename to archived/lunar/src/components/catalyst/navbar.tsx diff --git a/lunar/src/components/catalyst/sidebar-layout.tsx b/archived/lunar/src/components/catalyst/sidebar-layout.tsx similarity index 100% rename from lunar/src/components/catalyst/sidebar-layout.tsx rename to archived/lunar/src/components/catalyst/sidebar-layout.tsx diff --git a/lunar/src/components/catalyst/sidebar.tsx b/archived/lunar/src/components/catalyst/sidebar.tsx similarity index 100% rename from lunar/src/components/catalyst/sidebar.tsx rename to archived/lunar/src/components/catalyst/sidebar.tsx diff --git a/lunar/src/components/catalyst/text.tsx b/archived/lunar/src/components/catalyst/text.tsx similarity index 100% rename from lunar/src/components/catalyst/text.tsx rename to archived/lunar/src/components/catalyst/text.tsx diff --git a/lunar/src/styles/globals.css b/archived/lunar/src/styles/globals.css similarity index 100% rename from lunar/src/styles/globals.css rename to archived/lunar/src/styles/globals.css diff --git a/lunar/tailwind.config.js b/archived/lunar/tailwind.config.js similarity index 100% rename from lunar/tailwind.config.js rename to archived/lunar/tailwind.config.js diff --git a/lunar/tsconfig.json b/archived/lunar/tsconfig.json similarity index 100% rename from lunar/tsconfig.json rename to archived/lunar/tsconfig.json diff --git a/aria/components/contexts/theme-provider.tsx b/aria/components/contexts/theme-provider.tsx index b0ff2660..2e0ad9b8 100644 --- a/aria/components/contexts/theme-provider.tsx +++ b/aria/components/contexts/theme-provider.tsx @@ -2,7 +2,8 @@ import * as React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; -import { type ThemeProviderProps } from "next-themes/dist/types"; + +type ThemeProviderProps = React.ComponentProps; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return {children}; diff --git a/aria/contents/docs/getting-started/introduction/index.mdx b/aria/contents/docs/getting-started/introduction/index.mdx index 198ac843..8510b4bf 100644 --- a/aria/contents/docs/getting-started/introduction/index.mdx +++ b/aria/contents/docs/getting-started/introduction/index.mdx @@ -3,14 +3,30 @@ title: Introduction description: Mega is an unofficial open source implementation of Google Piper. It is a monorepo & monolithic codebase management system that supports Git. Mega is designed to manage large-scale codebases, streamline development, and foster collaboration. --- -Welcome to **Mega**! Mega is an unofficial open source implementation of Google Piper. It is a monorepo & monolithic codebase management system that supports Git. Mega is designed to manage large-scale codebases, streamline development, and foster collaboration. +Whether you're dealing with large repository size affecting usability, performance, and management, or complex dependency relationships, multiple teams collaborating in the same repository, or optimizing build and CI/CD processes, Mega offers tools and workflows tailored to streamline your development experience. With Mega, managing monorepo & monolithic repositority becomes more efficient and less time-consuming, enabling you to focus on building great software. + +## Monorepo VS Monolithic + +A Monolithic repository (often abbreviated as Monolithic) refers to the practice of storing all code in a single repository. This could mean the entire codebase for a monolithic application, or even the complete codebase for all projects within a company, including applications, libraries, and tools. The goal of Monolithic repositories is to centralize code management, simplify dependency sharing, and promote consistent practices across projects. + +In contrast, a Monorepo is a structured approach to managing a Monolithic repository. While Monolithic describes the idea of storing all code together, Monorepo emphasizes specific tools, workflows, and best practices for maintaining such repositories. Monorepos often include features like dependency isolation, incremental builds, and advanced versioning systems to address the challenges of scale and complexity in a large Monolithic repository. + +Monorepo and Monolithic both involve managing large codebases and share some common challenges, but they differ in their purpose, scope, and approach. + +| **Aspect** | **Monorepo** | **Monolithic** | +|---------------------|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| Definition | A version control strategy where all code for multiple projects, libraries, or services is stored in a single repository. | A codebase structure where all components of an application or a company’s projects are stored together in one repository. | +| Purpose | Optimized for managing diverse projects with shared dependencies and workflows. | Focuses on centralizing the code for a single application or an organization in one repository. | +| Scope | Can include multiple applications, libraries, and tools, with modular or microservice architectures. | Typically refers to a single application or a company’s codebase, which might not follow modular design principles. | +| Tools and Workflows | Relies heavily on tools like Bazel, Nx, or Lerna to manage dependencies, builds, and scalability. | May or may not use advanced tools, as the emphasis is on central storage rather than optimized management. | +| Modularity | Encourages modularity, even within a single repository, to facilitate isolated builds and testing. | Often lacks modularity if applied to a monolithic application; everything is tightly coupled. | ## Open Source Philosophy Mega is proudly **Open Source**! 🎉 We believe in creating an accessible, collaborative platform that thrives on community contributions. - Interested in helping us improve? Check out our [Mega](https://github.com/web3infra-foundation/mega) to get started! From feature suggestions to bug fixes, all contributions are welcome. + Interested in helping us improve? Check out our [repository](https://github.com/web3infra-foundation/mega) to get started! From feature suggestions to bug fixes, all contributions are welcome. ## Project Overview diff --git a/aria/package.json b/aria/package.json index 5adafeb4..a62f78c7 100644 --- a/aria/package.json +++ b/aria/package.json @@ -9,23 +9,23 @@ "lint": "next lint" }, "dependencies": { - "@next/third-parties": "^15.0.4", - "@radix-ui/react-accordion": "^1.2.0", - "@radix-ui/react-avatar": "^1.1.0", - "@radix-ui/react-collapsible": "^1.1.0", - "@radix-ui/react-dialog": "^1.1.1", - "@radix-ui/react-dropdown-menu": "^2.1.1", - "@radix-ui/react-scroll-area": "^1.2.0", - "@radix-ui/react-slot": "^1.1.0", - "@radix-ui/react-tabs": "^1.1.0", + "@next/third-parties": "^15.1.3", + "@radix-ui/react-accordion": "^1.2.2", + "@radix-ui/react-avatar": "^1.1.2", + "@radix-ui/react-collapsible": "^1.1.2", + "@radix-ui/react-dialog": "^1.1.4", + "@radix-ui/react-dropdown-menu": "^2.1.4", + "@radix-ui/react-scroll-area": "^1.2.2", + "@radix-ui/react-slot": "^1.1.1", + "@radix-ui/react-tabs": "^1.1.2", "@vercel/analytics": "^1.4.1", - "class-variance-authority": "^0.7.0", + "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "gray-matter": "^4.0.3", - "lucide-react": "^0.435.0", - "next": "15.0.4", + "lucide-react": "^0.469.0", + "next": "15.1.3", "next-mdx-remote": "^5.0.0", - "next-themes": "^0.3.0", + "next-themes": "^0.4.4", "react": "^19", "react-dom": "^19", "react-inlinesvg": "^4.1.5", @@ -34,19 +34,19 @@ "rehype-prism-plus": "^2.0.0", "rehype-slug": "^6.0.0", "remark-gfm": "^4.0.0", - "tailwind-merge": "^2.5.2", + "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", "unist-util-visit": "^5.0.0" }, "devDependencies": { "@tailwindcss/typography": "^0.5.15", - "@types/node": "^20", + "@types/node": "^22.10.3", "@types/react": "^19", "@types/react-dom": "^19", - "eslint": "^8", - "eslint-config-next": "15.0.4", - "postcss": "^8", - "tailwindcss": "^3.4.16", - "typescript": "^5" + "eslint": "^9.17.0", + "eslint-config-next": "15.1.3", + "postcss": "^8.4.49", + "tailwindcss": "^3.4.17", + "typescript": "^5.7.2" } }