-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: form page / webview component for bootc
### What does this PR do? Our first ever form page! This is a massive PR / "initiliazation" PR to get our form page started. It includes some basic features and a working, functional form page that: * Checks what images are available / listed and filters out non-bootc ones * Submit it and have it running in the background There are also some significant architectural changes: * Shared / frontend / backend folders that demonstrate each section of the extension, in order to do cross-communication between the webview and backend * Refactoring of the "quickpick" so it is now separate from the other functionalities of the extension and is still useable. It is now in a separate function that just gets the users input from quickpick To note: * There may be some validation that is still needed / to test / try to "break" the form ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes #141 ### How to test this PR? <!-- Please explain steps to reproduce --> 1. `yarn watch` or `yarn build` in the extension folder 2. You MAY have to do `yarn install` or `yarn` in both the root folder, and `packages/frontend` and `packages/backend` for it to work correctly. 3. Go to the LATEST changes on the main branch of podman desktop, and run `yarn watch --extension-folder ../bootc/packages/backend` Signed-off-by: Charlie Drage <[email protected]>
- Loading branch information
Showing
70 changed files
with
13,832 additions
and
1,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ build | |
*.config.js | ||
__mocks__ | ||
coverage | ||
packages/backend/media/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules | |
dist | ||
.eslintcache | ||
**/coverage | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
{ | ||
"svelteSortOrder" : "options-styles-scripts-markup", | ||
"svelteStrictMode": true, | ||
"svelteAllowShorthand": false, | ||
"svelteIndentScriptAndStyle": false, | ||
"bracketSameLine": true, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"printWidth": 120, | ||
"trailingComma": "all" | ||
"trailingComma": "all", | ||
"plugins": ["prettier-plugin-svelte"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# https://github.com/jokeyrhyme/standard-editorconfig | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# defaults | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
*.config.js | ||
__mocks__ | ||
coverage | ||
media/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"es2021": true, | ||
"node": true, | ||
"browser": false | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
/** @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#recommended-configs */ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"plugin:etc/recommended", | ||
"plugin:sonarjs/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"project": [ | ||
"./tsconfig.json" | ||
] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": true, | ||
"node": true, | ||
"eslint-import-resolver-custom-alias": { | ||
"alias": { | ||
"/@": "./src", | ||
"/@gen": "./src-generated" | ||
}, | ||
"extensions": [".ts"], | ||
"packages": ["packages/*"] | ||
} | ||
} | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules/**", | ||
"**/dist/**" | ||
], | ||
"plugins": ["@typescript-eslint", "sonarjs", "etc", "redundant-undefined", "no-null"], | ||
"rules": { | ||
"eqeqeq": "error", | ||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"@typescript-eslint/await-thenable": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-misused-promises": "error", | ||
"@typescript-eslint/prefer-optional-chain": "error", | ||
"no-null/no-null": "error", | ||
|
||
/** | ||
* Having a semicolon helps the optimizer interpret your code correctly. | ||
* This avoids rare errors in optimized code. | ||
* @see https://twitter.com/alex_kozack/status/1364210394328408066 | ||
*/ | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
/** | ||
* This will make the history of changes in the hit a little cleaner | ||
*/ | ||
"comma-dangle": [ | ||
"warn", | ||
"always-multiline" | ||
], | ||
/** | ||
* Just for beauty | ||
*/ | ||
"quotes": ["error", "single", { "allowTemplateLiterals": true }], | ||
"import/no-duplicates": "error", | ||
"import/no-unresolved": "off", | ||
"import/default": "off", | ||
"import/no-named-as-default-member": "off", | ||
"import/no-named-as-default": "off", | ||
"sonarjs/cognitive-complexity": "off", | ||
"sonarjs/no-duplicate-string": "off", | ||
"sonarjs/no-empty-collection": "off", | ||
"sonarjs/no-small-switch": "off", | ||
"etc/no-commented-out-code": "error", | ||
"etc/no-deprecated": "off", | ||
"redundant-undefined/redundant-undefined": "error", | ||
"import/no-extraneous-dependencies": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
.eslintcache | ||
**/coverage | ||
media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"bracketSameLine": true, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"printWidth": 120, | ||
"trailingComma": "all" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ignore-engines true |
File renamed without changes.
File renamed without changes
File renamed without changes
Oops, something went wrong.