- added CTS Logo
- updated npm packages like vue-facing-decorator and some prettier and eslint dev dependecies - remove node-polyfill-webpack-plugin
This commit is contained in:
parent
6f63db4a71
commit
a85debca92
13 changed files with 1685 additions and 2415 deletions
|
@ -1,17 +1,11 @@
|
|||
<template>
|
||||
<!-- <HelloWorld msg="Welcome to Your Vue.js plus TypeScript App" /> -->
|
||||
|
||||
<!-- <link
|
||||
rel="stylesheet"
|
||||
href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
|
||||
integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ"
|
||||
crossorigin="anonymous"
|
||||
/> -->
|
||||
<nav class="navbar navbar-light border-bottom" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<a class="navbar-item" href="/">
|
||||
<!-- <img src="./assets/images/TETHYS-Logo.svg" width="240px" height="86" alt="TETHYS Logo" /> -->
|
||||
<img src="./assets/images/TETHYS-Logo.svg" width="240" height="86" />
|
||||
<img src="./assets/images/cts-logo.png" width="80" height="80" />
|
||||
</a>
|
||||
<a
|
||||
id="menu-icon"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<a class="navbar-item" v-bind:href="app_url">
|
||||
<!-- <img src="./assets/images/TETHYS-Logo.svg" width="240px" height="86" alt="TETHYS Logo" /> -->
|
||||
<img src="./assets/images/TETHYS-Logo.svg" width="240" height="86" />
|
||||
<img src="./assets/images/cts-logo.png" width="80" height="80" />
|
||||
</a>
|
||||
<a
|
||||
id="menu-icon"
|
||||
|
|
|
@ -8,6 +8,7 @@ import { AxiosResponse } from "axios";
|
|||
|
||||
const axiosInstance = initializeAxios(axiosRequestConfiguration);
|
||||
|
||||
// eslint-disable-next-line
|
||||
const get = <T>(url: string, queryParams?: any): Observable<T> => {
|
||||
return defer(() => axiosInstance.get<T>(url, { params: queryParams })).pipe(map((result: AxiosResponse) => result.data));
|
||||
};
|
||||
|
|
|
@ -66,7 +66,7 @@ export default class App extends Vue {
|
|||
// }
|
||||
}
|
||||
|
||||
public showMobilemenu(event: PointerEvent): void {
|
||||
public showMobilemenu(event: MouseEvent): void {
|
||||
// Don't follow the link
|
||||
event.preventDefault();
|
||||
this.active = !this.active;
|
||||
|
|
|
@ -69,7 +69,7 @@ export default class App2 extends Vue {
|
|||
// }
|
||||
}
|
||||
|
||||
public showMobilemenu(event: PointerEvent): void {
|
||||
public showMobilemenu(event: MouseEvent): void {
|
||||
// Don't follow the link
|
||||
event.preventDefault();
|
||||
this.active = !this.active;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
x="0px"
|
||||
|
|
BIN
src/assets/images/cts-logo.png
Normal file
BIN
src/assets/images/cts-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -82,7 +82,7 @@ export default class BaseWidget extends Vue {
|
|||
return `${value.toLocaleString("en-us")} ${label}s`;
|
||||
}
|
||||
|
||||
public formatNumbers(num: any) {
|
||||
public formatNumbers(num: number) {
|
||||
if (num < 1e3) return num;
|
||||
if (num >= 1e3 && num < 1e6) return `${+(num / 1e3).toFixed(1)}K`;
|
||||
if (num >= 1e6 && num < 1e9) return `${+(num / 1e6).toFixed(1)}M`;
|
||||
|
|
|
@ -23,7 +23,10 @@ export interface Dataset {
|
|||
}
|
||||
|
||||
export class Suggestion {
|
||||
constructor(public value: string, public type: SearchType) {}
|
||||
constructor(
|
||||
public value: string,
|
||||
public type: SearchType,
|
||||
) {}
|
||||
// value!: string;
|
||||
// type!: SearchType;
|
||||
}
|
||||
|
|
|
@ -10,13 +10,13 @@ import VsInput from "@/components/vs-input/vs-input.vue";
|
|||
import { Suggestion } from "@/models/dataset";
|
||||
import { VUE_APP_PORTAL } from "@/constants";
|
||||
// import DataMetricsBadge from "data-metrics-badge/dist/data-metrics-badge.js";
|
||||
import DataMetricsBadge from "@/components/datacite/DataMetricsBadge.vue";
|
||||
// import DataMetricsBadge from "@/components/datacite/DataMetricsBadge.vue";
|
||||
|
||||
@Component({
|
||||
name: "DatasetDetailComponent",
|
||||
components: {
|
||||
VsInput,
|
||||
DataMetricsBadge,
|
||||
// DataMetricsBadge,
|
||||
},
|
||||
})
|
||||
export default class DatasetDetailComponent extends Vue {
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue