Dodano szkielet projektu

This commit is contained in:
2021-12-08 23:48:38 +01:00
parent b58c9d9579
commit 8a3f6e5bb0
15 changed files with 30393 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
+21
View File
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'prettier/prettier': 'off',
},
};
+23
View File
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
+24
View File
@@ -0,0 +1,24 @@
# pragotron-td2
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
};
+30069
View File
File diff suppressed because it is too large Load Diff
+33
View File
@@ -0,0 +1,33 @@
{
"name": "pragotron-td2",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^3.0.0",
"vue-class-component": "^8.0.0-0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0",
"prettier": "^2.2.1",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"typescript": "~4.1.5"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
+41
View File
@@ -0,0 +1,41 @@
<template>
<div>
<PragotronVue />
</div>
</template>
<script lang="ts">
import { defineComponent } from '@vue/runtime-core';
import PragotronVue from './components/Pragotron.vue';
export default defineComponent({
components: {
PragotronVue,
},
});
</script>
<style lang="scss">
@import url('https://fonts.googleapis.com/css2?family=Monda:wght@400;700&display=swap');
body,
html {
background: #333;
min-height: 100vh;
padding: 0;
margin: 0;
font-family: 'Monda', sans-serif;
}
#app {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
</style>
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+109
View File
@@ -0,0 +1,109 @@
<template>
<div class="pragotron">
<div class="wrapper">
<div class="top-pane">
<span class="title">ODJAZDY</span>
<div class="headers">
<span>DO STACJI</span>
<span>PRZEZ</span>
<span>POCIĄG</span>
<span>PLAN. ODJ.</span>
<span>OPÓŹN.</span>
</div>
</div>
<div class="table">
<div class="row" v-for="i in new Array(8)" :key="i">
<div class="row-content">
<span class="destination">
<div class="station-slider-slot"></div>
</span>
<span class="via-station">
<div class="station-slider-slot"></div>
</span>
<span class="train-class">
<div class="train-slider-slot"></div>
</span>
<span class="departure-date">
<span class="hours-slot"></span>
<span class="minutes-slot"></span>
<span class="seconds-slot"></span>
</span>
<span class="delay">
<div class="delay-slider-slot"></div>
</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script lang="ts">
/* eslint-disable */
import { defineComponent } from 'vue';
export default defineComponent({
data: () => ({}),
});
</script>
<style lang="scss" scoped>
.pragotron {
width: 1200px;
height: 600px;
background: black;
}
.wrapper {
height: 100%;
display: flex;
flex-direction: column;
}
.top-pane {
background: white;
height: 130px;
.title {
padding: 0;
font-size: 3.5em;
}
.headers {
display: grid;
grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
gap: 0 10px;
text-align: center;
font-size: 1.35em;
}
}
.table {
background: white;
flex-grow: 1;
display: grid;
grid-template-rows: repeat(7, 1fr);
gap: 5px 0;
}
.row {
&-content {
display: grid;
grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
height: 100%;
span {
background: #333;
}
}
}
</style>
+4
View File
@@ -0,0 +1,4 @@
import { createApp } from "vue";
import App from "./App.vue";
createApp(App).mount("#app");
+6
View File
@@ -0,0 +1,6 @@
/* eslint-disable */
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
+40
View File
@@ -0,0 +1,40 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": [
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules"
]
}