mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 16:49:47 +03:00
Compare commits
418 Commits
drawio_ren
...
v25.05
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92cd11d105 | ||
|
|
13115ace84 | ||
|
|
73f9834e6f | ||
|
|
3afe855156 | ||
|
|
bfde896f0b | ||
|
|
1cdc0a7a3d | ||
|
|
d19b86640b | ||
|
|
2936ba609b | ||
|
|
573a2dd22a | ||
|
|
b55cc803d3 | ||
|
|
304ade418e | ||
|
|
997931c42f | ||
|
|
268e353431 | ||
|
|
b491b5fbca | ||
|
|
387c786768 | ||
|
|
2641586a6f | ||
|
|
6d2cd20e80 | ||
|
|
b0c574356a | ||
|
|
07e45a20e5 | ||
|
|
14056c69e6 | ||
|
|
fb9c840c46 | ||
|
|
5fba4a5399 | ||
|
|
c0b377050e | ||
|
|
f3efb6441d | ||
|
|
0cf313a21e | ||
|
|
26aadffb20 | ||
|
|
a5f48e3202 | ||
|
|
b0dda6e6a7 | ||
|
|
d4025d95e7 | ||
|
|
d6021f4d22 | ||
|
|
b9a3290731 | ||
|
|
48f235ea5a | ||
|
|
047771b9f4 | ||
|
|
b5375114d3 | ||
|
|
fc13e56cea | ||
|
|
77fc37ac25 | ||
|
|
3424351e84 | ||
|
|
606f9d92d0 | ||
|
|
a5e25abb9c | ||
|
|
b310e87e4c | ||
|
|
425baf9d6e | ||
|
|
825c369ad9 | ||
|
|
10bab70438 | ||
|
|
350e0b281b | ||
|
|
08805ea3c8 | ||
|
|
9441e32c69 | ||
|
|
530fc37067 | ||
|
|
369e499dce | ||
|
|
655815de6d | ||
|
|
457adc1fee | ||
|
|
e86a90967e | ||
|
|
5d08f7cf14 | ||
|
|
8744eb2d62 | ||
|
|
d8383cfa80 | ||
|
|
4626278447 | ||
|
|
c61af9c22b | ||
|
|
72521d0906 | ||
|
|
7e44b195c5 | ||
|
|
5b45eac5e1 | ||
|
|
c1d30341e7 | ||
|
|
80d2b4913b | ||
|
|
3f473528b1 | ||
|
|
d0dcd4f61b | ||
|
|
bde66a1396 | ||
|
|
4de5a2d9bf | ||
|
|
27bf4299cf | ||
|
|
164f01bb25 | ||
|
|
f563a005f5 | ||
|
|
a14d8e30cc | ||
|
|
a9194ffb63 | ||
|
|
2f9c1b7127 | ||
|
|
bbea76668b | ||
|
|
becc630acf | ||
|
|
4ac8ecad6b | ||
|
|
903e88c700 | ||
|
|
ed96aa820e | ||
|
|
63ec079b7b | ||
|
|
d485fcb3db | ||
|
|
0f895668a4 | ||
|
|
6c577ac3bf | ||
|
|
31cc2423d2 | ||
|
|
c9ed32e518 | ||
|
|
6b4c3a0969 | ||
|
|
2dad92d1bd | ||
|
|
c1fb7ab7dc | ||
|
|
98315f3899 | ||
|
|
8c82aaabd6 | ||
|
|
ce9b536b78 | ||
|
|
d9c50e5bc1 | ||
|
|
bf075f7dd8 | ||
|
|
a4fd673285 | ||
|
|
e794c977bc | ||
|
|
0b088ef1d3 | ||
|
|
bf6a6af683 | ||
|
|
914790fd99 | ||
|
|
edb0c6a9e8 | ||
|
|
84049de696 | ||
|
|
da0531e63b | ||
|
|
421dc75f4e | ||
|
|
8ae91df038 | ||
|
|
64b41dd626 | ||
|
|
ebd6e4d3a2 | ||
|
|
80374aea5c | ||
|
|
2ac9efae7d | ||
|
|
a11d565ba4 | ||
|
|
1fdf854ea7 | ||
|
|
e9c9792cb9 | ||
|
|
5ae524c25a | ||
|
|
0d7287fc8b | ||
|
|
e77c96f6b7 | ||
|
|
9b8a10dd3a | ||
|
|
49200ca5ce | ||
|
|
34aa4dbf10 | ||
|
|
5ee79d16c9 | ||
|
|
a1ea4006e0 | ||
|
|
9078188939 | ||
|
|
ed0aad1a7a | ||
|
|
5c59cfb020 | ||
|
|
3ca15ad68a | ||
|
|
60014989f5 | ||
|
|
57b10f195e | ||
|
|
b1e95eb39f | ||
|
|
b3da77b8f9 | ||
|
|
1a345b74bb | ||
|
|
8ffc3a4abf | ||
|
|
7233c1c7b2 | ||
|
|
1309a01131 | ||
|
|
0333185b6d | ||
|
|
83f89f64e8 | ||
|
|
11a1a6fb16 | ||
|
|
882c609296 | ||
|
|
176a0dcd59 | ||
|
|
94b0f70bfa | ||
|
|
08b2a77d41 | ||
|
|
3e8e9a23cf | ||
|
|
58b83b64c8 | ||
|
|
dfe4cde6ee | ||
|
|
d11144d9e2 | ||
|
|
f96b0ea5f3 | ||
|
|
815f8d79ed | ||
|
|
b62dab32e0 | ||
|
|
262f863981 | ||
|
|
a4c94390a1 | ||
|
|
53f3cca85d | ||
|
|
ed08bbcecc | ||
|
|
de97ebf9b7 | ||
|
|
f492a660a8 | ||
|
|
09436836a5 | ||
|
|
bb455d7788 | ||
|
|
009212ab80 | ||
|
|
ba9cb591c8 | ||
|
|
d00ac2f34e | ||
|
|
bd4dc6d463 | ||
|
|
d91180a909 | ||
|
|
bc2913a5cb | ||
|
|
4802394562 | ||
|
|
1755556468 | ||
|
|
01cdbdb7ae | ||
|
|
fc8bbf3eab | ||
|
|
3cdab19319 | ||
|
|
5661d20e87 | ||
|
|
91f80123e8 | ||
|
|
7a0636d0f8 | ||
|
|
0fe5bdfbac | ||
|
|
f88687e977 | ||
|
|
68d437d05b | ||
|
|
1e56aaea04 | ||
|
|
dab170a6fe | ||
|
|
a8de717d9b | ||
|
|
78fe95b6fc | ||
|
|
e0c24e41aa | ||
|
|
fa8553839b | ||
|
|
b8fcefc794 | ||
|
|
88bcb68fcb | ||
|
|
7c000553ae | ||
|
|
391fa35c80 | ||
|
|
c6773a8c9f | ||
|
|
9b226e7d39 | ||
|
|
9865446267 | ||
|
|
926abbe776 | ||
|
|
4fabef3a57 | ||
|
|
5ef4cd80c3 | ||
|
|
e01f23583f | ||
|
|
7792cb3915 | ||
|
|
be26253a18 | ||
|
|
1bdd1f8189 | ||
|
|
fa62c79b17 | ||
|
|
d7d8fa1e5b | ||
|
|
18562f1e10 | ||
|
|
86090a694f | ||
|
|
1ee8287c73 | ||
|
|
8eb98cd591 | ||
|
|
0f9ba21b05 | ||
|
|
834f8e7046 | ||
|
|
32e3399334 | ||
|
|
2d8698a218 | ||
|
|
454fb883a2 | ||
|
|
6f4a6ab8ea | ||
|
|
9c4b6f36f1 | ||
|
|
78886b1e67 | ||
|
|
d9debaf032 | ||
|
|
d4360d6347 | ||
|
|
175b1785c0 | ||
|
|
c8740c0171 | ||
|
|
91ee895a74 | ||
|
|
a045e46571 | ||
|
|
44eaa65c3b | ||
|
|
0a22af7b14 | ||
|
|
b54702ab08 | ||
|
|
c4fdcfc5d1 | ||
|
|
cb8117e8df | ||
|
|
5a218d5056 | ||
|
|
8dbc5cf9c6 | ||
|
|
71e81615a3 | ||
|
|
611d37da04 | ||
|
|
0e799a3857 | ||
|
|
b91d6e2bfa | ||
|
|
ea16ad7e94 | ||
|
|
ba6eb54552 | ||
|
|
f705e7683b | ||
|
|
dc996adb20 | ||
|
|
a64c638ccc | ||
|
|
359c067279 | ||
|
|
66a746e297 | ||
|
|
a4d43ee24b | ||
|
|
f7793a70a9 | ||
|
|
ceba3d31fb | ||
|
|
eecc08edde | ||
|
|
eb19aadc75 | ||
|
|
06c81e69b9 | ||
|
|
3dc3d4a639 | ||
|
|
94c59c1e3d | ||
|
|
4d2205853a | ||
|
|
751772b87a | ||
|
|
76e30869e1 | ||
|
|
3edc9fe9eb | ||
|
|
616c62703e | ||
|
|
ecd56917e7 | ||
|
|
e22c9cae91 | ||
|
|
29ddb6e1b9 | ||
|
|
2ff90e2ff0 | ||
|
|
04ecc128a2 | ||
|
|
87d1d3423b | ||
|
|
4818192a2a | ||
|
|
965dd97f54 | ||
|
|
195b74926c | ||
|
|
2120db12b2 | ||
|
|
ed563fef28 | ||
|
|
0d31a8e3f1 | ||
|
|
b8354b974b | ||
|
|
034c1e289d | ||
|
|
f31605a3de | ||
|
|
e7cc75c74d | ||
|
|
4b79d5e4e8 | ||
|
|
34854915b3 | ||
|
|
af6f34b529 | ||
|
|
fb82a2b896 | ||
|
|
5b464938b6 | ||
|
|
81f954890d | ||
|
|
0e2bbcec62 | ||
|
|
fdd339f525 | ||
|
|
8cf7d6a83d | ||
|
|
58a5008718 | ||
|
|
c44a8df55d | ||
|
|
ff1494c519 | ||
|
|
b8ce8fd852 | ||
|
|
75e7454a5f | ||
|
|
2558ea8931 | ||
|
|
ac0f47a4b2 | ||
|
|
4f16129869 | ||
|
|
64a8037fdd | ||
|
|
7502ba1bc8 | ||
|
|
33a04697ef | ||
|
|
b70a5c0cdb | ||
|
|
9443ae9f40 | ||
|
|
220c2a4102 | ||
|
|
e9914eb301 | ||
|
|
934512d09c | ||
|
|
9102c90986 | ||
|
|
c3e74219c4 | ||
|
|
13c9d7bc2d | ||
|
|
119b539586 | ||
|
|
29a5c180f0 | ||
|
|
7906602291 | ||
|
|
6dafe773ff | ||
|
|
25bc28a1be | ||
|
|
4c561c7fa0 | ||
|
|
95b3e78573 | ||
|
|
63a345bc93 | ||
|
|
e093a172cb | ||
|
|
4b01f8934b | ||
|
|
bc116b45b5 | ||
|
|
a059960b9e | ||
|
|
7770966fed | ||
|
|
d7adcf6c69 | ||
|
|
04a364dcc3 | ||
|
|
db83ac7eaa | ||
|
|
3ca9dddf61 | ||
|
|
bf74f53ca7 | ||
|
|
9d67efb4a4 | ||
|
|
3a39b9f440 | ||
|
|
27f7aab375 | ||
|
|
337da0c467 | ||
|
|
f56b3560c4 | ||
|
|
02dfe11ce6 | ||
|
|
83d06beb70 | ||
|
|
a8cfc059c8 | ||
|
|
1614b2bab0 | ||
|
|
4bdec0d214 | ||
|
|
6a7d7e7c2b | ||
|
|
30d4674657 | ||
|
|
9f961f95f8 | ||
|
|
bab99a26ec | ||
|
|
9a7fecd269 | ||
|
|
a8dc0d449b | ||
|
|
a0381f76bf | ||
|
|
6102f66daa | ||
|
|
c6134d162d | ||
|
|
2046f9b9de | ||
|
|
ac3ba594a4 | ||
|
|
22df25a480 | ||
|
|
8b30c7f02e | ||
|
|
757cdddc7c | ||
|
|
df95e99680 | ||
|
|
5a6d544db7 | ||
|
|
16117d329c | ||
|
|
e90da18ada | ||
|
|
a08d80e1cc | ||
|
|
6258175922 | ||
|
|
15736777a0 | ||
|
|
75915e8a94 | ||
|
|
9bde0ae4ea | ||
|
|
0c802d1f86 | ||
|
|
b7a96c6466 | ||
|
|
4b645a82c7 | ||
|
|
d599b77b6f | ||
|
|
26e93dc8c1 | ||
|
|
a4c9a8491b | ||
|
|
70ee636d87 | ||
|
|
b35f6dbb03 | ||
|
|
67d9e24d8f | ||
|
|
3903fda6ca | ||
|
|
441e46ebaa | ||
|
|
1f4260f359 | ||
|
|
dc0bf8ad4e | ||
|
|
102e326e6a | ||
|
|
2b25bf6f3b | ||
|
|
f93280696d | ||
|
|
1787391b07 | ||
|
|
a74a8ee483 | ||
|
|
7fa5405cb7 | ||
|
|
6725ddcc41 | ||
|
|
bce941db3f | ||
|
|
6d926048ec | ||
|
|
5335c973b4 | ||
|
|
15c3e5c96e | ||
|
|
a5d5904969 | ||
|
|
598758b991 | ||
|
|
9926e23bc8 | ||
|
|
5d3264bc63 | ||
|
|
d71f819f95 | ||
|
|
ee13509760 | ||
|
|
82d7bb1f32 | ||
|
|
cdfda508d8 | ||
|
|
da941e584f | ||
|
|
65874d7b96 | ||
|
|
ac9b8f405c | ||
|
|
8d1419a12e | ||
|
|
04f7a7d301 | ||
|
|
c10d2a1493 | ||
|
|
97bbf79ffd | ||
|
|
f7b01ae53d | ||
|
|
d704e1dbba | ||
|
|
ef2ff5e093 | ||
|
|
7caed3b0db | ||
|
|
45641d0754 | ||
|
|
4b1d08ba99 | ||
|
|
160fa99ba4 | ||
|
|
d2a5ab49ed | ||
|
|
c6404d8917 | ||
|
|
7113807f12 | ||
|
|
be711215e8 | ||
|
|
7e3b404240 | ||
|
|
e86901ca20 | ||
|
|
bdfa61c8b2 | ||
|
|
2cc36787f5 | ||
|
|
448ac61b48 | ||
|
|
753f6394f7 | ||
|
|
b1faf65934 | ||
|
|
09f478bd74 | ||
|
|
a0497feddd | ||
|
|
789693bde9 | ||
|
|
1fe933e4ea | ||
|
|
724b4b5a70 | ||
|
|
1778a56146 | ||
|
|
744865fcb2 | ||
|
|
7f8c8b448d | ||
|
|
a67c53826d | ||
|
|
14b131e850 | ||
|
|
9b55a52b85 | ||
|
|
db1d10e80f | ||
|
|
1be576966f | ||
|
|
b97e792c5f | ||
|
|
8dec674cc3 | ||
|
|
f784c03746 | ||
|
|
148e172fe8 | ||
|
|
56ae86646f | ||
|
|
1d2b6fdfa2 | ||
|
|
4fc75beed4 | ||
|
|
3b3bc0c4bf | ||
|
|
910faab88e | ||
|
|
f184d763ad | ||
|
|
a91d42634d | ||
|
|
f517ef3616 | ||
|
|
e99507ddcf | ||
|
|
d2cacf1945 | ||
|
|
448ac1405b | ||
|
|
6ad21ce885 |
2
.github/translators.txt
vendored
2
.github/translators.txt
vendored
@@ -487,5 +487,3 @@ jellium :: French
|
||||
Qxlkdr :: Swedish
|
||||
Hari (muhhari) :: Indonesian
|
||||
仙君御 (xjy) :: Chinese Simplified
|
||||
TapioM :: Finnish
|
||||
lingb58 :: Chinese Traditional
|
||||
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -8,10 +8,10 @@ Homestead.yaml
|
||||
.idea
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/public/dist
|
||||
/public/dist/*.map
|
||||
/public/plugins
|
||||
/public/css
|
||||
/public/js
|
||||
/public/css/*.map
|
||||
/public/js/*.map
|
||||
/public/bower
|
||||
/public/build/
|
||||
/public/favicon.ico
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Exceptions;
|
||||
|
||||
class DrawioPngReaderException extends \Exception
|
||||
{
|
||||
}
|
||||
@@ -160,9 +160,7 @@ class SearchIndex
|
||||
/** @var DOMNode $child */
|
||||
foreach ($doc->getBodyChildren() as $child) {
|
||||
$nodeName = $child->nodeName;
|
||||
$text = trim($child->textContent);
|
||||
$text = str_replace("\u{00A0}", ' ', $text);
|
||||
$termCounts = $this->textToTermCountMap($text);
|
||||
$termCounts = $this->textToTermCountMap(trim($child->textContent));
|
||||
foreach ($termCounts as $term => $count) {
|
||||
$scoreChange = $count * ($elementScoreAdjustmentMap[$nodeName] ?? 1);
|
||||
$scoresByTerm[$term] = ($scoresByTerm[$term] ?? 0) + $scoreChange;
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace BookStack\Uploads;
|
||||
|
||||
use BookStack\Exceptions\DrawioPngReaderException;
|
||||
|
||||
/**
|
||||
* Reads the PNG file format: https://www.w3.org/TR/2003/REC-PNG-20031110/
|
||||
* So that it can extract embedded drawing data for alternative use.
|
||||
*/
|
||||
class DrawioPngReader
|
||||
{
|
||||
/**
|
||||
* @param resource $fileStream
|
||||
*/
|
||||
public function __construct(
|
||||
protected $fileStream
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws DrawioPngReaderException
|
||||
*/
|
||||
public function extractDrawing(): string
|
||||
{
|
||||
$signature = fread($this->fileStream, 8);
|
||||
$pngSignature = "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A";
|
||||
if ($signature !== $pngSignature) {
|
||||
throw new DrawioPngReaderException('File does not appear to be a valid PNG file');
|
||||
}
|
||||
|
||||
$offset = 8;
|
||||
$searching = true;
|
||||
|
||||
while ($searching) {
|
||||
fseek($this->fileStream, $offset);
|
||||
|
||||
$lengthBytes = $this->readData(4);
|
||||
$chunkTypeBytes = $this->readData(4);
|
||||
$length = unpack('Nvalue', $lengthBytes)['value'];
|
||||
|
||||
if ($chunkTypeBytes === 'tEXt') {
|
||||
fseek($this->fileStream, $offset + 8);
|
||||
$data = $this->readData($length);
|
||||
$crc = $this->readData(4);
|
||||
$drawingData = $this->readTextForDrawing($data);
|
||||
if ($drawingData !== null) {
|
||||
$crcResult = $this->calculateCrc($chunkTypeBytes . $data);
|
||||
if ($crc !== $crcResult) {
|
||||
throw new DrawioPngReaderException('Drawing data withing PNG file appears to be corrupted');
|
||||
}
|
||||
return $drawingData;
|
||||
}
|
||||
} else if ($chunkTypeBytes === 'IEND') {
|
||||
$searching = false;
|
||||
}
|
||||
|
||||
$offset += 12 + $length; // 12 = length + type + crc bytes
|
||||
}
|
||||
|
||||
throw new DrawioPngReaderException('Unable to find drawing data within PNG file');
|
||||
}
|
||||
|
||||
protected function readTextForDrawing(string $data): ?string
|
||||
{
|
||||
// Check the keyword is mxfile to ensure we're getting the right data
|
||||
if (!str_starts_with($data, "mxfile\u{0}")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Extract & cleanup the drawing text
|
||||
$drawingText = substr($data, 7);
|
||||
return urldecode($drawingText);
|
||||
}
|
||||
|
||||
protected function readData(int $length): string
|
||||
{
|
||||
$bytes = fread($this->fileStream, $length);
|
||||
if ($bytes === false || strlen($bytes) < $length) {
|
||||
throw new DrawioPngReaderException('Unable to find drawing data within PNG file');
|
||||
}
|
||||
return $bytes;
|
||||
}
|
||||
|
||||
protected function getCrcTable(): array
|
||||
{
|
||||
$table = [];
|
||||
|
||||
for ($n = 0; $n < 256; $n++) {
|
||||
$c = $n;
|
||||
for ($k = 0; $k < 8; $k++) {
|
||||
if ($c & 1) {
|
||||
$c = 0xedb88320 ^ ($c >> 1);
|
||||
} else {
|
||||
$c = $c >> 1;
|
||||
}
|
||||
}
|
||||
$table[$n] = $c;
|
||||
}
|
||||
|
||||
return $table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate a CRC for the given bytes following:
|
||||
* https://www.w3.org/TR/2003/REC-PNG-20031110/#D-CRCAppendix
|
||||
*/
|
||||
protected function calculateCrc(string $bytes): string
|
||||
{
|
||||
$table = $this->getCrcTable();
|
||||
|
||||
$length = strlen($bytes);
|
||||
$c = 0xffffffff;
|
||||
|
||||
for ($n = 0; $n < $length; $n++) {
|
||||
$tableIndex = ($c ^ ord($bytes[$n])) & 0xff;
|
||||
$c = $table[$tableIndex] ^ ($c >> 8);
|
||||
}
|
||||
|
||||
return pack('N', $c ^ 0xffffffff);
|
||||
}
|
||||
}
|
||||
194
composer.lock
generated
194
composer.lock
generated
@@ -62,16 +62,16 @@
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.344.6",
|
||||
"version": "3.343.22",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-php.git",
|
||||
"reference": "eb0bc621472592545539329499961a15a3f9f6dc"
|
||||
"reference": "174cc187df3bde52c21e9c00a4e99610a08732a3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/eb0bc621472592545539329499961a15a3f9f6dc",
|
||||
"reference": "eb0bc621472592545539329499961a15a3f9f6dc",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/174cc187df3bde52c21e9c00a4e99610a08732a3",
|
||||
"reference": "174cc187df3bde52c21e9c00a4e99610a08732a3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -153,9 +153,9 @@
|
||||
"support": {
|
||||
"forum": "https://github.com/aws/aws-sdk-php/discussions",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues",
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.344.6"
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.343.22"
|
||||
},
|
||||
"time": "2025-06-12T18:03:59+00:00"
|
||||
"time": "2025-05-30T18:11:02+00:00"
|
||||
},
|
||||
{
|
||||
"name": "bacon/bacon-qr-code",
|
||||
@@ -1740,16 +1740,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v11.45.1",
|
||||
"version": "v11.45.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "b09ba32795b8e71df10856a2694706663984a239"
|
||||
"reference": "d0730deb427632004d24801be7ca1ed2c10fbc4e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/b09ba32795b8e71df10856a2694706663984a239",
|
||||
"reference": "b09ba32795b8e71df10856a2694706663984a239",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/d0730deb427632004d24801be7ca1ed2c10fbc4e",
|
||||
"reference": "d0730deb427632004d24801be7ca1ed2c10fbc4e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1951,7 +1951,7 @@
|
||||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2025-06-03T14:01:40+00:00"
|
||||
"time": "2025-05-20T15:15:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/prompts",
|
||||
@@ -3285,16 +3285,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "3.10.0",
|
||||
"version": "3.9.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CarbonPHP/carbon.git",
|
||||
"reference": "c1397390dd0a7e0f11660f0ae20f753d88c1f3d9"
|
||||
"reference": "ced71f79398ece168e24f7f7710462f462310d4d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/c1397390dd0a7e0f11660f0ae20f753d88c1f3d9",
|
||||
"reference": "c1397390dd0a7e0f11660f0ae20f753d88c1f3d9",
|
||||
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/ced71f79398ece168e24f7f7710462f462310d4d",
|
||||
"reference": "ced71f79398ece168e24f7f7710462f462310d4d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3302,9 +3302,9 @@
|
||||
"ext-json": "*",
|
||||
"php": "^8.1",
|
||||
"psr/clock": "^1.0",
|
||||
"symfony/clock": "^6.3.12 || ^7.0",
|
||||
"symfony/clock": "^6.3 || ^7.0",
|
||||
"symfony/polyfill-mbstring": "^1.0",
|
||||
"symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0"
|
||||
"symfony/translation": "^4.4.18 || ^5.2.1|| ^6.0 || ^7.0"
|
||||
},
|
||||
"provide": {
|
||||
"psr/clock-implementation": "1.0"
|
||||
@@ -3312,13 +3312,14 @@
|
||||
"require-dev": {
|
||||
"doctrine/dbal": "^3.6.3 || ^4.0",
|
||||
"doctrine/orm": "^2.15.2 || ^3.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.75.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.57.2",
|
||||
"kylekatarnls/multi-tester": "^2.5.3",
|
||||
"ondrejmirtes/better-reflection": "^6.25.0.4",
|
||||
"phpmd/phpmd": "^2.15.0",
|
||||
"phpstan/extension-installer": "^1.4.3",
|
||||
"phpstan/phpstan": "^2.1.17",
|
||||
"phpunit/phpunit": "^10.5.46",
|
||||
"squizlabs/php_codesniffer": "^3.13.0"
|
||||
"phpstan/extension-installer": "^1.3.1",
|
||||
"phpstan/phpstan": "^1.11.2",
|
||||
"phpunit/phpunit": "^10.5.20",
|
||||
"squizlabs/php_codesniffer": "^3.9.0"
|
||||
},
|
||||
"bin": [
|
||||
"bin/carbon"
|
||||
@@ -3386,7 +3387,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-12T10:24:28+00:00"
|
||||
"time": "2025-05-01T19:51:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nette/schema",
|
||||
@@ -3452,16 +3453,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nette/utils",
|
||||
"version": "v4.0.7",
|
||||
"version": "v4.0.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nette/utils.git",
|
||||
"reference": "e67c4061eb40b9c113b218214e42cb5a0dda28f2"
|
||||
"reference": "ce708655043c7050eb050df361c5e313cf708309"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/e67c4061eb40b9c113b218214e42cb5a0dda28f2",
|
||||
"reference": "e67c4061eb40b9c113b218214e42cb5a0dda28f2",
|
||||
"url": "https://api.github.com/repos/nette/utils/zipball/ce708655043c7050eb050df361c5e313cf708309",
|
||||
"reference": "ce708655043c7050eb050df361c5e313cf708309",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3532,9 +3533,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nette/utils/issues",
|
||||
"source": "https://github.com/nette/utils/tree/v4.0.7"
|
||||
"source": "https://github.com/nette/utils/tree/v4.0.6"
|
||||
},
|
||||
"time": "2025-06-03T04:55:08+00:00"
|
||||
"time": "2025-03-30T21:06:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
@@ -4774,20 +4775,20 @@
|
||||
},
|
||||
{
|
||||
"name": "ramsey/uuid",
|
||||
"version": "4.8.1",
|
||||
"version": "4.7.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ramsey/uuid.git",
|
||||
"reference": "fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28"
|
||||
"reference": "91039bc1faa45ba123c4328958e620d382ec7088"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ramsey/uuid/zipball/fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28",
|
||||
"reference": "fdf4dd4e2ff1813111bd0ad58d7a1ddbb5b56c28",
|
||||
"url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088",
|
||||
"reference": "91039bc1faa45ba123c4328958e620d382ec7088",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13",
|
||||
"brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12",
|
||||
"ext-json": "*",
|
||||
"php": "^8.0",
|
||||
"ramsey/collection": "^1.2 || ^2.0"
|
||||
@@ -4796,23 +4797,26 @@
|
||||
"rhumsaa/uuid": "self.version"
|
||||
},
|
||||
"require-dev": {
|
||||
"captainhook/captainhook": "^5.25",
|
||||
"captainhook/captainhook": "^5.10",
|
||||
"captainhook/plugin-composer": "^5.3",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||
"ergebnis/composer-normalize": "^2.47",
|
||||
"mockery/mockery": "^1.6",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
||||
"doctrine/annotations": "^1.8",
|
||||
"ergebnis/composer-normalize": "^2.15",
|
||||
"mockery/mockery": "^1.3",
|
||||
"paragonie/random-lib": "^2",
|
||||
"php-mock/php-mock": "^2.6",
|
||||
"php-mock/php-mock-mockery": "^1.5",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.4.0",
|
||||
"phpbench/phpbench": "^1.2.14",
|
||||
"phpstan/extension-installer": "^1.4",
|
||||
"phpstan/phpstan": "^2.1",
|
||||
"phpstan/phpstan-mockery": "^2.0",
|
||||
"phpstan/phpstan-phpunit": "^2.0",
|
||||
"phpunit/phpunit": "^9.6",
|
||||
"slevomat/coding-standard": "^8.18",
|
||||
"squizlabs/php_codesniffer": "^3.13"
|
||||
"php-mock/php-mock": "^2.2",
|
||||
"php-mock/php-mock-mockery": "^1.3",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.1",
|
||||
"phpbench/phpbench": "^1.0",
|
||||
"phpstan/extension-installer": "^1.1",
|
||||
"phpstan/phpstan": "^1.8",
|
||||
"phpstan/phpstan-mockery": "^1.1",
|
||||
"phpstan/phpstan-phpunit": "^1.1",
|
||||
"phpunit/phpunit": "^8.5 || ^9",
|
||||
"ramsey/composer-repl": "^1.4",
|
||||
"slevomat/coding-standard": "^8.4",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"vimeo/psalm": "^4.9"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.",
|
||||
@@ -4847,9 +4851,19 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/ramsey/uuid/issues",
|
||||
"source": "https://github.com/ramsey/uuid/tree/4.8.1"
|
||||
"source": "https://github.com/ramsey/uuid/tree/4.7.6"
|
||||
},
|
||||
"time": "2025-06-01T06:28:46+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/ramsey",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/ramsey/uuid",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-04-27T21:32:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "robrichards/xmlseclibs",
|
||||
@@ -7892,16 +7906,16 @@
|
||||
},
|
||||
{
|
||||
"name": "filp/whoops",
|
||||
"version": "2.18.2",
|
||||
"version": "2.18.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filp/whoops.git",
|
||||
"reference": "89dabca1490bc77dbcab41c2b20968c7e44bf7c3"
|
||||
"reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filp/whoops/zipball/89dabca1490bc77dbcab41c2b20968c7e44bf7c3",
|
||||
"reference": "89dabca1490bc77dbcab41c2b20968c7e44bf7c3",
|
||||
"url": "https://api.github.com/repos/filp/whoops/zipball/a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
|
||||
"reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7951,7 +7965,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/filp/whoops/issues",
|
||||
"source": "https://github.com/filp/whoops/tree/2.18.2"
|
||||
"source": "https://github.com/filp/whoops/tree/2.18.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -7959,7 +7973,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-11T20:42:19+00:00"
|
||||
"time": "2025-03-15T12:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "hamcrest/hamcrest-php",
|
||||
@@ -8131,16 +8145,16 @@
|
||||
},
|
||||
{
|
||||
"name": "larastan/larastan",
|
||||
"version": "v3.4.2",
|
||||
"version": "v3.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/larastan/larastan.git",
|
||||
"reference": "36706736a0c51d3337478fab9c919d78d2e03404"
|
||||
"reference": "1042fa0c2ee490bb6da7381f3323f7292ad68222"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/larastan/larastan/zipball/36706736a0c51d3337478fab9c919d78d2e03404",
|
||||
"reference": "36706736a0c51d3337478fab9c919d78d2e03404",
|
||||
"url": "https://api.github.com/repos/larastan/larastan/zipball/1042fa0c2ee490bb6da7381f3323f7292ad68222",
|
||||
"reference": "1042fa0c2ee490bb6da7381f3323f7292ad68222",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -8208,7 +8222,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/larastan/larastan/issues",
|
||||
"source": "https://github.com/larastan/larastan/tree/v3.4.2"
|
||||
"source": "https://github.com/larastan/larastan/tree/v3.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -8216,7 +8230,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-10T09:34:58+00:00"
|
||||
"time": "2025-04-22T09:44:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mockery/mockery",
|
||||
@@ -8363,23 +8377,23 @@
|
||||
},
|
||||
{
|
||||
"name": "nunomaduro/collision",
|
||||
"version": "v8.8.1",
|
||||
"version": "v8.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nunomaduro/collision.git",
|
||||
"reference": "44ccb82e3e21efb5446748d2a3c81a030ac22bd5"
|
||||
"reference": "4cf9f3b47afff38b139fb79ce54fc71799022ce8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nunomaduro/collision/zipball/44ccb82e3e21efb5446748d2a3c81a030ac22bd5",
|
||||
"reference": "44ccb82e3e21efb5446748d2a3c81a030ac22bd5",
|
||||
"url": "https://api.github.com/repos/nunomaduro/collision/zipball/4cf9f3b47afff38b139fb79ce54fc71799022ce8",
|
||||
"reference": "4cf9f3b47afff38b139fb79ce54fc71799022ce8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"filp/whoops": "^2.18.1",
|
||||
"nunomaduro/termwind": "^2.3.1",
|
||||
"filp/whoops": "^2.18.0",
|
||||
"nunomaduro/termwind": "^2.3.0",
|
||||
"php": "^8.2.0",
|
||||
"symfony/console": "^7.3.0"
|
||||
"symfony/console": "^7.2.5"
|
||||
},
|
||||
"conflict": {
|
||||
"laravel/framework": "<11.44.2 || >=13.0.0",
|
||||
@@ -8387,15 +8401,15 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"brianium/paratest": "^7.8.3",
|
||||
"larastan/larastan": "^3.4.2",
|
||||
"laravel/framework": "^11.44.2 || ^12.18",
|
||||
"laravel/pint": "^1.22.1",
|
||||
"laravel/sail": "^1.43.1",
|
||||
"laravel/sanctum": "^4.1.1",
|
||||
"larastan/larastan": "^3.2",
|
||||
"laravel/framework": "^11.44.2 || ^12.6",
|
||||
"laravel/pint": "^1.21.2",
|
||||
"laravel/sail": "^1.41.0",
|
||||
"laravel/sanctum": "^4.0.8",
|
||||
"laravel/tinker": "^2.10.1",
|
||||
"orchestra/testbench-core": "^9.12.0 || ^10.4",
|
||||
"pestphp/pest": "^3.8.2",
|
||||
"sebastian/environment": "^7.2.1 || ^8.0"
|
||||
"orchestra/testbench-core": "^9.12.0 || ^10.1",
|
||||
"pestphp/pest": "^3.8.0",
|
||||
"sebastian/environment": "^7.2.0 || ^8.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@@ -8458,7 +8472,7 @@
|
||||
"type": "patreon"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-11T01:04:21+00:00"
|
||||
"time": "2025-04-03T14:33:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
@@ -8961,16 +8975,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "11.5.23",
|
||||
"version": "11.5.21",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "86ebcd8a3dbcd1857d88505109b2a2b376501cde"
|
||||
"reference": "d565e2cdc21a7db9dc6c399c1fc2083b8010f289"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86ebcd8a3dbcd1857d88505109b2a2b376501cde",
|
||||
"reference": "86ebcd8a3dbcd1857d88505109b2a2b376501cde",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d565e2cdc21a7db9dc6c399c1fc2083b8010f289",
|
||||
"reference": "d565e2cdc21a7db9dc6c399c1fc2083b8010f289",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -9042,7 +9056,7 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.23"
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.21"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -9066,7 +9080,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-13T05:47:49+00:00"
|
||||
"time": "2025-05-21T12:35:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/cli-parser",
|
||||
@@ -10008,16 +10022,16 @@
|
||||
},
|
||||
{
|
||||
"name": "squizlabs/php_codesniffer",
|
||||
"version": "3.13.1",
|
||||
"version": "3.13.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
|
||||
"reference": "1b71b4dd7e7ef651ac749cea67e513c0c832f4bd"
|
||||
"reference": "65ff2489553b83b4597e89c3b8b721487011d186"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1b71b4dd7e7ef651ac749cea67e513c0c832f4bd",
|
||||
"reference": "1b71b4dd7e7ef651ac749cea67e513c0c832f4bd",
|
||||
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/65ff2489553b83b4597e89c3b8b721487011d186",
|
||||
"reference": "65ff2489553b83b4597e89c3b8b721487011d186",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -10088,7 +10102,7 @@
|
||||
"type": "thanks_dev"
|
||||
}
|
||||
],
|
||||
"time": "2025-06-12T15:04:34+00:00"
|
||||
"time": "2025-05-11T03:36:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ssddanbrown/asserthtml",
|
||||
|
||||
@@ -1 +1 @@
|
||||
22e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1
|
||||
1bfc7abbc1d913f6e98b40258cb0b440157e28e381505d10c25132c969b9eb5a
|
||||
@@ -486,7 +486,7 @@ Link: https://github.com/ramsey/collection.git
|
||||
ramsey/uuid
|
||||
License: MIT
|
||||
License File: vendor/ramsey/uuid/LICENSE
|
||||
Copyright: Copyright (c) 2012-2025 Ben Ramsey <***@*********.***>
|
||||
Copyright: Copyright (c) 2012-2023 Ben Ramsey <***@*********.***>
|
||||
Source: https://github.com/ramsey/uuid.git
|
||||
Link: https://github.com/ramsey/uuid.git
|
||||
-----------
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Vytvořit',
|
||||
'update' => 'Aktualizovat',
|
||||
'edit' => 'Upravit',
|
||||
'archive' => 'Archivovat',
|
||||
'unarchive' => 'Od-Archivovat',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Seřadit',
|
||||
'move' => 'Přesunout',
|
||||
'copy' => 'Kopírovat',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Stabilní obsah)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Přepnout na WYSIWYG Editor',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Přepnout na nový WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(V beta testování)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Nastavit protokol změn',
|
||||
'pages_edit_enter_changelog_desc' => 'Zadejte stručný popis změn, které jste provedli',
|
||||
'pages_edit_enter_changelog' => 'Zadejte protokol změn',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Komentář',
|
||||
'comments' => 'Komentáře',
|
||||
'comment_add' => 'Přidat komentář',
|
||||
'comment_none' => 'Žádné komentáře k zobrazení',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Zde zadejte komentář',
|
||||
'comment_thread_count' => ':count vlákno komentáře|:count vláken komentářů',
|
||||
'comment_archived_count' => ':count archivováno',
|
||||
'comment_archived_threads' => 'Archivovaná vlákna',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Uložit komentář',
|
||||
'comment_new' => 'Nový komentář',
|
||||
'comment_created' => 'komentováno :createDiff',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Komentář odstraněn',
|
||||
'comment_created_success' => 'Komentář přidán',
|
||||
'comment_updated_success' => 'Komentář aktualizován',
|
||||
'comment_archive_success' => 'Komentář archivován',
|
||||
'comment_unarchive_success' => 'Komentář od-archivován',
|
||||
'comment_view' => 'Zobrazit komentář',
|
||||
'comment_jump_to_thread' => 'Přejít na vlákno',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Opravdu chcete odstranit tento komentář?',
|
||||
'comment_in_reply_to' => 'Odpověď na :commentId',
|
||||
'comment_reference' => 'Odkaz',
|
||||
'comment_reference_outdated' => '(Zastaralý)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Zde jsou komentáře, které zůstaly na této stránce. Komentáře lze přidat a spravovat při prohlížení uložené stránky.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Erstellen',
|
||||
'update' => 'Aktualisieren',
|
||||
'edit' => 'Bearbeiten',
|
||||
'archive' => 'Archivieren',
|
||||
'unarchive' => 'Nicht mehr archivieren',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Sortieren',
|
||||
'move' => 'Verschieben',
|
||||
'copy' => 'Kopieren',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Stabiler Inhalt)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Zum WYSIWYG-Editor wechseln',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Zum neuen WYSIWYG wechseln',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(Im Beta-Test)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Änderungsprotokoll hinzufügen',
|
||||
'pages_edit_enter_changelog_desc' => 'Bitte geben Sie eine kurze Zusammenfassung Ihrer Änderungen ein',
|
||||
'pages_edit_enter_changelog' => 'Änderungsprotokoll eingeben',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Kommentar',
|
||||
'comments' => 'Kommentare',
|
||||
'comment_add' => 'Kommentieren',
|
||||
'comment_none' => 'Keine Kommentare vorhanden',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Geben Sie hier Ihre Kommentare ein',
|
||||
'comment_thread_count' => ':count Thema|:count Themen',
|
||||
'comment_archived_count' => ':count archiviert',
|
||||
'comment_archived_threads' => 'Archivierte Themen',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Kommentar speichern',
|
||||
'comment_new' => 'Neuer Kommentar',
|
||||
'comment_created' => ':createDiff kommentiert',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Kommentar gelöscht',
|
||||
'comment_created_success' => 'Kommentar hinzugefügt',
|
||||
'comment_updated_success' => 'Kommentar aktualisiert',
|
||||
'comment_archive_success' => 'Kommentar archiviert',
|
||||
'comment_unarchive_success' => 'Kommentar nicht mehr archiviert',
|
||||
'comment_view' => 'Kommentar ansehen',
|
||||
'comment_jump_to_thread' => 'Zum Thema springen',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Möchten Sie diesen Kommentar wirklich löschen?',
|
||||
'comment_in_reply_to' => 'Antwort auf :commentId',
|
||||
'comment_reference' => 'Referenz',
|
||||
'comment_reference_outdated' => '(Veraltet)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Hier sind die Kommentare, die auf dieser Seite hinterlassen wurden. Kommentare können hinzugefügt und verwaltet werden, wenn die gespeicherte Seite angezeigt wird.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Anlegen',
|
||||
'update' => 'Aktualisieren',
|
||||
'edit' => 'Bearbeiten',
|
||||
'archive' => 'Archivieren',
|
||||
'unarchive' => 'Nicht mehr archivieren',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Sortieren',
|
||||
'move' => 'Verschieben',
|
||||
'copy' => 'Kopieren',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Stabiler Inhalt)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Zum WYSIWYG-Editor wechseln',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Zum neuen WYSIWYG wechseln',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(Im Beta-Test)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Änderungsprotokoll hinzufügen',
|
||||
'pages_edit_enter_changelog_desc' => 'Bitte gib eine kurze Zusammenfassung deiner Änderungen ein',
|
||||
'pages_edit_enter_changelog' => 'Änderungsprotokoll eingeben',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Kommentar',
|
||||
'comments' => 'Kommentare',
|
||||
'comment_add' => 'Kommentieren',
|
||||
'comment_none' => 'Keine Kommentare vorhanden',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Gib hier deine Kommentare ein',
|
||||
'comment_thread_count' => ':count Thema|:count Themen',
|
||||
'comment_archived_count' => ':count archiviert',
|
||||
'comment_archived_threads' => 'Archivierte Themen',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Kommentar speichern',
|
||||
'comment_new' => 'Neuer Kommentar',
|
||||
'comment_created' => ':createDiff kommentiert',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Kommentar gelöscht',
|
||||
'comment_created_success' => 'Kommentar hinzugefügt',
|
||||
'comment_updated_success' => 'Kommentar aktualisiert',
|
||||
'comment_archive_success' => 'Kommentar archiviert',
|
||||
'comment_unarchive_success' => 'Kommentar nicht mehr archiviert',
|
||||
'comment_view' => 'Kommentar ansehen',
|
||||
'comment_jump_to_thread' => 'Zum Thema springen',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Möchtst du diesen Kommentar wirklich löschen?',
|
||||
'comment_in_reply_to' => 'Antwort auf :commentId',
|
||||
'comment_reference' => 'Referenz',
|
||||
'comment_reference_outdated' => '(Veraltet)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Hier sind die Kommentare, die auf dieser Seite hinterlassen wurden. Kommentare können hinzugefügt und verwaltet werden, wenn die gespeicherte Seite angezeigt wird.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Crear',
|
||||
'update' => 'Actualizar',
|
||||
'edit' => 'Editar',
|
||||
'archive' => 'Archivar',
|
||||
'unarchive' => 'Desarchivar',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Ordenar',
|
||||
'move' => 'Mover',
|
||||
'copy' => 'Copiar',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Contenido Estable)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Cambiar a Editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Cambiar a nuevo editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(En prueba beta)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Ajustar Log de cambios',
|
||||
'pages_edit_enter_changelog_desc' => 'Introduzca una breve descripción de los cambios que ha realizado',
|
||||
'pages_edit_enter_changelog' => 'Entrar al Log de cambios',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Comentario',
|
||||
'comments' => 'Comentarios',
|
||||
'comment_add' => 'Añadir Comentario',
|
||||
'comment_none' => 'No hay comentarios para mostrar',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Introduzca su comentario aquí',
|
||||
'comment_thread_count' => ':count hilo de comentarios|:count hilos de comentarios',
|
||||
'comment_archived_count' => ':count Archivados',
|
||||
'comment_archived_threads' => 'Hilos archivados',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Guardar comentario',
|
||||
'comment_new' => 'Nuevo Comentario',
|
||||
'comment_created' => 'comentado :createDiff',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Comentario borrado',
|
||||
'comment_created_success' => 'Comentario añadido',
|
||||
'comment_updated_success' => 'Comentario actualizado',
|
||||
'comment_archive_success' => 'Comentario archivado',
|
||||
'comment_unarchive_success' => 'Comentario desarchivado',
|
||||
'comment_view' => 'Ver comentario',
|
||||
'comment_jump_to_thread' => 'Ir al hilo',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => '¿Está seguro de que quiere borrar este comentario?',
|
||||
'comment_in_reply_to' => 'En respuesta a :commentId',
|
||||
'comment_reference' => 'Referencia',
|
||||
'comment_reference_outdated' => '(obsoleto)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Estos son los comentarios que se han escrito en esta página. Los comentarios se pueden añadir y administrar cuando se ve la página guardada.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Contenido Estable)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Cambiar a Editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Cambiar a nuevo editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(En prueba beta)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Establecer cambios de registro',
|
||||
'pages_edit_enter_changelog_desc' => 'Introduzca una breve descripción de los cambios que ha realizado',
|
||||
'pages_edit_enter_changelog' => 'Entrar en cambio de registro',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Stabiilne sisu)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Kasuta WYSIWYG redaktorit',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Kasuta uut tekstiredaktorit',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(beetatestimisel)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Muudatuste logi',
|
||||
'pages_edit_enter_changelog_desc' => 'Sisesta tehtud muudatuste lühikirjeldus',
|
||||
'pages_edit_enter_changelog' => 'Salvesta muudatuste logi',
|
||||
|
||||
@@ -10,7 +10,7 @@ return [
|
||||
|
||||
// Auth
|
||||
'error_user_exists_different_creds' => 'Sähköpostiosoite :email on jo käytössä toisessa käyttäjätunnuksessa.',
|
||||
'auth_pre_register_theme_prevention' => 'Käyttäjätiliä ei voitu rekisteröidä annetuille tiedoille',
|
||||
'auth_pre_register_theme_prevention' => 'User account could not be registered for the provided details',
|
||||
'email_already_confirmed' => 'Sähköposti on jo vahvistettu, yritä kirjautua sisään.',
|
||||
'email_confirmation_invalid' => 'Tämä vahvistuslinkki ei ole voimassa tai sitä on jo käytetty, yritä rekisteröityä uudelleen.',
|
||||
'email_confirmation_expired' => 'Vahvistuslinkki on vanhentunut, uusi vahvistussähköposti on lähetetty.',
|
||||
@@ -38,7 +38,7 @@ Sovellus ei tunnista ulkoisen todennuspalvelun pyyntöä. Ongelman voi aiheuttaa
|
||||
'social_driver_not_found' => 'Sosiaalisen median tilin ajuria ei löytynyt',
|
||||
'social_driver_not_configured' => ':socialAccount-tilin asetuksia ei ole määritetty oikein.',
|
||||
'invite_token_expired' => 'Tämä kutsulinkki on vanhentunut. Voit sen sijaan yrittää palauttaa tilisi salasanan.',
|
||||
'login_user_not_found' => 'Käyttäjää tälle toiminnolle ei löytynyt.',
|
||||
'login_user_not_found' => 'A user for this action could not be found.',
|
||||
|
||||
// System
|
||||
'path_not_writable' => 'Tiedostopolkuun :filePath ei voitu ladata tiedostoa. Tarkista polun kirjoitusoikeudet.',
|
||||
@@ -79,7 +79,7 @@ Sovellus ei tunnista ulkoisen todennuspalvelun pyyntöä. Ongelman voi aiheuttaa
|
||||
// Users
|
||||
'users_cannot_delete_only_admin' => 'Ainoaa ylläpitäjää ei voi poistaa',
|
||||
'users_cannot_delete_guest' => 'Vieraskäyttäjää ei voi poistaa',
|
||||
'users_could_not_send_invite' => 'Käyttäjää ei voitu luoda kutsun lähettämisen jälkeen',
|
||||
'users_could_not_send_invite' => 'Could not create user since invite email failed to send',
|
||||
|
||||
// Roles
|
||||
'role_cannot_be_edited' => 'Tätä roolia ei voi muokata',
|
||||
@@ -107,16 +107,16 @@ Sovellus ei tunnista ulkoisen todennuspalvelun pyyntöä. Ongelman voi aiheuttaa
|
||||
'back_soon' => 'Se palautetaan pian.',
|
||||
|
||||
// Import
|
||||
'import_zip_cant_read' => 'ZIP-tiedostoa ei voitu lukea.',
|
||||
'import_zip_cant_decode_data' => 'ZIP-tiedoston data.json sisältöä ei löydy eikä sitä voitu purkaa.',
|
||||
'import_zip_no_data' => 'ZIP-tiedostoilla ei ole odotettua kirjaa, lukua tai sivun sisältöä.',
|
||||
'import_validation_failed' => 'Tuonti ZIP epäonnistui virheiden kanssa:',
|
||||
'import_zip_failed_notification' => 'ZIP-tiedoston tuominen epäonnistui.',
|
||||
'import_perms_books' => 'Sinulla ei ole tarvittavia oikeuksia luoda kirjoja.',
|
||||
'import_perms_chapters' => 'Sinulla ei ole tarvittavia oikeuksia luoda kappaleita.',
|
||||
'import_perms_pages' => 'Sinulla ei ole tarvittavia oikeuksia luoda sivuja.',
|
||||
'import_perms_images' => 'Sinulla ei ole tarvittavia oikeuksia luoda kuvia.',
|
||||
'import_perms_attachments' => 'Sinulla ei ole tarvittavaa lupaa luoda liitteitä.',
|
||||
'import_zip_cant_read' => 'Could not read ZIP file.',
|
||||
'import_zip_cant_decode_data' => 'Could not find and decode ZIP data.json content.',
|
||||
'import_zip_no_data' => 'ZIP file data has no expected book, chapter or page content.',
|
||||
'import_validation_failed' => 'Import ZIP failed to validate with errors:',
|
||||
'import_zip_failed_notification' => 'Failed to import ZIP file.',
|
||||
'import_perms_books' => 'You are lacking the required permissions to create books.',
|
||||
'import_perms_chapters' => 'You are lacking the required permissions to create chapters.',
|
||||
'import_perms_pages' => 'You are lacking the required permissions to create pages.',
|
||||
'import_perms_images' => 'You are lacking the required permissions to create images.',
|
||||
'import_perms_attachments' => 'You are lacking the required permission to create attachments.',
|
||||
|
||||
// API errors
|
||||
'api_no_authorization_found' => 'Pyynnöstä ei löytynyt valtuutuskoodia',
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Crea',
|
||||
'update' => 'Aggiorna',
|
||||
'edit' => 'Modifica',
|
||||
'archive' => 'Archivia',
|
||||
'unarchive' => 'Ripristina',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Ordina',
|
||||
'move' => 'Sposta',
|
||||
'copy' => 'Copia',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Contenuto stabile)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Passa all\'editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Passa al nuovo WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Test)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Imposta changelog',
|
||||
'pages_edit_enter_changelog_desc' => 'Inserisci una breve descrizione dei cambiamenti che hai apportato',
|
||||
'pages_edit_enter_changelog' => 'Inserisci changelog',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Commento',
|
||||
'comments' => 'Commenti',
|
||||
'comment_add' => 'Aggiungi commento',
|
||||
'comment_none' => 'Nessun commento da visualizzare',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Scrivi un commento',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archiviato',
|
||||
'comment_archived_threads' => 'Discussioni Archiviate',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Salva commento',
|
||||
'comment_new' => 'Nuovo commento',
|
||||
'comment_created' => 'ha commentato :createDiff',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Commento eliminato',
|
||||
'comment_created_success' => 'Commento aggiunto',
|
||||
'comment_updated_success' => 'Commento aggiornato',
|
||||
'comment_archive_success' => 'Commento archiviato',
|
||||
'comment_unarchive_success' => 'Commento ripristinato',
|
||||
'comment_view' => 'Visualizza commento',
|
||||
'comment_jump_to_thread' => 'Vai al thread',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Sei sicuro di voler eliminare questo commento?',
|
||||
'comment_in_reply_to' => 'In risposta a :commentId',
|
||||
'comment_reference' => 'Riferimento',
|
||||
'comment_reference_outdated' => '(Obsoleto)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Ecco i commenti che sono stati lasciati in questa pagina. I commenti possono essere aggiunti e gestiti quando si visualizza la pagina salvata.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => '作成',
|
||||
'update' => '更新',
|
||||
'edit' => '編集',
|
||||
'archive' => 'アーカイブ',
|
||||
'unarchive' => 'アーカイブ解除',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => '並び順',
|
||||
'move' => '移動',
|
||||
'copy' => 'コピー',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(安定したコンテンツ)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'WYSIWYGエディタに切り替え',
|
||||
'pages_edit_switch_to_new_wysiwyg' => '新しいWYSIWYGエディタに切り替える',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(ベータテスト版)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => '編集内容についての説明',
|
||||
'pages_edit_enter_changelog_desc' => 'どのような変更を行ったのかを記録してください',
|
||||
'pages_edit_enter_changelog' => '編集内容を入力',
|
||||
@@ -393,11 +393,11 @@ return [
|
||||
'comment' => 'コメント',
|
||||
'comments' => 'コメント',
|
||||
'comment_add' => 'コメント追加',
|
||||
'comment_none' => '表示するコメントがありません',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'コメントを記入してください',
|
||||
'comment_thread_count' => ':count 個のコメントスレッド|:count 個のコメントスレッド',
|
||||
'comment_archived_count' => ':count 個のアーカイブ',
|
||||
'comment_archived_threads' => 'アーカイブされたスレッド',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'コメントを保存',
|
||||
'comment_new' => '新規コメント作成',
|
||||
'comment_created' => 'コメントを作成しました :createDiff',
|
||||
@@ -406,14 +406,14 @@ return [
|
||||
'comment_deleted_success' => 'コメントを削除しました',
|
||||
'comment_created_success' => 'コメントを追加しました',
|
||||
'comment_updated_success' => 'コメントを更新しました',
|
||||
'comment_archive_success' => 'コメントをアーカイブしました',
|
||||
'comment_unarchive_success' => 'コメントのアーカイブを解除しました',
|
||||
'comment_view' => 'コメントを表示',
|
||||
'comment_jump_to_thread' => 'スレッドにジャンプ',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => '本当にこのコメントを削除しますか?',
|
||||
'comment_in_reply_to' => ':commentIdへ返信',
|
||||
'comment_reference' => '参照箇所',
|
||||
'comment_reference_outdated' => '(以前の記述)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'ここにはページに付けられたコメントを表示します。 コメントの追加と管理は保存されたページの表示時に行うことができます。',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -30,8 +30,8 @@ return [
|
||||
'create' => 'Aanmaken',
|
||||
'update' => 'Bijwerken',
|
||||
'edit' => 'Bewerk',
|
||||
'archive' => 'Archiveer',
|
||||
'unarchive' => 'Terughalen',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Sorteer',
|
||||
'move' => 'Verplaats',
|
||||
'copy' => 'Kopieer',
|
||||
|
||||
@@ -23,7 +23,7 @@ return [
|
||||
'meta_updated' => 'Bijgewerkt: :timeLength',
|
||||
'meta_updated_name' => 'Bijgewerkt: :timeLength door :user',
|
||||
'meta_owned_name' => 'Eigendom van :user',
|
||||
'meta_reference_count' => 'Verwijzing in :count item|Verwijzing in :count items',
|
||||
'meta_reference_count' => 'Gerefereerd door :count item|Gerefereerd door :count items',
|
||||
'entity_select' => 'Entiteit selecteren',
|
||||
'entity_select_lack_permission' => 'Je hebt niet de vereiste machtiging om dit item te selecteren',
|
||||
'images' => 'Afbeeldingen',
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Stabiele Inhoud)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Schakel naar de WYSIWYG Bewerker',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Schakel naar de nieuwe WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta-testfase)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Logboek instellen',
|
||||
'pages_edit_enter_changelog_desc' => 'Geef een korte omschrijving van de wijzigingen die je gemaakt hebt',
|
||||
'pages_edit_enter_changelog' => 'Voeg toe aan logboek',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Reactie',
|
||||
'comments' => 'Reacties',
|
||||
'comment_add' => 'Reactie toevoegen',
|
||||
'comment_none' => 'Geen opmerkingen om weer te geven',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Laat hier een reactie achter',
|
||||
'comment_thread_count' => ':count Reactie Thread|:count Reactie Threads',
|
||||
'comment_archived_count' => ':count Gearchiveerd',
|
||||
'comment_archived_threads' => 'Gearchiveerde Threads',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Sla reactie op',
|
||||
'comment_new' => 'Nieuwe reactie',
|
||||
'comment_created' => 'reactie gegeven :createDiff',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Reactie verwijderd',
|
||||
'comment_created_success' => 'Reactie toegevoegd',
|
||||
'comment_updated_success' => 'Reactie bijgewerkt',
|
||||
'comment_archive_success' => 'Opmerking gearchiveerd',
|
||||
'comment_unarchive_success' => 'Opmerking teruggehaald',
|
||||
'comment_view' => 'Opmerking weergeven',
|
||||
'comment_jump_to_thread' => 'Ga naar thread',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Weet je zeker dat je deze reactie wilt verwijderen?',
|
||||
'comment_in_reply_to' => 'Als antwoord op :commentId',
|
||||
'comment_reference' => 'Verwijzing',
|
||||
'comment_reference_outdated' => '(Verouderd)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Hier zijn de opmerkingen die zijn achtergelaten op deze pagina. Opmerkingen kunnen worden toegevoegd en beheerd wanneer u de opgeslagen pagina bekijkt.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -35,8 +35,8 @@ return [
|
||||
'create' => 'Criar',
|
||||
'update' => 'Atualizar',
|
||||
'edit' => 'Editar',
|
||||
'archive' => 'Arquivar',
|
||||
'unarchive' => 'Desarquivar',
|
||||
'archive' => 'Archive',
|
||||
'unarchive' => 'Un-Archive',
|
||||
'sort' => 'Ordenar',
|
||||
'move' => 'Mover',
|
||||
'copy' => 'Copiar',
|
||||
|
||||
@@ -248,7 +248,7 @@ return [
|
||||
'pages_edit_switch_to_markdown_stable' => '(Conteúdo Estável)',
|
||||
'pages_edit_switch_to_wysiwyg' => 'Alternar para o Editor WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg' => 'Mudar para o novo WYSIWYG',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(Em teste beta)',
|
||||
'pages_edit_switch_to_new_wysiwyg_desc' => '(In Beta Testing)',
|
||||
'pages_edit_set_changelog' => 'Relatar Alterações',
|
||||
'pages_edit_enter_changelog_desc' => 'Digite uma breve descrição das alterações efetuadas por você',
|
||||
'pages_edit_enter_changelog' => 'Insira Alterações',
|
||||
@@ -392,11 +392,11 @@ return [
|
||||
'comment' => 'Comentário',
|
||||
'comments' => 'Comentários',
|
||||
'comment_add' => 'Adicionar Comentário',
|
||||
'comment_none' => 'Nenhum comentário para exibir',
|
||||
'comment_none' => 'No comments to display',
|
||||
'comment_placeholder' => 'Digite seus comentários aqui',
|
||||
'comment_thread_count' => ':count Tópico de Comentário|:count Tópicos de Comentários',
|
||||
'comment_archived_count' => ':count Arquivado',
|
||||
'comment_archived_threads' => 'Tópicos Arquivados',
|
||||
'comment_thread_count' => ':count Comment Thread|:count Comment Threads',
|
||||
'comment_archived_count' => ':count Archived',
|
||||
'comment_archived_threads' => 'Archived Threads',
|
||||
'comment_save' => 'Salvar comentário',
|
||||
'comment_new' => 'Novo Comentário',
|
||||
'comment_created' => 'comentado :createDiff',
|
||||
@@ -405,14 +405,14 @@ return [
|
||||
'comment_deleted_success' => 'Comentário removido',
|
||||
'comment_created_success' => 'Comentário adicionado',
|
||||
'comment_updated_success' => 'Comentário editado',
|
||||
'comment_archive_success' => 'Comentário arquivado',
|
||||
'comment_unarchive_success' => 'Comentário desarquivado',
|
||||
'comment_view' => 'Ver comentário',
|
||||
'comment_jump_to_thread' => 'Ir para o tópico',
|
||||
'comment_archive_success' => 'Comment archived',
|
||||
'comment_unarchive_success' => 'Comment un-archived',
|
||||
'comment_view' => 'View comment',
|
||||
'comment_jump_to_thread' => 'Jump to thread',
|
||||
'comment_delete_confirm' => 'Você tem certeza de que deseja excluir este comentário?',
|
||||
'comment_in_reply_to' => 'Em resposta à :commentId',
|
||||
'comment_reference' => 'Referência',
|
||||
'comment_reference_outdated' => '(Desatualizado)',
|
||||
'comment_reference' => 'Reference',
|
||||
'comment_reference_outdated' => '(Outdated)',
|
||||
'comment_editor_explain' => 'Aqui estão os comentários que foram deixados nesta página. Comentários podem ser adicionados e gerenciados ao visualizar a página salva.',
|
||||
|
||||
// Revision
|
||||
|
||||
@@ -47,7 +47,7 @@ return [
|
||||
'bookshelf_update' => '更新書棧',
|
||||
'bookshelf_update_notification' => '書棧已更新',
|
||||
'bookshelf_delete' => '刪除書棧',
|
||||
'bookshelf_delete_notification' => '書架已刪除',
|
||||
'bookshelf_delete_notification' => '書棧已刪除',
|
||||
|
||||
// Revisions
|
||||
'revision_restore' => '還原的版本',
|
||||
|
||||
@@ -67,7 +67,7 @@ return [
|
||||
|
||||
// Entities
|
||||
'entity_not_found' => '找不到實體',
|
||||
'bookshelf_not_found' => '未找到書架',
|
||||
'bookshelf_not_found' => '未找到書棧',
|
||||
'book_not_found' => '找不到書本',
|
||||
'page_not_found' => '找不到頁面',
|
||||
'chapter_not_found' => '找不到章節',
|
||||
|
||||
33
public/dist/app.js
vendored
Normal file
33
public/dist/app.js
vendored
Normal file
File diff suppressed because one or more lines are too long
32
public/dist/code.js
vendored
Normal file
32
public/dist/code.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/dist/export-styles.css
vendored
Normal file
1
public/dist/export-styles.css
vendored
Normal file
File diff suppressed because one or more lines are too long
3
public/dist/legacy-modes.js
vendored
Normal file
3
public/dist/legacy-modes.js
vendored
Normal file
File diff suppressed because one or more lines are too long
23
public/dist/markdown.js
vendored
Normal file
23
public/dist/markdown.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/dist/styles.css
vendored
Normal file
1
public/dist/styles.css
vendored
Normal file
File diff suppressed because one or more lines are too long
31
public/dist/wysiwyg.js
vendored
Normal file
31
public/dist/wysiwyg.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -40,7 +40,7 @@ export class PageComment extends Component {
|
||||
this.commentId = this.$opts.commentId;
|
||||
this.commentLocalId = this.$opts.commentLocalId;
|
||||
this.deletedText = this.$opts.deletedText;
|
||||
this.updatedText = this.$opts.updatedText;
|
||||
this.deletedText = this.$opts.deletedText;
|
||||
this.archiveText = this.$opts.archiveText;
|
||||
|
||||
// Editor reference and text options
|
||||
|
||||
@@ -84,7 +84,7 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
|
||||
|
||||
// @ts-ignore
|
||||
window.debugEditorState = () => {
|
||||
return editor.getEditorState().toJSON();
|
||||
console.log(editor.getEditorState().toJSON());
|
||||
};
|
||||
|
||||
registerCommonNodeMutationListeners(context);
|
||||
|
||||
@@ -355,7 +355,6 @@ function onSelectionChange(
|
||||
lastNode instanceof ParagraphNode &&
|
||||
lastNode.getChildrenSize() === 0
|
||||
) {
|
||||
selection.format = lastNode.getTextFormat();
|
||||
selection.style = lastNode.getTextStyle();
|
||||
} else {
|
||||
selection.format = 0;
|
||||
|
||||
@@ -1069,7 +1069,6 @@ describe('LexicalEditor tests', () => {
|
||||
__prev: null,
|
||||
__size: 1,
|
||||
__style: '',
|
||||
__textFormat: 0,
|
||||
__textStyle: '',
|
||||
__type: 'paragraph',
|
||||
});
|
||||
@@ -1150,7 +1149,6 @@ describe('LexicalEditor tests', () => {
|
||||
__prev: null,
|
||||
__size: 1,
|
||||
__style: '',
|
||||
__textFormat: 0,
|
||||
__textStyle: '',
|
||||
__type: 'paragraph',
|
||||
});
|
||||
|
||||
@@ -76,7 +76,6 @@ describe('LexicalEditorState tests', () => {
|
||||
__prev: null,
|
||||
__size: 1,
|
||||
__style: '',
|
||||
__textFormat: 0,
|
||||
__textStyle: '',
|
||||
__type: 'paragraph',
|
||||
});
|
||||
@@ -112,7 +111,7 @@ describe('LexicalEditorState tests', () => {
|
||||
});
|
||||
|
||||
expect(JSON.stringify(editor.getEditorState().toJSON())).toEqual(
|
||||
`{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Hello world","type":"text","version":1}],"direction":null,"type":"paragraph","version":1,"id":"","alignment":"","inset":0,"textFormat":0,"textStyle":""}],"direction":null,"type":"root","version":1}}`,
|
||||
`{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Hello world","type":"text","version":1}],"direction":null,"type":"paragraph","version":1,"id":"","alignment":"","inset":0,"textStyle":""}],"direction":null,"type":"root","version":1}}`,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -38,7 +38,6 @@ import {DetailsNode} from "@lexical/rich-text/LexicalDetailsNode";
|
||||
import {EditorUiContext} from "../../../../ui/framework/core";
|
||||
import {EditorUIManager} from "../../../../ui/framework/manager";
|
||||
import {ImageNode} from "@lexical/rich-text/LexicalImageNode";
|
||||
import {MediaNode} from "@lexical/rich-text/LexicalMediaNode";
|
||||
|
||||
type TestEnv = {
|
||||
readonly container: HTMLDivElement;
|
||||
@@ -488,7 +487,6 @@ export function createTestContext(): EditorUiContext {
|
||||
theme: {},
|
||||
nodes: [
|
||||
ImageNode,
|
||||
MediaNode,
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import type {
|
||||
LexicalNode,
|
||||
NodeKey,
|
||||
} from '../LexicalNode';
|
||||
import {RangeSelection, TEXT_TYPE_TO_FORMAT, TextFormatType} from 'lexical';
|
||||
import type {RangeSelection} from 'lexical';
|
||||
|
||||
import {
|
||||
$applyNodeReplacement,
|
||||
@@ -36,7 +36,6 @@ import {CommonBlockNode, copyCommonBlockProperties, SerializedCommonBlockNode} f
|
||||
|
||||
export type SerializedParagraphNode = Spread<
|
||||
{
|
||||
textFormat: number;
|
||||
textStyle: string;
|
||||
},
|
||||
SerializedCommonBlockNode
|
||||
@@ -46,12 +45,10 @@ export type SerializedParagraphNode = Spread<
|
||||
export class ParagraphNode extends CommonBlockNode {
|
||||
['constructor']!: KlassConstructor<typeof ParagraphNode>;
|
||||
/** @internal */
|
||||
__textFormat: number;
|
||||
__textStyle: string;
|
||||
|
||||
constructor(key?: NodeKey) {
|
||||
super(key);
|
||||
this.__textFormat = 0;
|
||||
this.__textStyle = '';
|
||||
}
|
||||
|
||||
@@ -59,22 +56,6 @@ export class ParagraphNode extends CommonBlockNode {
|
||||
return 'paragraph';
|
||||
}
|
||||
|
||||
getTextFormat(): number {
|
||||
const self = this.getLatest();
|
||||
return self.__textFormat;
|
||||
}
|
||||
|
||||
setTextFormat(type: number): this {
|
||||
const self = this.getWritable();
|
||||
self.__textFormat = type;
|
||||
return self;
|
||||
}
|
||||
|
||||
hasTextFormat(type: TextFormatType): boolean {
|
||||
const formatFlag = TEXT_TYPE_TO_FORMAT[type];
|
||||
return (this.getTextFormat() & formatFlag) !== 0;
|
||||
}
|
||||
|
||||
getTextStyle(): string {
|
||||
const self = this.getLatest();
|
||||
return self.__textStyle;
|
||||
@@ -92,7 +73,6 @@ export class ParagraphNode extends CommonBlockNode {
|
||||
|
||||
afterCloneFrom(prevNode: this) {
|
||||
super.afterCloneFrom(prevNode);
|
||||
this.__textFormat = prevNode.__textFormat;
|
||||
this.__textStyle = prevNode.__textStyle;
|
||||
copyCommonBlockProperties(prevNode, this);
|
||||
}
|
||||
@@ -145,14 +125,12 @@ export class ParagraphNode extends CommonBlockNode {
|
||||
static importJSON(serializedNode: SerializedParagraphNode): ParagraphNode {
|
||||
const node = $createParagraphNode();
|
||||
deserializeCommonBlockNode(serializedNode, node);
|
||||
node.setTextFormat(serializedNode.textFormat);
|
||||
return node;
|
||||
}
|
||||
|
||||
exportJSON(): SerializedParagraphNode {
|
||||
return {
|
||||
...super.exportJSON(),
|
||||
textFormat: this.getTextFormat(),
|
||||
textStyle: this.getTextStyle(),
|
||||
type: 'paragraph',
|
||||
version: 1,
|
||||
@@ -166,7 +144,6 @@ export class ParagraphNode extends CommonBlockNode {
|
||||
restoreSelection: boolean,
|
||||
): ParagraphNode {
|
||||
const newElement = $createParagraphNode();
|
||||
newElement.setTextFormat(rangeSelection.format);
|
||||
newElement.setTextStyle(rangeSelection.style);
|
||||
const direction = this.getDirection();
|
||||
newElement.setDirection(direction);
|
||||
|
||||
@@ -620,7 +620,6 @@ export class TextNode extends LexicalNode {
|
||||
// HTML content and not have the ability to use CSS classes.
|
||||
exportDOM(editor: LexicalEditor): DOMExportOutput {
|
||||
let {element} = super.exportDOM(editor);
|
||||
const originalElementName = (element?.nodeName || '').toLowerCase()
|
||||
invariant(
|
||||
element !== null && isHTMLElement(element),
|
||||
'Expected TextNode createDOM to always return a HTMLElement',
|
||||
@@ -650,8 +649,8 @@ export class TextNode extends LexicalNode {
|
||||
// This is the only way to properly add support for most clients,
|
||||
// even if it's semantically incorrect to have to resort to using
|
||||
// <b>, <u>, <s>, <i> elements.
|
||||
if (this.hasFormat('bold') && originalElementName !== 'strong') {
|
||||
element = wrapElementWith(element, 'strong');
|
||||
if (this.hasFormat('bold')) {
|
||||
element = wrapElementWith(element, 'b');
|
||||
}
|
||||
if (this.hasFormat('italic')) {
|
||||
element = wrapElementWith(element, 'em');
|
||||
|
||||
@@ -53,7 +53,6 @@ describe('LexicalParagraphNode tests', () => {
|
||||
direction: null,
|
||||
id: '',
|
||||
inset: 0,
|
||||
textFormat: 0,
|
||||
textStyle: '',
|
||||
type: 'paragraph',
|
||||
version: 1,
|
||||
|
||||
@@ -839,7 +839,7 @@ describe('LexicalTextNode tests', () => {
|
||||
paragraph.append(textNode);
|
||||
|
||||
const html = $generateHtmlFromNodes($getEditor(), null);
|
||||
expect(html).toBe('<p><u><em><strong><code spellcheck="false"><strong>hello</strong></code></strong></em></u></p>');
|
||||
expect(html).toBe('<p><u><em><b><code spellcheck="false"><strong>hello</strong></code></b></em></u></p>');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -8,12 +8,13 @@ import {
|
||||
} from 'lexical';
|
||||
import type {EditorConfig} from "lexical/LexicalEditor";
|
||||
|
||||
import {el, setOrRemoveAttribute, sizeToPixels, styleMapToStyleString, styleStringToStyleMap} from "../../utils/dom";
|
||||
import {el, setOrRemoveAttribute, sizeToPixels} from "../../utils/dom";
|
||||
import {
|
||||
CommonBlockAlignment, deserializeCommonBlockNode,
|
||||
setCommonBlockPropsFromElement,
|
||||
updateElementWithCommonBlockProps
|
||||
} from "lexical/nodes/common";
|
||||
import {$selectSingleNode} from "../../utils/selection";
|
||||
import {SerializedCommonBlockNode} from "lexical/nodes/CommonBlockNode";
|
||||
|
||||
export type MediaNodeTag = 'iframe' | 'embed' | 'object' | 'video' | 'audio';
|
||||
@@ -45,19 +46,6 @@ function filterAttributes(attributes: Record<string, string>): Record<string, st
|
||||
return filtered;
|
||||
}
|
||||
|
||||
function removeStyleFromAttributes(attributes: Record<string, string>, styleName: string): Record<string, string> {
|
||||
const attrCopy = Object.assign({}, attributes);
|
||||
if (!attributes.style) {
|
||||
return attrCopy;
|
||||
}
|
||||
|
||||
const map = styleStringToStyleMap(attributes.style);
|
||||
map.delete(styleName);
|
||||
|
||||
attrCopy.style = styleMapToStyleString(map);
|
||||
return attrCopy;
|
||||
}
|
||||
|
||||
function domElementToNode(tag: MediaNodeTag, element: HTMLElement): MediaNode {
|
||||
const node = $createMediaNode(tag);
|
||||
|
||||
@@ -130,7 +118,7 @@ export class MediaNode extends ElementNode {
|
||||
|
||||
getAttributes(): Record<string, string> {
|
||||
const self = this.getLatest();
|
||||
return Object.assign({}, self.__attributes);
|
||||
return self.__attributes;
|
||||
}
|
||||
|
||||
setSources(sources: MediaNodeSource[]) {
|
||||
@@ -140,37 +128,25 @@ export class MediaNode extends ElementNode {
|
||||
|
||||
getSources(): MediaNodeSource[] {
|
||||
const self = this.getLatest();
|
||||
return self.__sources.map(s => Object.assign({}, s))
|
||||
return self.__sources;
|
||||
}
|
||||
|
||||
setSrc(src: string): void {
|
||||
const attrs = this.getAttributes();
|
||||
const sources = this.getSources();
|
||||
|
||||
const attrs = Object.assign({}, this.getAttributes());
|
||||
if (this.__tag ==='object') {
|
||||
attrs.data = src;
|
||||
} if (this.__tag === 'video' && sources.length > 0) {
|
||||
sources[0].src = src;
|
||||
delete attrs.src;
|
||||
if (sources.length > 1) {
|
||||
sources.splice(1, sources.length - 1);
|
||||
}
|
||||
this.setSources(sources);
|
||||
} else {
|
||||
attrs.src = src;
|
||||
}
|
||||
|
||||
this.setAttributes(attrs);
|
||||
}
|
||||
|
||||
setWidthAndHeight(width: string, height: string): void {
|
||||
let attrs: Record<string, string> = Object.assign(
|
||||
const attrs = Object.assign(
|
||||
{},
|
||||
this.getAttributes(),
|
||||
{width, height},
|
||||
);
|
||||
|
||||
attrs = removeStyleFromAttributes(attrs, 'width');
|
||||
attrs = removeStyleFromAttributes(attrs, 'height');
|
||||
this.setAttributes(attrs);
|
||||
}
|
||||
|
||||
@@ -209,8 +185,8 @@ export class MediaNode extends ElementNode {
|
||||
return;
|
||||
}
|
||||
|
||||
const attrs = Object.assign(this.getAttributes(), {height});
|
||||
this.setAttributes(removeStyleFromAttributes(attrs, 'height'));
|
||||
const attrs = Object.assign({}, this.getAttributes(), {height});
|
||||
this.setAttributes(attrs);
|
||||
}
|
||||
|
||||
getHeight(): number {
|
||||
@@ -219,9 +195,8 @@ export class MediaNode extends ElementNode {
|
||||
}
|
||||
|
||||
setWidth(width: number): void {
|
||||
const existingAttrs = this.getAttributes();
|
||||
const attrs: Record<string, string> = Object.assign(existingAttrs, {width});
|
||||
this.setAttributes(removeStyleFromAttributes(attrs, 'width'));
|
||||
const attrs = Object.assign({}, this.getAttributes(), {width});
|
||||
this.setAttributes(attrs);
|
||||
}
|
||||
|
||||
getWidth(): number {
|
||||
@@ -247,9 +222,15 @@ export class MediaNode extends ElementNode {
|
||||
|
||||
createDOM(_config: EditorConfig, _editor: LexicalEditor) {
|
||||
const media = this.createInnerDOM();
|
||||
return el('span', {
|
||||
const wrap = el('span', {
|
||||
class: media.className + ' editor-media-wrap',
|
||||
}, [media]);
|
||||
|
||||
wrap.addEventListener('click', e => {
|
||||
_editor.update(() => $selectSingleNode(this));
|
||||
});
|
||||
|
||||
return wrap;
|
||||
}
|
||||
|
||||
updateDOM(prevNode: MediaNode, dom: HTMLElement): boolean {
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
import {createTestContext} from "lexical/__tests__/utils";
|
||||
import {$createMediaNode} from "@lexical/rich-text/LexicalMediaNode";
|
||||
|
||||
|
||||
describe('LexicalMediaNode', () => {
|
||||
|
||||
test('setWidth/setHeight/setWidthAndHeight functions remove relevant styles', () => {
|
||||
const {editor} = createTestContext();
|
||||
editor.updateAndCommit(() => {
|
||||
const mediaMode = $createMediaNode('video');
|
||||
const defaultStyles = {style: 'width:20px;height:40px;color:red'};
|
||||
|
||||
mediaMode.setAttributes(defaultStyles);
|
||||
mediaMode.setWidth(60);
|
||||
expect(mediaMode.getWidth()).toBe(60);
|
||||
expect(mediaMode.getAttributes().style).toBe('height:40px;color:red');
|
||||
|
||||
mediaMode.setAttributes(defaultStyles);
|
||||
mediaMode.setHeight(77);
|
||||
expect(mediaMode.getHeight()).toBe(77);
|
||||
expect(mediaMode.getAttributes().style).toBe('width:20px;color:red');
|
||||
|
||||
mediaMode.setAttributes(defaultStyles);
|
||||
mediaMode.setWidthAndHeight('6', '7');
|
||||
expect(mediaMode.getWidth()).toBe(6);
|
||||
expect(mediaMode.getHeight()).toBe(7);
|
||||
expect(mediaMode.getAttributes().style).toBe('color:red');
|
||||
});
|
||||
});
|
||||
|
||||
test('setSrc on video uses sources if existing', () => {
|
||||
const {editor} = createTestContext();
|
||||
editor.updateAndCommit(() => {
|
||||
const mediaMode = $createMediaNode('video');
|
||||
mediaMode.setAttributes({src: 'z'});
|
||||
mediaMode.setSources([{src: 'a', type: 'video'}, {src: 'b', type: 'video'}]);
|
||||
|
||||
mediaMode.setSrc('c');
|
||||
|
||||
expect(mediaMode.getAttributes().src).toBeUndefined();
|
||||
expect(mediaMode.getSources()).toHaveLength(1);
|
||||
expect(mediaMode.getSources()[0].src).toBe('c');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
@@ -123,7 +123,6 @@ describe('table selection', () => {
|
||||
__prev: null,
|
||||
__size: 1,
|
||||
__style: '',
|
||||
__textFormat: 0,
|
||||
__textStyle: '',
|
||||
__type: 'paragraph',
|
||||
});
|
||||
|
||||
@@ -92,7 +92,6 @@ export const image: EditorButtonDefinition = {
|
||||
context.editor.update(() => {
|
||||
const link = $createLinkedImageNodeFromImageData(image);
|
||||
$insertNodes([link]);
|
||||
link.select();
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
@@ -192,17 +192,11 @@ export function $showMediaForm(media: MediaNode|null, context: EditorUiContext):
|
||||
let formDefaults = {};
|
||||
if (media) {
|
||||
const nodeAttrs = media.getAttributes();
|
||||
const nodeDOM = media.exportDOM(context.editor).element;
|
||||
const nodeHtml = (nodeDOM instanceof HTMLElement) ? nodeDOM.outerHTML : '';
|
||||
|
||||
formDefaults = {
|
||||
src: nodeAttrs.src || nodeAttrs.data || media.getSources()[0]?.src || '',
|
||||
src: nodeAttrs.src || nodeAttrs.data || '',
|
||||
width: nodeAttrs.width,
|
||||
height: nodeAttrs.height,
|
||||
embed: nodeHtml,
|
||||
|
||||
// This is used so we can check for edits against the embed field on submit
|
||||
embed_check: nodeHtml,
|
||||
embed: '',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,8 +214,7 @@ export const media: EditorFormDefinition = {
|
||||
}));
|
||||
|
||||
const embedCode = (formData.get('embed') || '').toString().trim();
|
||||
const embedCheck = (formData.get('embed_check') || '').toString().trim();
|
||||
if (embedCode && embedCode !== embedCheck) {
|
||||
if (embedCode) {
|
||||
context.editor.update(() => {
|
||||
const node = $createMediaNodeFromHtml(embedCode);
|
||||
if (selectedNode && node) {
|
||||
@@ -243,7 +236,6 @@ export const media: EditorFormDefinition = {
|
||||
if (selectedNode) {
|
||||
selectedNode.setSrc(src);
|
||||
selectedNode.setWidthAndHeight(width, height);
|
||||
context.manager.triggerFutureStateRefresh();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -289,11 +281,6 @@ export const media: EditorFormDefinition = {
|
||||
name: 'embed',
|
||||
type: 'textarea',
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
name: 'embed_check',
|
||||
type: 'hidden',
|
||||
},
|
||||
],
|
||||
}
|
||||
])
|
||||
|
||||
@@ -224,10 +224,6 @@ export function getImageToolbarContent(): EditorUiElement[] {
|
||||
return [new EditorButton(image)];
|
||||
}
|
||||
|
||||
export function getMediaToolbarContent(): EditorUiElement[] {
|
||||
return [new EditorButton(media)];
|
||||
}
|
||||
|
||||
export function getLinkToolbarContent(): EditorUiElement[] {
|
||||
return [
|
||||
new EditorButton(link),
|
||||
|
||||
@@ -11,7 +11,7 @@ import {el} from "../../utils/dom";
|
||||
export interface EditorFormFieldDefinition {
|
||||
label: string;
|
||||
name: string;
|
||||
type: 'text' | 'select' | 'textarea' | 'checkbox' | 'hidden';
|
||||
type: 'text' | 'select' | 'textarea' | 'checkbox';
|
||||
}
|
||||
|
||||
export interface EditorSelectFormFieldDefinition extends EditorFormFieldDefinition {
|
||||
@@ -67,9 +67,6 @@ export class EditorFormField extends EditorUiElement {
|
||||
input = el('textarea', {id, name: this.definition.name, class: 'editor-form-field-input'});
|
||||
} else if (this.definition.type === 'checkbox') {
|
||||
input = el('input', {id, name: this.definition.name, type: 'checkbox', class: 'editor-form-field-input-checkbox', value: 'true'});
|
||||
} else if (this.definition.type === 'hidden') {
|
||||
input = el('input', {id, name: this.definition.name, type: 'hidden'});
|
||||
return el('div', {hidden: 'true'}, [input]);
|
||||
} else {
|
||||
input = el('input', {id, name: this.definition.name, class: 'editor-form-field-input'});
|
||||
}
|
||||
|
||||
@@ -12,21 +12,17 @@ function isNodeWithSize(node: LexicalNode): node is NodeHasSize&LexicalNode {
|
||||
|
||||
class NodeResizer {
|
||||
protected context: EditorUiContext;
|
||||
protected resizerDOM: HTMLElement|null = null;
|
||||
protected targetNode: LexicalNode|null = null;
|
||||
protected dom: HTMLElement|null = null;
|
||||
protected scrollContainer: HTMLElement;
|
||||
|
||||
protected mouseTracker: MouseDragTracker|null = null;
|
||||
protected activeSelection: string = '';
|
||||
protected loadAbortController = new AbortController();
|
||||
|
||||
constructor(context: EditorUiContext) {
|
||||
this.context = context;
|
||||
this.scrollContainer = context.scrollDOM;
|
||||
|
||||
this.onSelectionChange = this.onSelectionChange.bind(this);
|
||||
this.onTargetDOMLoad = this.onTargetDOMLoad.bind(this);
|
||||
|
||||
context.manager.onSelectionChange(this.onSelectionChange);
|
||||
}
|
||||
|
||||
@@ -38,7 +34,12 @@ class NodeResizer {
|
||||
|
||||
if (nodes.length === 1 && isNodeWithSize(nodes[0])) {
|
||||
const node = nodes[0];
|
||||
let nodeDOM = this.getTargetDOM(node)
|
||||
const nodeKey = node.getKey();
|
||||
let nodeDOM = this.context.editor.getElementByKey(nodeKey);
|
||||
|
||||
if (nodeDOM && nodeDOM.nodeName === 'SPAN') {
|
||||
nodeDOM = nodeDOM.firstElementChild as HTMLElement;
|
||||
}
|
||||
|
||||
if (nodeDOM) {
|
||||
this.showForNode(node, nodeDOM);
|
||||
@@ -46,81 +47,56 @@ class NodeResizer {
|
||||
}
|
||||
}
|
||||
|
||||
protected getTargetDOM(targetNode: LexicalNode|null): HTMLElement|null {
|
||||
if (targetNode == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let nodeDOM = this.context.editor.getElementByKey(targetNode.__key)
|
||||
if (nodeDOM && nodeDOM.nodeName === 'SPAN') {
|
||||
nodeDOM = nodeDOM.firstElementChild as HTMLElement;
|
||||
}
|
||||
return nodeDOM;
|
||||
}
|
||||
|
||||
protected onTargetDOMLoad(): void {
|
||||
this.updateResizerPosition();
|
||||
}
|
||||
|
||||
teardown() {
|
||||
this.context.manager.offSelectionChange(this.onSelectionChange);
|
||||
this.hide();
|
||||
}
|
||||
|
||||
protected showForNode(node: NodeHasSize&LexicalNode, targetDOM: HTMLElement) {
|
||||
this.resizerDOM = this.buildDOM();
|
||||
this.targetNode = node;
|
||||
protected showForNode(node: NodeHasSize&LexicalNode, dom: HTMLElement) {
|
||||
this.dom = this.buildDOM();
|
||||
|
||||
let ghost = el('span', {class: 'editor-node-resizer-ghost'});
|
||||
if ($isImageNode(node)) {
|
||||
ghost = el('img', {src: targetDOM.getAttribute('src'), class: 'editor-node-resizer-ghost'});
|
||||
ghost = el('img', {src: dom.getAttribute('src'), class: 'editor-node-resizer-ghost'});
|
||||
}
|
||||
this.resizerDOM.append(ghost);
|
||||
this.dom.append(ghost);
|
||||
|
||||
this.context.scrollDOM.append(this.resizerDOM);
|
||||
this.updateResizerPosition();
|
||||
this.context.scrollDOM.append(this.dom);
|
||||
this.updateDOMPosition(dom);
|
||||
|
||||
this.mouseTracker = this.setupTracker(this.resizerDOM, node, targetDOM);
|
||||
this.mouseTracker = this.setupTracker(this.dom, node, dom);
|
||||
this.activeSelection = node.getKey();
|
||||
|
||||
if (targetDOM.matches('img, embed, iframe, object')) {
|
||||
this.loadAbortController = new AbortController();
|
||||
targetDOM.addEventListener('load', this.onTargetDOMLoad, { signal: this.loadAbortController.signal });
|
||||
}
|
||||
}
|
||||
|
||||
protected updateResizerPosition() {
|
||||
const targetDOM = this.getTargetDOM(this.targetNode);
|
||||
if (!this.resizerDOM || !targetDOM) {
|
||||
protected updateDOMPosition(nodeDOM: HTMLElement) {
|
||||
if (!this.dom) {
|
||||
return;
|
||||
}
|
||||
|
||||
const scrollAreaRect = this.scrollContainer.getBoundingClientRect();
|
||||
const nodeRect = targetDOM.getBoundingClientRect();
|
||||
const nodeRect = nodeDOM.getBoundingClientRect();
|
||||
const top = nodeRect.top - (scrollAreaRect.top - this.scrollContainer.scrollTop);
|
||||
const left = nodeRect.left - scrollAreaRect.left;
|
||||
|
||||
this.resizerDOM.style.top = `${top}px`;
|
||||
this.resizerDOM.style.left = `${left}px`;
|
||||
this.resizerDOM.style.width = nodeRect.width + 'px';
|
||||
this.resizerDOM.style.height = nodeRect.height + 'px';
|
||||
this.dom.style.top = `${top}px`;
|
||||
this.dom.style.left = `${left}px`;
|
||||
this.dom.style.width = nodeRect.width + 'px';
|
||||
this.dom.style.height = nodeRect.height + 'px';
|
||||
}
|
||||
|
||||
protected updateDOMSize(width: number, height: number): void {
|
||||
if (!this.resizerDOM) {
|
||||
if (!this.dom) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.resizerDOM.style.width = width + 'px';
|
||||
this.resizerDOM.style.height = height + 'px';
|
||||
this.dom.style.width = width + 'px';
|
||||
this.dom.style.height = height + 'px';
|
||||
}
|
||||
|
||||
protected hide() {
|
||||
this.mouseTracker?.teardown();
|
||||
this.resizerDOM?.remove();
|
||||
this.targetNode = null;
|
||||
this.dom?.remove();
|
||||
this.activeSelection = '';
|
||||
this.loadAbortController.abort();
|
||||
}
|
||||
|
||||
protected buildDOM() {
|
||||
@@ -134,7 +110,7 @@ class NodeResizer {
|
||||
}, handleElems);
|
||||
}
|
||||
|
||||
setupTracker(container: HTMLElement, node: NodeHasSize&LexicalNode, nodeDOM: HTMLElement): MouseDragTracker {
|
||||
setupTracker(container: HTMLElement, node: NodeHasSize, nodeDOM: HTMLElement): MouseDragTracker {
|
||||
let startingWidth: number = 0;
|
||||
let startingHeight: number = 0;
|
||||
let startingRatio: number = 0;
|
||||
@@ -164,7 +140,7 @@ class NodeResizer {
|
||||
|
||||
return new MouseDragTracker(container, '.editor-node-resizer-handle', {
|
||||
down(event: MouseEvent, handle: HTMLElement) {
|
||||
_this.resizerDOM?.classList.add('active');
|
||||
_this.dom?.classList.add('active');
|
||||
_this.context.editor.getEditorState().read(() => {
|
||||
const domRect = nodeDOM.getBoundingClientRect();
|
||||
startingWidth = node.getWidth() || domRect.width;
|
||||
@@ -187,15 +163,12 @@ class NodeResizer {
|
||||
_this.context.editor.update(() => {
|
||||
node.setWidth(size.width);
|
||||
node.setHeight(hasHeight ? size.height : 0);
|
||||
}, {
|
||||
onUpdate: () => {
|
||||
requestAnimationFrame(() => {
|
||||
_this.context.manager.triggerLayoutUpdate();
|
||||
_this.updateResizerPosition();
|
||||
});
|
||||
}
|
||||
_this.context.manager.triggerLayoutUpdate();
|
||||
requestAnimationFrame(() => {
|
||||
_this.updateDOMPosition(nodeDOM);
|
||||
})
|
||||
});
|
||||
_this.resizerDOM?.classList.remove('active');
|
||||
_this.dom?.classList.remove('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ class TableResizer {
|
||||
protected targetCell: HTMLElement|null = null;
|
||||
protected xMarkerAtStart : boolean = false;
|
||||
protected yMarkerAtStart : boolean = false;
|
||||
protected activeInTable: boolean = false;
|
||||
|
||||
constructor(editor: LexicalEditor, editScrollContainer: HTMLElement) {
|
||||
this.editor = editor;
|
||||
@@ -34,10 +33,9 @@ class TableResizer {
|
||||
}
|
||||
|
||||
protected setupListeners() {
|
||||
this.onTableMouseOver = this.onTableMouseOver.bind(this);
|
||||
this.onCellMouseMove = this.onCellMouseMove.bind(this);
|
||||
this.onScrollOrResize = this.onScrollOrResize.bind(this);
|
||||
this.editScrollContainer.addEventListener('mouseover', this.onTableMouseOver, { passive: true });
|
||||
this.editScrollContainer.addEventListener('mousemove', this.onCellMouseMove);
|
||||
window.addEventListener('scroll', this.onScrollOrResize, {capture: true, passive: true});
|
||||
window.addEventListener('resize', this.onScrollOrResize, {passive: true});
|
||||
}
|
||||
@@ -46,26 +44,8 @@ class TableResizer {
|
||||
this.updateCurrentMarkerTargetPosition();
|
||||
}
|
||||
|
||||
protected onTableMouseOver(event: MouseEvent): void {
|
||||
if (this.dragging) {
|
||||
return;
|
||||
}
|
||||
|
||||
const table = (event.target as HTMLElement).closest('table') as HTMLElement|null;
|
||||
|
||||
if (table && !this.activeInTable) {
|
||||
this.editScrollContainer.addEventListener('mousemove', this.onCellMouseMove, { passive: true });
|
||||
this.onCellMouseMove(event);
|
||||
this.activeInTable = true;
|
||||
} else if (!table && this.activeInTable) {
|
||||
this.editScrollContainer.removeEventListener('mousemove', this.onCellMouseMove);
|
||||
this.hideMarkers();
|
||||
this.activeInTable = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected onCellMouseMove(event: MouseEvent) {
|
||||
const cell = (event.target as HTMLElement).closest('td,th') as HTMLElement|null;
|
||||
const cell = (event.target as HTMLElement).closest('td,th') as HTMLElement;
|
||||
if (!cell || this.dragging) {
|
||||
return;
|
||||
}
|
||||
@@ -86,16 +66,10 @@ class TableResizer {
|
||||
protected updateMarkersTo(cell: HTMLElement, xPos: number, yPos: number) {
|
||||
const markers: MarkerDomRecord = this.getMarkers();
|
||||
const table = cell.closest('table') as HTMLElement;
|
||||
const caption: HTMLTableCaptionElement|null = table.querySelector('caption');
|
||||
const tableRect = table.getBoundingClientRect();
|
||||
const editBounds = this.editScrollContainer.getBoundingClientRect();
|
||||
|
||||
let tableTop = tableRect.top;
|
||||
if (caption) {
|
||||
tableTop = caption.getBoundingClientRect().bottom;
|
||||
}
|
||||
|
||||
const maxTop = Math.max(tableTop, editBounds.top);
|
||||
const maxTop = Math.max(tableRect.top, editBounds.top);
|
||||
const maxBottom = Math.min(tableRect.bottom, editBounds.bottom);
|
||||
const maxHeight = maxBottom - maxTop;
|
||||
markers.x.style.left = xPos + 'px';
|
||||
@@ -111,13 +85,6 @@ class TableResizer {
|
||||
markers.x.hidden = tableRect.top > editBounds.bottom || tableRect.bottom < editBounds.top;
|
||||
}
|
||||
|
||||
protected hideMarkers(): void {
|
||||
if (this.markerDom) {
|
||||
this.markerDom.x.hidden = true;
|
||||
this.markerDom.y.hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected updateCurrentMarkerTargetPosition(): void {
|
||||
if (!this.targetCell) {
|
||||
return;
|
||||
|
||||
@@ -34,11 +34,7 @@ export class EditorContextToolbar extends EditorContainerUiElement {
|
||||
|
||||
dom.hidden = !showing;
|
||||
|
||||
if (!this.target.isConnected) {
|
||||
// If our target is no longer in the DOM, tell the manager an update is needed.
|
||||
this.getContext().manager.triggerFutureStateRefresh();
|
||||
return;
|
||||
} else if (!showing) {
|
||||
if (!showing) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
getCodeToolbarContent, getDetailsToolbarContent,
|
||||
getImageToolbarContent,
|
||||
getLinkToolbarContent,
|
||||
getMainEditorFullToolbar, getMediaToolbarContent, getTableToolbarContent
|
||||
getMainEditorFullToolbar, getTableToolbarContent
|
||||
} from "./defaults/toolbars";
|
||||
import {EditorUIManager} from "./framework/manager";
|
||||
import {EditorUiContext} from "./framework/core";
|
||||
@@ -44,10 +44,6 @@ export function buildEditorUI(container: HTMLElement, element: HTMLElement, scro
|
||||
selector: 'img:not([drawio-diagram] img)',
|
||||
content: getImageToolbarContent(),
|
||||
});
|
||||
manager.registerContextToolbar('media', {
|
||||
selector: '.editor-media-wrap',
|
||||
content: getMediaToolbarContent(),
|
||||
});
|
||||
manager.registerContextToolbar('link', {
|
||||
selector: 'a',
|
||||
content: getLinkToolbarContent(),
|
||||
|
||||
@@ -52,19 +52,12 @@ export type StyleMap = Map<string, string>;
|
||||
/**
|
||||
* Creates a map from an element's styles.
|
||||
* Uses direct attribute value string handling since attempting to iterate
|
||||
* over .style will expand out any shorthand properties (like 'padding')
|
||||
* over .style will expand out any shorthand properties (like 'padding') making
|
||||
* rather than being representative of the actual properties set.
|
||||
*/
|
||||
export function extractStyleMapFromElement(element: HTMLElement): StyleMap {
|
||||
const styleText= element.getAttribute('style') || '';
|
||||
return styleStringToStyleMap(styleText);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert string-formatted styles into a StyleMap.
|
||||
*/
|
||||
export function styleStringToStyleMap(styleText: string): StyleMap {
|
||||
const map: StyleMap = new Map();
|
||||
const styleText= element.getAttribute('style') || '';
|
||||
|
||||
const rules = styleText.split(';');
|
||||
for (const rule of rules) {
|
||||
@@ -79,17 +72,6 @@ export function styleStringToStyleMap(styleText: string): StyleMap {
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a StyleMap into inline string style text.
|
||||
*/
|
||||
export function styleMapToStyleString(map: StyleMap): string {
|
||||
const parts = [];
|
||||
for (const [style, value] of map.entries()) {
|
||||
parts.push(`${style}:${value}`);
|
||||
}
|
||||
return parts.join(';');
|
||||
}
|
||||
|
||||
export function setOrRemoveAttribute(element: HTMLElement, name: string, value: string|null|undefined) {
|
||||
if (value) {
|
||||
element.setAttribute(name, value);
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
$createParagraphNode, $createRangeSelection,
|
||||
$getRoot,
|
||||
$getSelection, $isBlockElementNode, $isDecoratorNode,
|
||||
$isElementNode, $isParagraphNode,
|
||||
$isElementNode,
|
||||
$isTextNode,
|
||||
$setSelection,
|
||||
BaseSelection, DecoratorNode,
|
||||
@@ -60,19 +60,12 @@ export function $selectionContainsTextFormat(selection: BaseSelection | null, fo
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check text nodes
|
||||
const nodes = selection.getNodes();
|
||||
for (const node of nodes) {
|
||||
for (const node of selection.getNodes()) {
|
||||
if ($isTextNode(node) && node.hasFormat(format)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// If we're in an empty paragraph, check the paragraph format
|
||||
if (nodes.length === 1 && $isParagraphNode(nodes[0]) && nodes[0].hasTextFormat(format)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@ body.editor-is-fullscreen {
|
||||
.editor-media-wrap {
|
||||
display: inline-block;
|
||||
cursor: not-allowed;
|
||||
iframe, video {
|
||||
iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
&.align-left {
|
||||
|
||||
@@ -106,14 +106,4 @@ class SearchIndexingTest extends TestCase
|
||||
$this->assertNull($scoreByTerm->get($term), "Failed asserting that \"$term\" is not indexed");
|
||||
}
|
||||
}
|
||||
|
||||
public function test_non_breaking_spaces_handled_as_spaces()
|
||||
{
|
||||
$page = $this->entities->newPage(['html' => '<p>a tigerbadger is a dangerous animal</p>']);
|
||||
|
||||
$scoreByTerm = $page->searchTerms()->pluck('score', 'term');
|
||||
$this->assertNotNull($scoreByTerm->get('tigerbadger'));
|
||||
$this->assertNotNull($scoreByTerm->get('dangerous'));
|
||||
$this->assertNotNull($scoreByTerm->get('animal'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Uploads;
|
||||
|
||||
use BookStack\Exceptions\DrawioPngReaderException;
|
||||
use BookStack\Uploads\DrawioPngReader;
|
||||
use Tests\TestCase;
|
||||
|
||||
class DrawioPngReaderTest extends TestCase
|
||||
{
|
||||
public function test_exact_drawing()
|
||||
{
|
||||
$file = $this->files->testFilePath('test.drawio.png');
|
||||
$stream = fopen($file, 'r');
|
||||
|
||||
$reader = new DrawioPngReader($stream);
|
||||
$drawing = $reader->extractDrawing();
|
||||
|
||||
$this->assertStringStartsWith('<mxfile ', $drawing);
|
||||
$this->assertStringEndsWith("</mxfile>\n", $drawing);
|
||||
}
|
||||
|
||||
public function test_extract_drawing_with_non_drawing_image_throws_exception()
|
||||
{
|
||||
$file = $this->files->testFilePath('test-image.png');
|
||||
$stream = fopen($file, 'r');
|
||||
$reader = new DrawioPngReader($stream);
|
||||
|
||||
$exception = null;
|
||||
try {
|
||||
$drawing = $reader->extractDrawing();
|
||||
} catch (\Exception $e) {
|
||||
$exception = $e;
|
||||
}
|
||||
|
||||
$this->assertInstanceOf(DrawioPngReaderException::class, $exception);
|
||||
$this->assertEquals($exception->getMessage(), 'Unable to find drawing data within PNG file');
|
||||
}
|
||||
|
||||
public function test_extract_drawing_with_non_png_image_throws_exception()
|
||||
{
|
||||
$file = $this->files->testFilePath('test-image.jpg');
|
||||
$stream = fopen($file, 'r');
|
||||
$reader = new DrawioPngReader($stream);
|
||||
|
||||
$exception = null;
|
||||
try {
|
||||
$drawing = $reader->extractDrawing();
|
||||
} catch (\Exception $e) {
|
||||
$exception = $e;
|
||||
}
|
||||
|
||||
$this->assertInstanceOf(DrawioPngReaderException::class, $exception);
|
||||
$this->assertEquals($exception->getMessage(), 'File does not appear to be a valid PNG file');
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user