Skip to content
Snippets Groups Projects
Verified Commit 0f69403c authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Moznost delsi zkratky

parent 291adaef
No related branches found
No related tags found
No related merge requests found
Pipeline #11324 passed
2.4.0
2.4.1
......@@ -5,7 +5,7 @@ use Data::Validate::URI qw(is_uri);
use Image::PNG::QRCode 'qrpng';
use Mojo::UserAgent;
use constant SHORTCUT => qr/^[a-z\d\-]{1,8}$/;
use constant SHORTCUT => qr/^[a-z\d\-]{1,32}$/;
sub redirect ($c) {
my $shortcut = $c->schema->resultset('Shortcut')->search({
......
......@@ -26,7 +26,7 @@ components:
id:
type: integer
readOnly: true
maxLength: 8
maxLength: 32
created:
type: string
description: Datum přidání
......
......@@ -74,3 +74,7 @@ from "log"
-- 6 up
alter table "shortcuts" add column "counter" integer not null default 0;
-- 7 up
alter table "shortcuts" alter column "shortcut" type varchar(32);
......@@ -82,7 +82,7 @@
</ui-app>
</nav>
<div id="App" class="container container--default py-8">
<div class="container container--default py-8">
<section>
<main>
<%= content %>
......
......@@ -15,7 +15,7 @@
<div class="form-field col-span-3">
<label class="form-field__label" for="shortcut">Zkratka</label>
<div class="form-field__wrapper form-field__wrapper--shadowed">
<input type="text" name="shortcut" class="text-input form-field__control w-40" size="8" maxlength="8" value="" placeholder="thc" v-model="shortcut.shortcut" @focus="formError=''"/>
<input type="text" name="shortcut" class="text-input form-field__control w-40" size="16" maxlength="32" value="" placeholder="thc" v-model="shortcut.shortcut" @focus="formError=''"/>
<button class="btn btn--grey-125 btn--hoveractive ml-4">
<div class="btn__body">Zkrátit</div>
</button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment