diff --git a/company_generic.svg b/company_generic.svg new file mode 100644 index 0000000..c935139 --- /dev/null +++ b/company_generic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/stockingly-frontend/package.json b/stockingly-frontend/package.json index 4aae167..2c16fdc 100644 --- a/stockingly-frontend/package.json +++ b/stockingly-frontend/package.json @@ -9,7 +9,7 @@ "lint": "eslint . --fix --ignore-path .gitignore" }, "dependencies": { - "@mdi/font": "7.0.96", + "@mdi/font": "^7.2.96", "core-js": "^3.29.0", "roboto-fontface": "*", "vue": "^3.2.0", diff --git a/stockingly-frontend/src/api/index.ts b/stockingly-frontend/src/api/index.ts index 2dbc27e..61298e2 100644 --- a/stockingly-frontend/src/api/index.ts +++ b/stockingly-frontend/src/api/index.ts @@ -13,7 +13,11 @@ export interface Company { tags: string[]; ticker: string; website: string; + logoSrc: string } export const getCompanies = (): Promise => - fetch(BACKEND_URL + '/companies').then(r => r.json()) \ No newline at end of file + fetch(BACKEND_URL + '/companies').then(r => r.json()).then(list => list.map((e: Company) => ({ + ...e, + logoSrc: `${BACKEND_URL}/companies/logos/${e.ticker}` + }))); \ No newline at end of file diff --git a/stockingly-frontend/src/views/Home.vue b/stockingly-frontend/src/views/Home.vue index 1ac6d2a..789b8d3 100644 --- a/stockingly-frontend/src/views/Home.vue +++ b/stockingly-frontend/src/views/Home.vue @@ -9,13 +9,28 @@