Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/app/app-routing.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const DASHBOARD_USER_WORKSPACE = `${DASHBOARD_USER}/workflow`;
export const DASHBOARD_USER_WORKFLOW = `${DASHBOARD_USER}/workflow`;
export const DASHBOARD_USER_DATASET = `${DASHBOARD_USER}/dataset`;
export const DASHBOARD_USER_DATASET_CREATE = `${DASHBOARD_USER_DATASET}/create`;
export const DASHBOARD_USER_COMPUTING_UNIT = `${DASHBOARD_USER}/unit`;
export const DASHBOARD_USER_QUOTA = `${DASHBOARD_USER}/quota`;
export const DASHBOARD_USER_DISCUSSION = `${DASHBOARD_USER}/discussion`;

Expand Down
5 changes: 5 additions & 0 deletions frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { UserWorkflowComponent } from "./dashboard/component/user/user-workflow/
import { UserQuotaComponent } from "./dashboard/component/user/user-quota/user-quota.component";
import { UserProjectSectionComponent } from "./dashboard/component/user/user-project/user-project-section/user-project-section.component";
import { UserProjectComponent } from "./dashboard/component/user/user-project/user-project.component";
import { UserComputingUnitComponent } from "./dashboard/component/user/user-computing-unit/user-computing-unit.component";
import { WorkspaceComponent } from "./workspace/component/workspace.component";
import { AboutComponent } from "./hub/component/about/about.component";
import { AuthGuardService } from "./common/service/user/auth-guard.service";
Expand Down Expand Up @@ -130,6 +131,10 @@ routes.push({
path: "dataset/create",
component: DatasetDetailComponent,
},
{
path: "unit",
component: UserComputingUnitComponent,
},
{
path: "quota",
component: UserQuotaComponent,
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ import { NzCheckboxModule } from "ng-zorro-antd/checkbox";
import { NzRadioModule } from "ng-zorro-antd/radio";
import { RegistrationRequestModalComponent } from "./common/service/user/registration-request-modal/registration-request-modal.component";
import { MarkdownDescriptionComponent } from "./dashboard/component/user/markdown-description/markdown-description.component";
import { UserComputingUnitComponent } from "./dashboard/component/user/user-computing-unit/user-computing-unit.component";

registerLocaleData(en);

Expand Down Expand Up @@ -283,6 +284,7 @@ registerLocaleData(en);
AdminSettingsComponent,
RegistrationRequestModalComponent,
MarkdownDescriptionComponent,
UserComputingUnitComponent,
],
imports: [
BrowserModule,
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/app/dashboard/component/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@
nzType="database"></span>
<span>Datasets</span>
</li>
<li
nz-menu-item
nz-tooltip="Manage computing units"
nzMatchRouter="true"
nzTooltipPlacement="right"
[routerLink]="DASHBOARD_USER_COMPUTING_UNIT">
<span
nz-icon
nzType="deployment-unit"></span>
<span>Computing Units</span>
</li>
<li
*ngIf="sidebarTabs.quota_enabled"
nz-menu-item
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/dashboard/component/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
DASHBOARD_ADMIN_GMAIL,
DASHBOARD_ADMIN_SETTINGS,
DASHBOARD_ADMIN_USER,
DASHBOARD_USER_COMPUTING_UNIT,
DASHBOARD_USER_DATASET,
DASHBOARD_USER_DISCUSSION,
DASHBOARD_USER_PROJECT,
Expand Down Expand Up @@ -80,6 +81,7 @@ export class DashboardComponent implements OnInit {
protected readonly DASHBOARD_USER_PROJECT = DASHBOARD_USER_PROJECT;
protected readonly DASHBOARD_USER_WORKFLOW = DASHBOARD_USER_WORKFLOW;
protected readonly DASHBOARD_USER_DATASET = DASHBOARD_USER_DATASET;
protected readonly DASHBOARD_USER_COMPUTING_UNIT = DASHBOARD_USER_COMPUTING_UNIT;
protected readonly DASHBOARD_USER_QUOTA = DASHBOARD_USER_QUOTA;
protected readonly DASHBOARD_USER_DISCUSSION = DASHBOARD_USER_DISCUSSION;
protected readonly DASHBOARD_ADMIN_USER = DASHBOARD_ADMIN_USER;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<div class="section-container subsection-grid-container">
<nz-card class="section-title">
<h2 class="page-title">Computing Units</h2>
</nz-card>

<nz-card
class="section-list-container"
[nzBodyStyle]="{ height: '100%'}">
</nz-card>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

@import "../../dashboard.component.scss";
@import "../../section-style";
@import "../../button-style";

.subsection-grid-container {
min-width: 100%;
width: 100%;
min-height: 100%;
height: 100%;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { ComponentFixture, TestBed } from "@angular/core/testing";
import { UserComputingUnitComponent } from "./user-computing-unit.component";
import { NzCardModule } from "ng-zorro-antd/card";

describe("UserComputingUnitComponent", () => {
let component: UserComputingUnitComponent;
let fixture: ComponentFixture<UserComputingUnitComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [UserComputingUnitComponent],
imports: [NzCardModule],
}).compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(UserComputingUnitComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it("should create", () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Component } from "@angular/core";

@Component({
selector: "texera-computing-unit-section",
templateUrl: "user-computing-unit.component.html",
styleUrls: ["user-computing-unit.component.scss"],
})
export class UserComputingUnitComponent {}
Loading