Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95dddd7da0 | |||
| 1a949ecdc6 | |||
| 2e6f1c207c | |||
| 6aa0fa9465 | |||
| 8677df0340 | |||
| 125f6ac619 | |||
| 89ecf5c529 | |||
| fa78d6057f | |||
| cfc28be898 | |||
| c8efd4f9db | |||
| ada4e53b46 |
@@ -0,0 +1,18 @@
|
|||||||
|
name: Check pull request source branch
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- edited
|
||||||
|
jobs:
|
||||||
|
check-branches:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check branches
|
||||||
|
run: |
|
||||||
|
if [ ${{ github.head_ref }} != "dev" ] && [ ${{ github.base_ref }} == "main" ]; then
|
||||||
|
echo "Merge requests to main branch are only allowed from dev branch. Please rebase your changes to dev branch."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
@@ -8,7 +8,7 @@ const InstallApp = (props: Props) => {
|
|||||||
const [isOpen, setIsOpen] = useState(true);
|
const [isOpen, setIsOpen] = useState(true);
|
||||||
|
|
||||||
return isOpen && !isPWA() ? (
|
return isOpen && !isPWA() ? (
|
||||||
<div className="fixed left-0 right-0 bottom-10 w-full">
|
<div className="fixed left-0 right-0 bottom-10 w-full px-5">
|
||||||
<div className="mx-auto w-fit p-2 flex justify-between gap-2 items-center border border-neutral-content rounded-xl bg-base-300 backdrop-blur-md bg-opacity-80 max-w-md">
|
<div className="mx-auto w-fit p-2 flex justify-between gap-2 items-center border border-neutral-content rounded-xl bg-base-300 backdrop-blur-md bg-opacity-80 max-w-md">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export const PostUserSchema = () => {
|
|||||||
password: z.string().min(8).max(2048).optional(),
|
password: z.string().min(8).max(2048).optional(),
|
||||||
email: emailEnabled
|
email: emailEnabled
|
||||||
? z.string().trim().email().toLowerCase()
|
? z.string().trim().email().toLowerCase()
|
||||||
: z.string().optional(),
|
: z.string().nullish(),
|
||||||
username: emailEnabled
|
username: emailEnabled
|
||||||
? z.string().optional()
|
? z.string().optional()
|
||||||
: z
|
: z
|
||||||
@@ -59,7 +59,7 @@ export const UpdateUserSchema = () => {
|
|||||||
name: z.string().trim().min(1).max(50).optional(),
|
name: z.string().trim().min(1).max(50).optional(),
|
||||||
email: emailEnabled
|
email: emailEnabled
|
||||||
? z.string().trim().email().toLowerCase()
|
? z.string().trim().email().toLowerCase()
|
||||||
: z.string().optional(),
|
: z.string().nullish(),
|
||||||
username: z
|
username: z
|
||||||
.string()
|
.string()
|
||||||
.trim()
|
.trim()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "linkwarden",
|
"name": "linkwarden",
|
||||||
"version": "v2.8.1",
|
"version": "v2.8.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/linkwarden/linkwarden.git",
|
"repository": "https://github.com/linkwarden/linkwarden.git",
|
||||||
"author": "Daniel31X13 <daniel31x13@gmail.com>",
|
"author": "Daniel31X13 <daniel31x13@gmail.com>",
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default function Account() {
|
|||||||
|
|
||||||
const emailSchema = z.string().trim().email().toLowerCase();
|
const emailSchema = z.string().trim().email().toLowerCase();
|
||||||
const emailValidation = emailSchema.safeParse(user.email || "");
|
const emailValidation = emailSchema.safeParse(user.email || "");
|
||||||
if (!emailValidation.success) {
|
if (emailEnabled && !emailValidation.success) {
|
||||||
return toast.error(t("email_invalid"));
|
return toast.error(t("email_invalid"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user