Skip to content

Commit

Permalink
Merge pull request #38 from nmbr7/refactor
Browse files Browse the repository at this point in the history
General refactor
  • Loading branch information
nmbr7 authored Sep 16, 2024
2 parents d75ba54 + 13f67a2 commit b8360a3
Show file tree
Hide file tree
Showing 13,652 changed files with 136,729 additions and 136,670 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
repo_owner="DesignPlain"
repo_name="PlainServer"
event_type="Trigger-UI-File-Update"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# DesignSphere UI
This project contains the web UI code for DesignSphere

This project contains the web UI code for DesignSphere

## Build

Run `npm build` to build the project. The build artifacts will be stored in the `dist/` directory.


## Running the Server

Run `npm server` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
Expand All @@ -15,6 +15,5 @@ Run `npm server` for a dev server. Navigate to `http://localhost:4200/`. The app
Backend code available at [PlainBackend](https://github.com/DesignPlain/PlainServer) repo. The UI state management will work even if the backend is not running, using the browser's local storage, though deployment won't work.

## UI Demo
![DesignSphere_UI](https://github.com/DesignPlain/PlainDashboard/assets/19748270/5ffbdc14-5cb4-4431-a1c1-093bba9fced3)


![DesignSphere_UI](https://github.com/DesignPlain/PlainDashboard/assets/19748270/5ffbdc14-5cb4-4431-a1c1-093bba9fced3)
27 changes: 6 additions & 21 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@
"outputPath": "dist/design-sphere",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -90,19 +83,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
}
Expand Down
1 change: 0 additions & 1 deletion src/app/Models/CloudResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ResourceType as GCP_ResourceType } from 'src/app/Models/codegen/gcp/Res
import { ResourceType as AWS_ResourceType } from 'src/app/Models/codegen/aws/ResourceType';
import { DS_Resource } from 'src/app/Models/codegen/ds_base/Resource';


export class CloudResource {
public id: string = '';
public name: string = '';
Expand Down
5,494 changes: 2,747 additions & 2,747 deletions src/app/Models/codegen/aws/ResourceProperties.ts

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/app/Models/codegen/aws/accessanalyzer/Analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import {
InputType_String_GetTypes,
InputType_Number_GetTypes,
InputType_Map_GetTypes,
} from "../../ds_base/InputType";
import { DS_Resource } from "../../ds_base/Resource";
import { DynamicUIProps } from "../../ds_base/DynamicUIProps";
} from '../../ds_base/InputType';
import { DS_Resource } from '../../ds_base/Resource';
import { DynamicUIProps } from '../../ds_base/DynamicUIProps';
import {
accessanalyzer_AnalyzerConfiguration,
accessanalyzer_AnalyzerConfiguration_GetTypes,
} from "../types/accessanalyzer_AnalyzerConfiguration";
} from '../types/accessanalyzer_AnalyzerConfiguration';

