Delete scouting/www/counter_button
We haven't used it in a while. Let's delete it.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: If0d38e919304f29a4850c918a247eec42661ce78
diff --git a/.bazelignore b/.bazelignore
index 0b2e110..e775cb7 100644
--- a/.bazelignore
+++ b/.bazelignore
@@ -1,7 +1,6 @@
external
node_modules
scouting/www/node_modules
-scouting/www/counter_button/node_modules
scouting/www/driver_ranking/node_modules
scouting/www/entry/node_modules
scouting/www/match_list/node_modules
diff --git a/WORKSPACE b/WORKSPACE
index 1aabe54..5eae2e2 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -913,7 +913,6 @@
"@//:package.json",
"@//:pnpm-workspace.yaml",
"@//scouting/www:package.json",
- "@//scouting/www/counter_button:package.json",
"@//scouting/www/driver_ranking:package.json",
"@//scouting/www/entry:package.json",
"@//scouting/www/match_list:package.json",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bf6a429..6767407 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -101,8 +101,6 @@
scouting/www: {}
- scouting/www/counter_button: {}
-
scouting/www/driver_ranking:
dependencies:
'@angular/forms':
@@ -114,9 +112,6 @@
'@angular/forms':
specifier: v16-lts
version: 16.2.12(@angular/common@16.2.12)(@angular/core@16.2.12)(@angular/platform-browser@16.2.12)(rxjs@7.5.7)
- '@org_frc971/scouting/www/counter_button':
- specifier: workspace:*
- version: link:../counter_button
'@types/pako':
specifier: 2.0.3
version: 2.0.3
diff --git a/scouting/www/counter_button/BUILD b/scouting/www/counter_button/BUILD
deleted file mode 100644
index d081f9d..0000000
--- a/scouting/www/counter_button/BUILD
+++ /dev/null
@@ -1,8 +0,0 @@
-load("@npm//:defs.bzl", "npm_link_all_packages")
-load("//tools/build_rules:js.bzl", "ng_pkg")
-
-npm_link_all_packages(name = "node_modules")
-
-ng_pkg(
- name = "counter_button",
-)
diff --git a/scouting/www/counter_button/counter_button.component.css b/scouting/www/counter_button/counter_button.component.css
deleted file mode 100644
index df95f65..0000000
--- a/scouting/www/counter_button/counter_button.component.css
+++ /dev/null
@@ -1,14 +0,0 @@
-:host {
- display: flex;
- align-items: stretch;
- flex-direction: column;
- text-align: center;
-}
-
-* {
- padding: 10px;
-}
-
-.no-touch-action {
- touch-action: manipulation;
-}
diff --git a/scouting/www/counter_button/counter_button.component.ts b/scouting/www/counter_button/counter_button.component.ts
deleted file mode 100644
index fa84dc6..0000000
--- a/scouting/www/counter_button/counter_button.component.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import {Component, Input, Output, EventEmitter} from '@angular/core';
-
-@Component({
- selector: 'frc971-counter-button',
- templateUrl: './counter_button.ng.html',
- styleUrls: ['./counter_button.component.css'],
-})
-export class CounterButton {
- @Input() value: number = 0;
- @Output() valueChange = new EventEmitter<number>();
-
- update(delta: number) {
- this.value = Math.max(this.value + delta, 0);
-
- this.valueChange.emit(this.value);
- }
-}
diff --git a/scouting/www/counter_button/counter_button.module.ts b/scouting/www/counter_button/counter_button.module.ts
deleted file mode 100644
index 719ce7c..0000000
--- a/scouting/www/counter_button/counter_button.module.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import {NgModule} from '@angular/core';
-
-import {CounterButton} from './counter_button.component';
-
-@NgModule({
- declarations: [CounterButton],
- exports: [CounterButton],
-})
-export class CounterButtonModule {}
diff --git a/scouting/www/counter_button/counter_button.ng.html b/scouting/www/counter_button/counter_button.ng.html
deleted file mode 100644
index 3300ff2..0000000
--- a/scouting/www/counter_button/counter_button.ng.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<h4><ng-content></ng-content></h4>
-<button (click)="update(1)" class="btn btn-secondary btn-block no-touch-action">
- +
-</button>
-<h3>{{value}}</h3>
-<button
- (click)="update(-1)"
- class="btn btn-secondary btn-block no-touch-action"
->
- -
-</button>
diff --git a/scouting/www/counter_button/package.json b/scouting/www/counter_button/package.json
deleted file mode 100644
index 61eb83b..0000000
--- a/scouting/www/counter_button/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "@org_frc971/scouting/www/counter_button",
- "private": true
-}
diff --git a/scouting/www/entry/package.json b/scouting/www/entry/package.json
index a02c0a6..4d30551 100644
--- a/scouting/www/entry/package.json
+++ b/scouting/www/entry/package.json
@@ -4,7 +4,6 @@
"dependencies": {
"pako": "2.1.0",
"@types/pako": "2.0.3",
- "@org_frc971/scouting/www/counter_button": "workspace:*",
"@angular/forms": "v16-lts"
}
}