working docker
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
FROM node:latest
|
FROM node:latest
|
||||||
|
|
||||||
|
ENV PUBLIC_BASE_URL=http://localhost:4056
|
||||||
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -8,6 +10,6 @@ COPY package*.json ./
|
|||||||
|
|
||||||
ENV PATH /app/node_modules/.bin:$PATH
|
ENV PATH /app/node_modules/.bin:$PATH
|
||||||
|
|
||||||
RUN npm install -g
|
RUN npm install
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
2146
package-lock.json
generated
Executable file → Normal file
2146
package-lock.json
generated
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"name": "goodoilfrontend",
|
"name": "auburnoil",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev --port 5169 --host",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "^2.0.0",
|
"@sveltejs/adapter-auto": "*",
|
||||||
"@sveltejs/adapter-node": "^1.3.1",
|
"@sveltejs/adapter-node": "*",
|
||||||
"@sveltejs/adapter-static": "^2.0.3",
|
"@sveltejs/adapter-static": "*",
|
||||||
"@sveltejs/kit": "^1.30.4",
|
"@sveltejs/kit": "*",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"daisyui": "^4.7.3",
|
"daisyui": "^4.10.1",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"postcss-load-config": "^4.0.1",
|
"postcss-load-config": "^4.0.2",
|
||||||
"svelte": "^4.0.5",
|
"svelte": "*",
|
||||||
"svelte-check": "^3.4.3",
|
"svelte-check": "*",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.3",
|
||||||
"tslib": "^2.4.1",
|
"tslib": "*",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "*",
|
||||||
"vite": "^4.5.2"
|
"vite": "*"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export type oilprice = {
|
export type oilprice = {
|
||||||
ok: boolean
|
ok: boolean
|
||||||
price: string;
|
price_for_employee: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type company = {
|
export type company = {
|
||||||
|
|||||||
@@ -23,7 +23,9 @@
|
|||||||
.then((result) => (oil_price_data = result));
|
.then((result) => (oil_price_data = result));
|
||||||
|
|
||||||
if (oil_price_data["ok"] == true) {
|
if (oil_price_data["ok"] == true) {
|
||||||
price_of_oil = oil_price_data["price"];
|
console.log("here")
|
||||||
|
price_of_oil = oil_price_data["price_for_employee"];
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
@@ -56,7 +58,7 @@
|
|||||||
class="normal-case text-8xl text-white bg-primary"
|
class="normal-case text-8xl text-white bg-primary"
|
||||||
href="/"
|
href="/"
|
||||||
>
|
>
|
||||||
Good
|
Auburn
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="normal-case text-8xl text-primary"
|
class="normal-case text-8xl text-primary"
|
||||||
@@ -111,7 +113,7 @@
|
|||||||
<li><a class="text-2xl py-2 hover:bg-base-100" href="/contact">Contact</a></li>
|
<li><a class="text-2xl py-2 hover:bg-base-100" href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<a class="btn btn-ghost text-xl">GoodOil</a>
|
<a href="/" class="btn btn-ghost text-xl">AuburnOil</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-center hidden lg:flex text-white">
|
<div class="navbar-center hidden lg:flex text-white">
|
||||||
<ul class="menu menu-horizontal px-1 text-xl">
|
<ul class="menu menu-horizontal px-1 text-xl">
|
||||||
@@ -134,7 +136,7 @@
|
|||||||
class="col-span-12 md:col-span-4 text-center text-white text-bold text-6xl"
|
class="col-span-12 md:col-span-4 text-center text-white text-bold text-6xl"
|
||||||
>
|
>
|
||||||
<div class="flex justify-center pt-5">
|
<div class="flex justify-center pt-5">
|
||||||
<div class=" text-white px-1">Good</div>
|
<div class=" text-white px-1">Auburn</div>
|
||||||
<div class=" text-white px-1">Oil</div>
|
<div class=" text-white px-1">Oil</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<div class="grid grid-cols-12 gap-5 px-5 text-center mt-10">
|
<div class="grid grid-cols-12 gap-5 px-5 text-center mt-10">
|
||||||
<div class="col-span-12 font-bold text-4xl text-blue-400 mx-auto">
|
<div class="col-span-12 font-bold text-4xl text-blue-400 mx-auto">
|
||||||
Why call good oil?
|
Why call Auburn Oil?
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-12 lg:col-span-2"></div>
|
<div class="col-span-12 lg:col-span-2"></div>
|
||||||
<div class="col-span-12 lg:col-span-3 bg-base-100 p-10">
|
<div class="col-span-12 lg:col-span-3 bg-base-100 p-10">
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
Business Hours Summer
|
Business Hours Summer
|
||||||
</div>
|
</div>
|
||||||
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
|
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
|
||||||
<div class="text-xl">8:00 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Monday: 8:00 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Tuesday: 8:30 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Tuesday: 8:30 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Wednesday: 8:30 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Wednesday: 8:30 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Thursday: 8:00 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Thursday: 8:00 a.m. – 5:00 p.m.</div>
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
Business Hours Winter
|
Business Hours Winter
|
||||||
</div>
|
</div>
|
||||||
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
|
<div class="font-bold text-xl bg-primary text-white h-2 mb-2"></div>
|
||||||
<div class="text-xl">8:00 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Monday: 8:00 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Tuesday: 8:30 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Tuesday: 8:30 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Wednesday: 8:30 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Wednesday: 8:30 a.m. – 5:00 p.m.</div>
|
||||||
<div class="text-xl">Thursday: 8:00 a.m. – 5:00 p.m.</div>
|
<div class="text-xl">Thursday: 8:00 a.m. – 5:00 p.m.</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user