├── desktop-app ├── .gitignore ├── icon.ico ├── src │ ├── blender.otf │ └── main.rs ├── build.rs ├── Cargo.toml └── Cargo.lock ├── .gitignore ├── src ├── favicon.ico ├── main.tsx ├── Scroller.css ├── tailwind.css ├── index.html.mustache ├── utils.ts ├── App.tsx ├── time.ts ├── api.ts ├── Scroller.tsx └── App.css ├── .github ├── renovate.json └── workflows │ └── build-app.yml ├── tsconfig.json ├── README.md ├── package.json ├── LICENSE.md ├── tailwind.config.cjs ├── rollup.config.js └── pnpm-lock.yaml /desktop-app/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .output 3 | functions 4 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamburgess/tarkov-time/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /desktop-app/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamburgess/tarkov-time/HEAD/desktop-app/icon.ico -------------------------------------------------------------------------------- /desktop-app/src/blender.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamburgess/tarkov-time/HEAD/desktop-app/src/blender.otf -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- 1 | import { h, render } from 'preact'; 2 | import './tailwind.css' 3 | import { App } from './App'; 4 | 5 | render(, document.getElementById('root')!); 6 | -------------------------------------------------------------------------------- /desktop-app/build.rs: -------------------------------------------------------------------------------- 1 | extern crate winres; 2 | 3 | fn main() { 4 | if cfg!(target_os = "windows") { 5 | let mut res = winres::WindowsResource::new(); 6 | res.set_icon("icon.ico"); 7 | res.compile().unwrap(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Scroller.css: -------------------------------------------------------------------------------- 1 | .T { 2 | top: 0px; 3 | height: 40px; 4 | background: linear-gradient(180deg, rgba(33,33,33,1) 0%, rgba(33,33,33,0) 100%); 5 | } 6 | .B { 7 | bottom: 0px; 8 | height: 120px; 9 | background: linear-gradient(0deg, rgba(33,33,33,1) 0%, rgba(33,33,33,1) 50%, rgba(33,33,33,0) 100%); 10 | } 11 | -------------------------------------------------------------------------------- /desktop-app/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tarkov-time" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | druid = { git = "https://github.com/linebender/druid.git", rev = "0214404d" } 10 | 11 | [build-dependencies] 12 | embed-resource = "3.0.1" 13 | winres = "0.1.12" 14 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base", 4 | ":disableDependencyDashboard", 5 | "schedule:yearly" 6 | ], 7 | "rangeStrategy": "bump", 8 | "packageRules": [ 9 | { 10 | "packageNames": ["node"], 11 | "enabled": false 12 | }, 13 | { 14 | "matchPackagePatterns": ["*"], 15 | "groupName": "all dependencies", 16 | "separateMajorMinor": false 17 | } 18 | ], 19 | "prHourlyLimit": 999 20 | } 21 | -------------------------------------------------------------------------------- /src/tailwind.css: -------------------------------------------------------------------------------- 1 | /* tailwind base is large and we don't use most of the styles. */ 2 | /* @tailwind base; */ 3 | 4 | *, :after, :before { 5 | box-sizing: border-box; 6 | border: 0 solid #e5e7eb; 7 | } 8 | html, body { 9 | font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif; 10 | line-height: 1.5; 11 | margin: 0; 12 | } 13 | 14 | h1, h2 { 15 | margin: 0; 16 | } 17 | 18 | a { 19 | color: inherit; 20 | text-decoration: inherit; 21 | } 22 | 23 | @tailwind components; 24 | 25 | @tailwind utilities; 26 | -------------------------------------------------------------------------------- /src/index.html.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Real time to Tarkov's ingame time 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |