chore: merged branch dev to main

This commit is contained in:
oSumAtrIX 2023-06-25 16:46:09 +02:00
commit f9f1b2ebd0
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
4 changed files with 12 additions and 14 deletions

View File

@ -1,10 +1,6 @@
name: Deploy name: Deploy
on: on: [pull_request, push]
pull_request:
push:
branches:
- main
jobs: jobs:
deploy: deploy:

View File

@ -112,7 +112,7 @@
</svelte:fragment> </svelte:fragment>
<svelte:fragment slot="title">Settings</svelte:fragment> <svelte:fragment slot="title">Settings</svelte:fragment>
<svelte:fragment slot="description" <svelte:fragment slot="description"
>Configure the website's API. Defaults to ReVanced.</svelte:fragment >Configure the API for this website.</svelte:fragment
> >
<div id="settings-content"> <div id="settings-content">
<div class="input-wrapper"> <div class="input-wrapper">

View File

@ -85,6 +85,10 @@
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
border: 1px solid var(--grey-three); border: 1px solid var(--grey-three);
border-radius: 8px; border-radius: 8px;
&:hover {
background-color: var(--grey-two);
}
} }
a { a {
@ -146,6 +150,10 @@
.option { .option {
padding: 1rem; padding: 1rem;
&:hover {
background-color: var(--grey-two);
}
} }
/* thanks piknik */ /* thanks piknik */

View File

@ -1,15 +1,9 @@
export function friendlyName(text: string): string { export function friendlyName(text: string): string {
return text return text
.replace(/-/g, ' ') .replace(/-/g, ' ')
.replace(/revanced\/revanced/g, '') .replace(/revanced\/revanced/g, 'ReVanced')
.replace(/revanced/g, 'ReVanced') .replace(/revanced/g, 'ReVanced')
.replace(/\bcli\b/g, 'CLI') .replace(/\bcli\b/g, 'CLI')
.replace(/api/g, 'API') .replace(/api/g, 'API')
.replace(/microg/g, 'MicroG')
.replace(/hdr/g, 'HDR')
.replace(/sponsorblock/g, 'SponsorBlock')
.replace(/tiktok/g, 'TikTok')
.replace(/vr/g, 'VR')
.replace(/url/g, 'URL')
.replace(/(?:^|\s)\S/g, (x: string) => x.toUpperCase()); .replace(/(?:^|\s)\S/g, (x: string) => x.toUpperCase());
} }