export interface AnalyzerArgs {
// Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Expand Down Expand Up @@ -55,32 +55,32 @@ The following arguments are optional:
return [
new DynamicUIProps(
InputType.Map,
"tags",
"Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.",
'tags',
'Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.',
() => InputType_Map_GetTypes(),
false,
false,
),
new DynamicUIProps(
InputType.String,
"type",
"Type of Analyzer. Valid values are `ACCOUNT`, `ORGANIZATION`, `ACCOUNT_UNUSED_ACCESS `, `ORGANIZATION_UNUSED_ACCESS`. Defaults to `ACCOUNT`.",
'type',
'Type of Analyzer. Valid values are `ACCOUNT`, `ORGANIZATION`, `ACCOUNT_UNUSED_ACCESS `, `ORGANIZATION_UNUSED_ACCESS`. Defaults to `ACCOUNT`.',
() => [],
false,
true,
),
new DynamicUIProps(
InputType.String,
"analyzerName",
"Name of the Analyzer.\n\nThe following arguments are optional:",
'analyzerName',
'Name of the Analyzer.\n\nThe following arguments are optional:',
() => [],
true,
true,
),
new DynamicUIProps(
InputType.Object,
"configuration",
"A block that specifies the configuration of the analyzer. Documented below",
'configuration',
'A block that specifies the configuration of the analyzer. Documented below',
() => accessanalyzer_AnalyzerConfiguration_GetTypes(),
false,
true,
Expand Down
20 changes: 10 additions & 10 deletions src/app/Models/codegen/aws/accessanalyzer/ArchiveRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import {
InputType_String_GetTypes,
InputType_Number_GetTypes,
InputType_Map_GetTypes,
} from "../../ds_base/InputType";
import { DS_Resource } from "../../ds_base/Resource";
import { DynamicUIProps } from "../../ds_base/DynamicUIProps";
} from '../../ds_base/InputType';
import { DS_Resource } from '../../ds_base/Resource';
import { DynamicUIProps } from '../../ds_base/DynamicUIProps';
import {
accessanalyzer_ArchiveRuleFilter,
accessanalyzer_ArchiveRuleFilter_GetTypes,
} from "../types/accessanalyzer_ArchiveRuleFilter";
} from '../types/accessanalyzer_ArchiveRuleFilter';

export interface ArchiveRuleArgs {
// Rule name.
Expand All @@ -35,24 +35,24 @@ export class ArchiveRule extends DS_Resource {
return [
new DynamicUIProps(
InputType.String,
"ruleName",
"Rule name.",
'ruleName',
'Rule name.',
() => [],
true,
true,
),
new DynamicUIProps(
InputType.String,
"analyzerName",
"Analyzer name.",
'analyzerName',
'Analyzer name.',
() => [],
true,
true,
),
new DynamicUIProps(
InputType.Array,
"filters",
"Filter criteria for the archive rule. See Filter for more details.",
'filters',
'Filter criteria for the archive rule. See Filter for more details.',
() => accessanalyzer_ArchiveRuleFilter_GetTypes(),
true,
false,
Expand Down
28 changes: 14 additions & 14 deletions src/app/Models/codegen/aws/account/AlternativeContact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
InputType_String_GetTypes,
InputType_Number_GetTypes,
InputType_Map_GetTypes,
} from "../../ds_base/InputType";
import { DS_Resource } from "../../ds_base/Resource";
import { DynamicUIProps } from "../../ds_base/DynamicUIProps";
} from '../../ds_base/InputType';
import { DS_Resource } from '../../ds_base/Resource';
import { DynamicUIProps } from '../../ds_base/DynamicUIProps';

export interface AlternativeContactArgs {
// Phone number for the alternate contact.
Expand Down Expand Up @@ -49,48 +49,48 @@ export class AlternativeContact extends DS_Resource {
return [
new DynamicUIProps(
InputType.String,
"name",
"Name of the alternate contact.",
'name',
'Name of the alternate contact.',
() => [],
false,
false,
),
new DynamicUIProps(
InputType.String,
"phoneNumber",
"Phone number for the alternate contact.",
'phoneNumber',
'Phone number for the alternate contact.',
() => [],
true,
false,
),
new DynamicUIProps(
InputType.String,
"title",
"Title for the alternate contact.",
'title',
'Title for the alternate contact.',
() => [],
true,
false,
),
new DynamicUIProps(
InputType.String,
"accountId",
'accountId',
"ID of the target account when managing member accounts. Will manage current user's account by default if omitted.",
() => [],
false,
true,
),
new DynamicUIProps(
InputType.String,
"alternateContactType",
"Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.",
'alternateContactType',
'Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.',
() => [],
true,
true,
),
new DynamicUIProps(
InputType.String,
"emailAddress",
"An email address for the alternate contact.",
'emailAddress',
'An email address for the alternate contact.',
() => [],
true,
false,
Expand Down
Loading

0 comments on commit b8360a3

Please sign in to comment.