Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion js/NcCheckboxRadioSwitch-CqbiLdI-.chunk.mjs.map.license

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/NcCheckboxRadioSwitch-Di8Bp9TK.chunk.mjs.map.license

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/NcProfileHoverCard-DBdEYRaM.chunk.mjs.map.license
1 change: 0 additions & 1 deletion js/NcProfileHoverCard-Dt6jr72a.chunk.mjs.map.license

This file was deleted.

4 changes: 2 additions & 2 deletions js/index-CaKmmcr4.chunk.mjs → js/index-Bh0j2qE0.chunk.mjs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/index-Bh0j2qE0.chunk.mjs.map.license
1 change: 0 additions & 1 deletion js/index-CaKmmcr4.chunk.mjs.map.license

This file was deleted.

10 changes: 5 additions & 5 deletions js/recommendations-dashboard.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/recommendations-dashboard.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/recommendations-main.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("#recommendations[data-v-03834b34]{padding:28px 30px 0 50px;margin-bottom:20px;display:flex;height:86px;overflow:hidden;flex-wrap:wrap;min-width:0}.recommendation-item[data-v-03834b34]{display:flex;align-items:center;flex-grow:1;min-width:250px}@media only screen and (max-width:1200px){#recommendations[data-v-03834b34]{height:initial;max-height:189px}.recommendation-item[data-v-03834b34]{flex-basis:50%;max-width:calc(50% - 15px)}}@media only screen and (max-width:480px){.recommendation-item[data-v-03834b34]{flex-basis:100%;min-width:100%}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
import{M as v,am as w,ar as y,an as m,u as n,k as a,E as d,F as g,ad as h,G as p,C as f,ap as _,m as E,q as b,v as F,ao as T,c as x,aq as u}from"./store-BUdOGViY.chunk.mjs";import{N as C}from"./NcCheckboxRadioSwitch-CqbiLdI-.chunk.mjs";window._nc_files_scope??={},window._nc_files_scope.v4_0??={};const s=window._nc_files_scope.v4_0,H=v().setApp("@nextcloud/files").detectUser().build();var I=class extends EventTarget{dispatchTypedEvent(e,t){return super.dispatchEvent(t)}};class S extends I{}function A(){return s.registry??=new S,s.registry}function k(e){if(O(e),s.fileListHeaders??=new Map,s.fileListHeaders.has(e.id)){H.error(`Header ${e.id} already registered`,{header:e});return}s.fileListHeaders.set(e.id,e),A().dispatchTypedEvent("register:listHeader",new CustomEvent("register:listHeader",{detail:e}))}function O(e){if(!e.id||!e.render||!e.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof e.id!="string")throw new Error("Invalid id property");if(e.enabled!==void 0&&typeof e.enabled!="function")throw new Error("Invalid enabled property");if(e.render&&typeof e.render!="function")throw new Error("Invalid render property");if(e.updated&&typeof e.updated!="function")throw new Error("Invalid updated property")}const q={key:0},L={key:0,id:"recommendations",class:"group"},P={__name:"FilesRecommendations",setup(e){const{enabled:t,loading:o,recommendedFiles:i}=y(m());return(l,c)=>!n(o)&&n(t)?(a(),d("div",q,[n(i).length>0?(a(),d("ul",L,[(a(!0),d(g,null,h(n(i),r=>(a(),d("li",{key:r.id,class:"recommendation-item"},[f(_,{id:r.id,extension:r.extension,mimeType:r.mimeType,name:r.name,directory:r.directory,reason:r.reason,hasPreview:r.hasPreview,timestamp:r.timestamp},null,8,["id","extension","mimeType","name","directory","reason","hasPreview","timestamp"])]))),128))])):p("",!0)])):p("",!0)}},R=w(P,[["__scopeId","data-v-03834b34"]]),V={id:"recommendations-setting-enabled"},G={__name:"RecommendationsSettings",setup(e){const t=m(),o=x({get:()=>t.enabled,set:i=>t.setEnabled(i)});return(i,l)=>(a(),d("div",V,[f(n(C),{id:"recommendationsEnabledToggle",modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=c=>o.value=c)},{default:E(()=>[b(F(n(T)("recommendations","Show recommendations")),1)]),_:1},8,["modelValue"])]))}},M={id:"recommendations",order:90,enabled(e,t){return t.id==="files"&&e.path==="/"},render(e){m().fetchRecommendations(),u(R).mount(e);const t=document.createElement("div");u(G).mount(t),OCA.Files&&OCA.Files.Settings&&OCA.Files.Settings.register(new OCA.Files.Settings.Setting("recommendations",{el:()=>t}))},updated(){}};k(M);
import{M as v,am as w,ar as y,an as m,u as n,k as a,E as d,F as g,ad as h,G as p,C as f,ap as _,m as E,q as b,v as F,ao as T,c as x,aq as u}from"./store-CbAhoamf.chunk.mjs";import{N as C}from"./NcCheckboxRadioSwitch-Di8Bp9TK.chunk.mjs";window._nc_files_scope??={},window._nc_files_scope.v4_0??={};const s=window._nc_files_scope.v4_0,H=v().setApp("@nextcloud/files").detectUser().build();var I=class extends EventTarget{dispatchTypedEvent(e,t){return super.dispatchEvent(t)}};class S extends I{}function A(){return s.registry??=new S,s.registry}function k(e){if(O(e),s.fileListHeaders??=new Map,s.fileListHeaders.has(e.id)){H.error(`Header ${e.id} already registered`,{header:e});return}s.fileListHeaders.set(e.id,e),A().dispatchTypedEvent("register:listHeader",new CustomEvent("register:listHeader",{detail:e}))}function O(e){if(!e.id||!e.render||!e.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof e.id!="string")throw new Error("Invalid id property");if(e.enabled!==void 0&&typeof e.enabled!="function")throw new Error("Invalid enabled property");if(e.render&&typeof e.render!="function")throw new Error("Invalid render property");if(e.updated&&typeof e.updated!="function")throw new Error("Invalid updated property")}const q={key:0},L={key:0,id:"recommendations",class:"group"},P={__name:"FilesRecommendations",setup(e){const{enabled:t,loading:o,recommendedFiles:i}=y(m());return(l,c)=>!n(o)&&n(t)?(a(),d("div",q,[n(i).length>0?(a(),d("ul",L,[(a(!0),d(g,null,h(n(i),r=>(a(),d("li",{key:r.id,class:"recommendation-item"},[f(_,{id:r.id,extension:r.extension,mimeType:r.mimeType,name:r.name,directory:r.directory,reason:r.reason,hasPreview:r.hasPreview,timestamp:r.timestamp},null,8,["id","extension","mimeType","name","directory","reason","hasPreview","timestamp"])]))),128))])):p("",!0)])):p("",!0)}},R=w(P,[["__scopeId","data-v-03834b34"]]),V={id:"recommendations-setting-enabled"},G={__name:"RecommendationsSettings",setup(e){const t=m(),o=x({get:()=>t.enabled,set:i=>t.setEnabled(i)});return(i,l)=>(a(),d("div",V,[f(n(C),{id:"recommendationsEnabledToggle",modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=c=>o.value=c)},{default:E(()=>[b(F(n(T)("recommendations","Show recommendations")),1)]),_:1},8,["modelValue"])]))}},M={id:"recommendations",order:90,enabled(e,t){return t.id==="files"&&e.path==="/"},render(e){m().fetchRecommendations(),u(R).mount(e);const t=document.createElement("div");u(G).mount(t),OCA.Files&&OCA.Files.Settings&&OCA.Files.Settings.register(new OCA.Files.Settings.Setting("recommendations",{el:()=>t}))},updated(){}};k(M);
//# sourceMappingURL=recommendations-main.mjs.map
1 change: 0 additions & 1 deletion js/store-BUdOGViY.chunk.mjs.map.license

