mirror of
https://github.com/typemill/typemill.git
synced 2025-07-29 18:30:18 +02:00
v2.3.0 fix image sizes after upload, add translations, update composer
This commit is contained in:
24
composer.lock
generated
24
composer.lock
generated
@@ -1335,16 +1335,16 @@
|
||||
},
|
||||
{
|
||||
"name": "slim/slim",
|
||||
"version": "4.12.0",
|
||||
"version": "4.13.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/slimphp/Slim.git",
|
||||
"reference": "e9e99c2b24398b967841c6c4c3048622cc7e2b18"
|
||||
"reference": "038fd5713d5a41636fdff0e8dcceedecdd17fc17"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/slimphp/Slim/zipball/e9e99c2b24398b967841c6c4c3048622cc7e2b18",
|
||||
"reference": "e9e99c2b24398b967841c6c4c3048622cc7e2b18",
|
||||
"url": "https://api.github.com/repos/slimphp/Slim/zipball/038fd5713d5a41636fdff0e8dcceedecdd17fc17",
|
||||
"reference": "038fd5713d5a41636fdff0e8dcceedecdd17fc17",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1353,7 +1353,7 @@
|
||||
"php": "^7.4 || ^8.0",
|
||||
"psr/container": "^1.0 || ^2.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"psr/http-message": "^1.1",
|
||||
"psr/http-message": "^1.1 || ^2.0",
|
||||
"psr/http-server-handler": "^1.0",
|
||||
"psr/http-server-middleware": "^1.0",
|
||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||
@@ -1361,19 +1361,19 @@
|
||||
"require-dev": {
|
||||
"adriansuter/php-autoload-override": "^1.4",
|
||||
"ext-simplexml": "*",
|
||||
"guzzlehttp/psr7": "^2.5",
|
||||
"guzzlehttp/psr7": "^2.6",
|
||||
"httpsoft/http-message": "^1.1",
|
||||
"httpsoft/http-server-request": "^1.1",
|
||||
"laminas/laminas-diactoros": "^2.17",
|
||||
"laminas/laminas-diactoros": "^2.17 || ^3",
|
||||
"nyholm/psr7": "^1.8",
|
||||
"nyholm/psr7-server": "^1.0",
|
||||
"phpspec/prophecy": "^1.17",
|
||||
"phpspec/prophecy-phpunit": "^2.0",
|
||||
"nyholm/psr7-server": "^1.1",
|
||||
"phpspec/prophecy": "^1.19",
|
||||
"phpspec/prophecy-phpunit": "^2.1",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"phpunit/phpunit": "^9.6",
|
||||
"slim/http": "^1.3",
|
||||
"slim/psr7": "^1.6",
|
||||
"squizlabs/php_codesniffer": "^3.7"
|
||||
"squizlabs/php_codesniffer": "^3.9"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-simplexml": "Needed to support XML format in BodyParsingMiddleware",
|
||||
@@ -1446,7 +1446,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-07-23T04:54:29+00:00"
|
||||
"time": "2024-03-03T21:25:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "slim/twig-view",
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 190 KiB |
Binary file not shown.
After Width: | Height: | Size: 167 KiB |
Binary file not shown.
After Width: | Height: | Size: 516 KiB |
Binary file not shown.
After Width: | Height: | Size: 450 KiB |
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
@@ -80,7 +80,7 @@
|
||||
|
||||
<div class="lg:w-1/2 lg:bg-white lg:text-black p-5 bg-teal-600 text-white border-b border-white content-center flex justify-center items-center">
|
||||
<div class="max-w-md content-center">
|
||||
<h2 class="text-4xl py-5">{{ translate('Welcome back') }}!</h2>
|
||||
<h2 class="text-4xl py-5">{{ translate('Welcome back') }}</h2>
|
||||
<p>{{ translate('Login to the author area or go to the') }} <a class="underline" href="{{ url_for('home')}}">{{ translate('homepage') }}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1045,7 +1045,7 @@ bloxeditor.component('definition-component', {
|
||||
<div class="flex mb-2" v-for="(description,ddindex) in element.descriptions">
|
||||
<svg class="icon icon-dots-two-vertical mt-3"><use xlink:href="#icon-dots-two-vertical"></use></svg>
|
||||
<textarea class="flex-grow p-2 focus:outline-none bg-stone-200 text-stone-900" :placeholder="description" v-html="element.descriptions[ddindex]" :disabled="disabled" @input="updatedescription($event, index, ddindex)" @keydown.13.prevent="enter" @blur="updateMarkdown"></textarea>
|
||||
<button title="delete description" class="text-white bg-stone-700 w-6 h-6 text-xs hover:bg-rose-500" @click.prevent="deleteItem($event,index,ddindex)">
|
||||
<button title="{{ $filters.translate('delete description') }}" class="text-white bg-stone-700 w-6 h-6 text-xs hover:bg-rose-500" @click.prevent="deleteItem($event,index,ddindex)">
|
||||
<svg class="icon icon-minus">
|
||||
<use xlink:href="#icon-minus"></use>
|
||||
</svg>
|
||||
@@ -1056,7 +1056,7 @@ bloxeditor.component('definition-component', {
|
||||
<use xlink:href="#icon-plus"></use>
|
||||
</svg>
|
||||
</button>
|
||||
<span class="text-sm">Add description</span>
|
||||
<span class="text-sm">{{ $filters.translate('Add description') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1458,9 +1458,9 @@ bloxeditor.component('image-component', {
|
||||
<div class="flex">
|
||||
<div class="imageupload relative w-1/2 border-r border-dotted border-stone-700">
|
||||
<input type="file" name="image" accept="image/*" class="opacity-0 w-full h-24 absolute cursor-pointer z-10" @change="onFileChange( $event )" />
|
||||
<p class="text-center p-6"><svg class="icon icon-upload"><use xlink:href="#icon-upload"></use></svg> drag a picture or click to select</p>
|
||||
<p class="text-center p-6"><svg class="icon icon-upload"><use xlink:href="#icon-upload"></use></svg> {{ $filters.translate('drag a picture or click to select') }}</p>
|
||||
</div>
|
||||
<button class="imageselect w-1/2 text-center p-6" @click.prevent="openmedialib()"><svg class="icon icon-image"><use xlink:href="#icon-image"></use></svg> select from medialib</button>
|
||||
<button class="imageselect w-1/2 text-center p-6" @click.prevent="openmedialib()"><svg class="icon icon-image"><use xlink:href="#icon-image"></use></svg> {{ $filters.translate('select from medialib') }}</button>
|
||||
</div>
|
||||
|
||||
<Transition name="initial" appear>
|
||||
@@ -1768,8 +1768,7 @@ bloxeditor.component('image-component', {
|
||||
if(imgattr != '')
|
||||
{
|
||||
imgmarkdown = imgmarkdown + '{' + imgattr.trim() + '}';
|
||||
}
|
||||
|
||||
}
|
||||
if(this.imglink != '')
|
||||
{
|
||||
if(this.imglink.length < 101)
|
||||
@@ -1781,7 +1780,6 @@ bloxeditor.component('image-component', {
|
||||
errors = this.$filters.translate('Maximum size of image link is 100 characters');
|
||||
}
|
||||
}
|
||||
|
||||
if(this.imgcaption != '')
|
||||
{
|
||||
if(this.imgcaption.length < 140)
|
||||
@@ -1793,7 +1791,6 @@ bloxeditor.component('image-component', {
|
||||
errors = this.$filters.translate('Maximum size of image caption is 140 characters');
|
||||
}
|
||||
}
|
||||
|
||||
if(errors)
|
||||
{
|
||||
eventBus.$emit('publishermessage', errors);
|
||||
@@ -1883,7 +1880,7 @@ bloxeditor.component('image-component', {
|
||||
eventBus.$emit('publishermessage', message);
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
self = this;
|
||||
|
||||
self.load = true;
|
||||
@@ -1897,7 +1894,7 @@ bloxeditor.component('image-component', {
|
||||
reader.onload = function(e) {
|
||||
|
||||
self.imgpreview = e.target.result;
|
||||
|
||||
|
||||
self.createmarkdown();
|
||||
|
||||
tmaxios.post('/api/v1/image',{
|
||||
@@ -1912,6 +1909,12 @@ bloxeditor.component('image-component', {
|
||||
|
||||
self.imgmeta = true;
|
||||
self.imgfile = response.data.name;
|
||||
|
||||
if(self.imgwidth > 820)
|
||||
{
|
||||
self.imgwidth = 820;
|
||||
self.calculateheight();
|
||||
}
|
||||
})
|
||||
.catch(function (error)
|
||||
{
|
||||
@@ -2115,7 +2118,7 @@ bloxeditor.component('file-component', {
|
||||
}
|
||||
else
|
||||
{
|
||||
errors = 'Maximum size of file-text is 100 characters';
|
||||
errors = this.$filters.translate('Maximum size of file-text is 100 characters');
|
||||
filemarkdown = '[]';
|
||||
}
|
||||
if(this.fileurl != '')
|
||||
@@ -2126,7 +2129,7 @@ bloxeditor.component('file-component', {
|
||||
}
|
||||
else
|
||||
{
|
||||
errors = 'Maximum size of file link is 100 characters';
|
||||
errors = this.$filters.translate('Maximum size of file link is 100 characters');
|
||||
}
|
||||
}
|
||||
if(this.fileextension != '')
|
||||
|
@@ -30,7 +30,7 @@ const medialib = {
|
||||
|
||||
<div v-if="showimages && totalPages > 1 && active == 'allImages'">
|
||||
<h3 class="border-b-2 border-stone-700 pt-6 pb-3">Pagination</h3>
|
||||
<ul class="w-full flex flex-wrap py-3">
|
||||
<ul class="w-full flex flex-wrap py-3 text-xs">
|
||||
<li v-for="num in totalPages" :key="num" class="py-1">
|
||||
<button
|
||||
@click="goToPage(num)"
|
||||
|
Reference in New Issue
Block a user