From ad9344dd15687df4ebf0a66ad5c146532aadf692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Wed, 30 Mar 2022 15:18:59 +0200 Subject: [PATCH] [#168] Add static app to host AlphaLyrae font --- apps/explorer/src/favicon.ico | Bin 15086 -> 7406 bytes apps/static/project.json | 50 ++++++++++++++++++++++++++++++++ apps/static/src/assets/.gitkeep | 0 apps/static/src/favicon.ico | Bin 0 -> 7406 bytes apps/static/src/fonts.scss | 8 +++++ apps/static/src/index.html | 20 +++++++++++++ apps/static/src/main.ts | 0 apps/static/tsconfig.app.json | 9 ++++++ apps/static/tsconfig.json | 13 +++++++++ apps/static/tsconfig.spec.json | 10 +++++++ nx.json | 11 +++++++ package.json | 1 + workspace.json | 1 + yarn.lock | 4 +++ 14 files changed, 127 insertions(+) create mode 100644 apps/static/project.json create mode 100644 apps/static/src/assets/.gitkeep create mode 100644 apps/static/src/favicon.ico create mode 100644 apps/static/src/fonts.scss create mode 100644 apps/static/src/index.html create mode 100644 apps/static/src/main.ts create mode 100644 apps/static/tsconfig.app.json create mode 100644 apps/static/tsconfig.json create mode 100644 apps/static/tsconfig.spec.json diff --git a/apps/explorer/src/favicon.ico b/apps/explorer/src/favicon.ico index 317ebcb2336e0833a22dddf0ab287849f26fda57..03a276d66791f30b7932d26b21cef1c0be9e8d72 100644 GIT binary patch literal 7406 zcmeHLSxi$|82+F;Qrgm5prso{+d?agY^6mCT(pSNb_4_m8JR)FeM$7eB_=MAXksF` zMIIr6XpH(|;`-o=G10^~-{wW5#(j^wbIuXUEg;IwJUE&AC%5PP=l{;RxBtC4=l?z+ z4kF~{g0ylBCILkNtkxl44*W^R)atK(hXm+M0h|OwreF!V=saeMuMPW+8|gPSHKC@a z2BoE?c=zrdy1Tpa;K2i2x^xMRjg2TNDZ%~w_hB#?uyNx?)YsRey1E+s_wUF0_3Lr` z_;FNKRiU@H7cXDF#P;pmq1WrNcI{foWHN-qVGIrqqN1V#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DNl}cQ{em#bpx?C>CO)p%yz<6m< zQ4wChevP|#@5145AT>1=w{G2HT(zyOjd9h2f&#`-DId+x&u5%;>(;G|j~+R41W%tn zWn45lITl@8XX-SQEp1PDCMD>Hf_R<8#fpqUAAl) z*DtYaTv)7+qamAax7;em~=u9*>9d%gviNGk!UoR-qL#AY|b0W?)`0 znBbUTavsN3*(Qj`O%S)qrsz`LZsSZ}ongEsJl;UMCO*D0q%T&D7mt*2Tm=yTGdT5- z?8igdBGa48F_U}yWyn>S%J8nJ8FE>NAF zYSvW$rP}f7)2ErneCN&`oI7_8IXO8@FQ#X>R4T>NrAt|@Vzb%Uxld~qS_9GZ-EOzz z?Af!}w{IV-Kd9bJb#JPjo6Tlc_fTz}>dZTK>;SDbXq`j#XPRS`)S%~=?0rSJ6WH|R>_bv zjX*6CPq9Q;eqfoQE(eA%! Fe*s9s&QkyY literal 0 HcmV?d00001 diff --git a/apps/static/src/fonts.scss b/apps/static/src/fonts.scss new file mode 100644 index 000000000..27259aebb --- /dev/null +++ b/apps/static/src/fonts.scss @@ -0,0 +1,8 @@ +@font-face { + font-family: AlphaLyrae; + src: url('alpha-lyrae/AlphaLyrae-Medium.woff2') format('woof2'), + url('alpha-lyrae/AlphaLyrae-Medium.woff') format('woof'), + url('alpha-lyrae/AlphaLyrae-Medium.ttf') format('truetype'), + url('alpha-lyrae/AlphaLyrae-Medium.eot') format('embedded-opentype'), + url('alpha-lyrae/AlphaLyrae-Medium.otf') format('opentype'); +} diff --git a/apps/static/src/index.html b/apps/static/src/index.html new file mode 100644 index 000000000..2ab0a6f71 --- /dev/null +++ b/apps/static/src/index.html @@ -0,0 +1,20 @@ + + + + + + + Vega Protocol static asseets + + + + +

+ Vega Protocol static assets +

+ + + diff --git a/apps/static/src/main.ts b/apps/static/src/main.ts new file mode 100644 index 000000000..e69de29bb diff --git a/apps/static/tsconfig.app.json b/apps/static/tsconfig.app.json new file mode 100644 index 000000000..9ce897611 --- /dev/null +++ b/apps/static/tsconfig.app.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "types": ["node"] + }, + "exclude": ["**/*.spec.ts", "**/*.test.ts"], + "include": ["**/*.ts"] +} diff --git a/apps/static/tsconfig.json b/apps/static/tsconfig.json new file mode 100644 index 000000000..63dbe35fb --- /dev/null +++ b/apps/static/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.app.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/apps/static/tsconfig.spec.json b/apps/static/tsconfig.spec.json new file mode 100644 index 000000000..e70b1ea78 --- /dev/null +++ b/apps/static/tsconfig.spec.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"] +} diff --git a/nx.json b/nx.json index 7a038e690..b90f881c0 100644 --- a/nx.json +++ b/nx.json @@ -50,6 +50,17 @@ "style": "scss", "linter": "eslint" } + }, + "@nrwl/web:application": { + "style": "scss", + "linter": "eslint", + "unitTestRunner": "jest", + "e2eTestRunner": "none" + }, + "@nrwl/web:library": { + "style": "scss", + "linter": "eslint", + "unitTestRunner": "jest" } }, "defaultProject": "trading" diff --git a/package.json b/package.json index efeebd113..ef19441bd 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@web3-react/walletconnect": "^8.0.23-beta.0", "ag-grid-community": "^27.0.1", "ag-grid-react": "^27.0.1", + "alpha-lyrae": "vegaprotocol/alpha-lyrae", "apollo": "^2.33.9", "autoprefixer": "^10.4.2", "bignumber.js": "^9.0.2", diff --git a/workspace.json b/workspace.json index 4579869a4..fe97812b4 100644 --- a/workspace.json +++ b/workspace.json @@ -9,6 +9,7 @@ "order-list": "libs/order-list", "positions": "libs/positions", "react-helpers": "libs/react-helpers", + "static": "apps/static", "stats": "apps/stats", "stats-e2e": "apps/stats-e2e", "tailwindcss-config": "libs/tailwindcss-config", diff --git a/yarn.lock b/yarn.lock index 651f7dea6..fbad4a193 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6464,6 +6464,10 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.8.0: require-from-string "^2.0.2" uri-js "^4.2.2" +alpha-lyrae@vegaprotocol/alpha-lyrae: + version "0.0.0" + resolved "https://codeload.github.com/vegaprotocol/alpha-lyrae/tar.gz/952bbedd040080c51fb9fa15b52b0093be4d3c26" + anser@1.4.9: version "1.4.9" resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.9.tgz#1f85423a5dcf8da4631a341665ff675b96845760"