Skip to content

Commit

Permalink
feature(mindmap,desktop,documentation-website,history-website): repla…
Browse files Browse the repository at this point in the history
…ce assets (#1041)

fixes #1040
  • Loading branch information
Idrinth authored May 8, 2024
1 parent 277fc34 commit 6be23ed
Show file tree
Hide file tree
Showing 23 changed files with 54 additions and 158 deletions.
1 change: 0 additions & 1 deletion assets/favicon.svg

This file was deleted.

29 changes: 0 additions & 29 deletions assets/iab.svg

This file was deleted.

5 changes: 4 additions & 1 deletion desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
"url": "https://github.com/idrinth-api-bench/desktop.git"
},
"scripts": {
"build": "npm run drop-dist && npm run copy-assets && vue-tsc && vite build && node tools/fix-index.js && node tools/copy-starter.js",
"build": "npm run drop-dist && vue-tsc && vite build && node tools/fix-index.js && node tools/copy-starter.js",
"start": "npm run build && node dist/run.js start",
"package": "npm run build && node dist/run.js package",
"make": "npm run build && node dist/run.js make",
"drop-dist": "node tools/drop-dist.js",
"copy-assets": "node tools/copy-assets.js",
"postinstall": "npm run copy-assets"
"drop-dist": "node tools/drop-dist.js"
},
"dependencies": {
"vue": "^3.4.21"
"vue": "^3.4.21",
"@idrinth-api-bench/assets": "https://github.com/idrinth-api-bench/assets"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
Expand Down
2 changes: 1 addition & 1 deletion desktop/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<template>
<div>
<h1>@idrinth/api-bench</h1>
<img src="./assets/iab.svg" class="logo" alt="logo" />
<img src="@idrinth-api-bench/assets/iab.svg" class="logo" alt="logo" />
</div>
</template>

Expand Down
1 change: 1 addition & 0 deletions desktop/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
createApp,
} from 'vue';
import '@idrinth-api-bench/assets/colors.css';
import './style.css';
import App from './App.vue';

Expand Down
27 changes: 0 additions & 27 deletions desktop/tools/copy-assets.js

This file was deleted.

2 changes: 1 addition & 1 deletion documentation-website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./src/assets/favicon.svg"/>
<link rel="icon" type="image/svg+xml" href="@idrinth-api-bench/assets/favicon.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="A documentation site for the open-source benchmarking framework @idrinth/api-bench">
<title>@idrinth/api-bench</title>
Expand Down
4 changes: 4 additions & 0 deletions documentation-website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions documentation-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"start": "npm run build && npm run serve",
"dev": "irfbrgr && vite",
"build": "npm run assets && npm run drop-dist && npm run routes && npm run language && npm run contributors && vite build && irfbrgf",
"build": "npm run drop-dist && npm run routes && npm run language && npm run contributors && vite build && irfbrgf",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
"preview": "vite preview",
Expand All @@ -36,8 +36,7 @@
"drop-dist": "node tools/drop-dist.js",
"spellcheck": "itlfy dump && spellchecker",
"knip": "knip",
"lighthouse": "npm run build && start-server-and-test serve http://localhost:8080 'node tools/lighthouse-report.js'",
"assets": "node tools/copy-assets.js"
"lighthouse": "npm run build && start-server-and-test serve http://localhost:8080 'node tools/lighthouse-report.js'"
},
"dependencies": {
"@fontsource/roboto": "^5.0.12",
Expand All @@ -49,7 +48,8 @@
"react-router-dom": "^6.22.0",
"react-syntax-highlighter": "^15.5.0",
"the-new-css-reset": "^1.11.2",
"window": "^4.2.7"
"window": "^4.2.7",
"@idrinth-api-bench/assets": "https://github.com/idrinth-api-bench/assets"
},
"devDependencies": {
"@babel/plugin-syntax-import-attributes": "^7.24.1",
Expand Down
2 changes: 1 addition & 1 deletion documentation-website/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import pkg from '../../package.json' with {
type: 'json'
};
import IAB from '../assets/iab.svg';
import IAB from '@idrinth-api-bench/assets/iab.svg';
import DarkModeButton from './dark-mode-button.tsx';
import './header.scss';
import Lang from './lang.tsx';
Expand Down
28 changes: 0 additions & 28 deletions documentation-website/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
.light-mode {
--text-color: hsla(0deg 0% 15% / 100%);
--background-color: hsla(0deg 0% 85% / 100%);
--highlight-color: hsla(132deg 33% 29% / 100%);
--highlight-text: hsla(0deg 0% 100% / 100%);
--highlight-hover: hsla(120deg 77% 36% / 100%);
--background-loader: hsla(0deg 0% 0% / 5%);
--shadow: rgba(0 0 0 / 50%);
--background-offset: hsla(204deg 8% 76% / 100%);
--code-keyword: hsla(31deg 100% 40% / 100%);
--code-attribute: hsla(219deg 100% 40% / 100%);
--code-string: hsla(130deg 100% 40% / 100%);
--warning: darkorange;
}

.dark-mode {
--background-color: hsla(0deg 0% 15% / 100%);
--text-color: hsla(0deg 0% 85% / 100%);
--background-loader: hsla(0deg 0% 100% / 5%);
--highlight-color: hsla(120deg 77% 36% / 100%);
--highlight-hover: hsla(132deg 33% 29% / 100%);
--background-offset: hsla(0deg 0% 25% / 100%);
--shadow: rgba(255 255 255 / 50%);
--code-keyword: hsla(31deg 100% 60% / 100%);
--code-attribute: hsla(219deg 100% 60% / 100%);
--code-string: hsla(130deg 100% 60% / 100%);
}

* {
max-width: 100%;
box-sizing: border-box;
Expand Down
1 change: 1 addition & 0 deletions documentation-website/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import 'the-new-css-reset/css/reset.css';
import '@idrinth-api-bench/assets/colors.css';
import '@fontsource/roboto/400.css';
import './index.scss';
import {
Expand Down
2 changes: 1 addition & 1 deletion history-website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="@idrinth-api-bench/assets/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Svelte + TS</title>
</head>
Expand Down
5 changes: 5 additions & 0 deletions history-website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6be23ed

Please sign in to comment.