This file was deleted.

12 changes: 6 additions & 6 deletions js/store-BUdOGViY.chunk.mjs → js/store-CbAhoamf.chunk.mjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ This file is generated from multiple sources. Included packages:
- version: 0.28.0
- license: MIT
- vue-material-design-icons
- version: 5.3.1
- version: 5.4.0
- license: MIT

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/store-CbAhoamf.chunk.mjs.map.license
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"lodash": "^4.18.1",
"pinia": "^4.1.0",
"vue": "^3.5.44",
"vue-material-design-icons": "^5.3.1"
"vue-material-design-icons": "^5.4.0"
},
"devDependencies": {
"@nextcloud/browserslist-config": "^3.1.2",
"@nextcloud/eslint-config": "^9.0.1",
"@nextcloud/stylelint-config": "^3.2.2",
"@nextcloud/vite-config": "^2.5.4",
"sass": "^1.104.1",
"sass": "^1.106.1",
"vite": "^7.3.7"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache">
<testsuites>
Expand Down
3 changes: 2 additions & 1 deletion src/components/DashboardWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const recommendedFiles = computed(() => store.recommendedFiles.slice(0, 7))
:deep(.recommendation) {
max-width: 100%;
padding: 8px;
margin-right: 0;
margin-inline-end: 0;
border-radius: var(--border-radius-large);

.thumbnail {
Expand All @@ -65,6 +65,7 @@ const recommendedFiles = computed(() => store.recommendedFiles.slice(0, 7))
}
}
}

#recommendations--empty-content {
text-align: center;
margin-top: 5vh;
Expand Down
4 changes: 2 additions & 2 deletions src/components/RecommendedFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function navigate() {
flex-grow: 1;
min-width: 250px;
padding: 5px;
margin-right: 12px;
margin-inline-end: 12px;
border-radius: var(--border-radius);

&:hover,
Expand All @@ -177,7 +177,7 @@ function navigate() {
}

.thumbnail {
margin-right: 9px;
margin-inline-end: 9px;
width: 32px;
height: 32px;
background-size: contain;
Expand Down
5 changes: 2 additions & 3 deletions tests/Unit/Service/RecentlyEditedFilesSourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use OCP\Files\Node;
use OCP\Files\StorageNotAvailableException;
use OCP\IUser;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
Expand Down Expand Up @@ -290,9 +291,7 @@ public function testLoopStopsWhenFewerItemsThanMaxAreAvailable(): void {
$this->assertSame(1, $callCount, 'getRecent should only be called once when the batch is smaller than max');
}

/**
* @dataProvider hiddenPathProvider
*/
#[DataProvider('hiddenPathProvider')]
public function testIsNodeHiddenDetectsHiddenComponents(string $path, bool $expectedHidden): void {
$this->setShowHidden(false);

Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/openapi-extractor/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
}
},
"require-dev": {
"nextcloud/openapi-extractor": "^1.8.7"
"nextcloud/openapi-extractor": "^1.9.1"
}
}
14 changes: 7 additions & 7 deletions vendor-bin/openapi-extractor/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor-bin/phpunit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"sort-packages": true
},
"require-dev": {
"phpunit/phpunit": "^10.5.64"
"phpunit/phpunit": "^11.5"
}
}
Loading
Loading