-
);
}
diff --git a/client/app/scss/index.scss b/client/app/scss/index.scss
index 85dbf16..cc31ce7 100644
--- a/client/app/scss/index.scss
+++ b/client/app/scss/index.scss
@@ -12,3 +12,4 @@
@import './input.scss';
@import './grid.scss';
@import './nprogress.scss';
+@import './table.scss';
diff --git a/client/app/scss/style.scss b/client/app/scss/style.scss
index ac9b3f0..761d232 100644
--- a/client/app/scss/style.scss
+++ b/client/app/scss/style.scss
@@ -71,3 +71,9 @@ body {
white-space: nowrap;
text-overflow: ellipsis;
}
+
+.hide-tiny {
+ @include tinyScreen {
+ display: none;
+ }
+}
diff --git a/client/app/scss/table.scss b/client/app/scss/table.scss
new file mode 100644
index 0000000..db7c044
--- /dev/null
+++ b/client/app/scss/table.scss
@@ -0,0 +1,14 @@
+.table {
+ width: 100%;
+
+ thead {
+ text-align: left;
+ }
+
+ td,
+ th {
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+}
diff --git a/client/app/services/sound.service.ts b/client/app/services/sound.service.ts
index 2cc3ded..5c9c2e3 100644
--- a/client/app/services/sound.service.ts
+++ b/client/app/services/sound.service.ts
@@ -1,10 +1,17 @@
import { SoundType } from '../components/sound-list/sound-list';
+import { ISound } from '../model';
import { axios } from './axios.service';
const playSound = (sound: SoundType): Promise
=> {
return axios.post('/api/sound/play', { name: sound.name });
};
+const getSounds = async (): Promise => {
+ const res = await axios.get('/api/sound');
+ return res.data.data;
+};
+
export const SoundService = {
+ getSounds,
playSound,
};