mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
chore: merged branch dev
to main
This commit is contained in:
commit
f9f1b2ebd0
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@ -1,10 +1,6 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on: [pull_request, push]
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -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">
|
||||||
|
@ -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 */
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user