Show mime icon, bump bundles, make the SearchResultEntry class non-abstract, Fix header search icon, various fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>pull/22099/head
parent
6eced42b7a
commit
71b62c4203
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,31 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at> |
||||
* |
||||
* @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at> |
||||
* |
||||
* @license GNU AGPL version 3 or any later version |
||||
* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License as |
||||
* published by the Free Software Foundation, either version 3 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
*/ |
||||
|
||||
namespace OCA\Comments\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class CommentsSearchResultEntry extends ASearchResultEntry { |
||||
} |
||||
@ -1,30 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class ContactsSearchResultEntry extends ASearchResultEntry { |
||||
} |
||||
@ -1,30 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class EventsSearchResultEntry extends ASearchResultEntry { |
||||
} |
||||
@ -1,30 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class TasksSearchResultEntry extends ASearchResultEntry { |
||||
} |
||||
@ -1,38 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at> |
||||
* |
||||
* @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at> |
||||
* |
||||
* @license GNU AGPL version 3 or any later version |
||||
* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License as |
||||
* published by the Free Software Foundation, either version 3 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
*/ |
||||
|
||||
namespace OCA\Files\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class FilesSearchResultEntry extends ASearchResultEntry { |
||||
public function __construct(string $thumbnailUrl, |
||||
string $filename, |
||||
string $path, |
||||
string $url, |
||||
string $icon) { |
||||
parent::__construct($thumbnailUrl, $filename, $path, $url, $icon, false); |
||||
} |
||||
} |
||||
@ -1,29 +0,0 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
/** |
||||
* @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com> |
||||
* |
||||
* @license GNU AGPL version 3 or any later version |
||||
* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License as |
||||
* published by the Free Software Foundation, either version 3 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
||||
|
||||
namespace OCA\Settings\Search; |
||||
|
||||
use OCP\Search\ASearchResultEntry; |
||||
|
||||
class SectionResult extends ASearchResultEntry { |
||||
} |
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,68 @@ |
||||
<template> |
||||
<svg |
||||
class="unified-search__result-placeholder" |
||||
xmlns="http://www.w3.org/2000/svg" |
||||
fill="url(#unified-search__result-placeholder-gradient)"> |
||||
<defs> |
||||
<linearGradient id="unified-search__result-placeholder-gradient"> |
||||
<stop offset="0%" stop-color="#ededed"><animate attributeName="stop-color" |
||||
values="#ededed; #ededed; #cccccc; #cccccc; #ededed" |
||||
dur="2s" |
||||
repeatCount="indefinite" /></stop> |
||||
<stop offset="100%" stop-color="#cccccc"><animate attributeName="stop-color" |
||||
values="#cccccc; #ededed; #ededed; #cccccc; #cccccc" |
||||
dur="2s" |
||||
repeatCount="indefinite" /></stop> |
||||
</linearGradient> |
||||
</defs> |
||||
<rect class="unified-search__result-placeholder-icon" /> |
||||
<rect class="unified-search__result-placeholder-line-one" /> |
||||
<rect class="unified-search__result-placeholder-line-two" :style="{width: `calc(${randWidth}%)`}" /> |
||||
</svg> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: 'SearchResultPlaceholder', |
||||
|
||||
data() { |
||||
return { |
||||
randWidth: Math.floor(Math.random() * 20) + 30, |
||||
} |
||||
}, |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss" scoped> |
||||
$clickable-area: 44px; |
||||
$margin: 10px; |
||||
|
||||
.unified-search__result-placeholder { |
||||
width: calc(100% - 2 * #{$margin}); |
||||
height: $clickable-area; |
||||
margin: $margin; |
||||
|
||||
&-icon { |
||||
width: $clickable-area; |
||||
height: $clickable-area; |
||||
rx: var(--border-radius); |
||||
ry: var(--border-radius); |
||||
} |
||||
|
||||
&-line-one, |
||||
&-line-two { |
||||
width: calc(100% - #{$margin + $clickable-area}); |
||||
height: 1em; |
||||
x: $margin + $clickable-area; |
||||
} |
||||
|
||||
&-line-one { |
||||
y: 5px; |
||||
} |
||||
|
||||
&-line-two { |
||||
y: 25px; |
||||
} |
||||
} |
||||
|
||||
</style> |
||||
Loading…
Reference in new issue