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
9 changes: 0 additions & 9 deletions LICENSES/BSD-2-Clause.txt

This file was deleted.

2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SPDX-FileCopyrightText = "2017 Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["js/**.js.map", "js/**.js", "js/**.mjs", "js/**.mjs.map", "js/templates/**.handlebars", "emptyTemplates/**", "vendor/autoload.php"]
path = ["js/**.js.map", "js/**.js", "js/**.mjs", "js/**.mjs.map", "js/templates/**.handlebars", "emptyTemplates/**", "vendor/autoload.php", "css/*"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2017 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Expand Down
1 change: 1 addition & 0 deletions css/UserApp-jaxjqvto.chunk.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[data-v-aef5ea77] .modal-container{display:flex;height:100%}
1 change: 1 addition & 0 deletions css/_plugin-vue_export-helper-CfJ8J9U1.chunk.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions css/admin-ClZCGzpw.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/logger-BPXfPjuZ.chunk.css

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

1 change: 1 addition & 0 deletions css/registration-BkdJ1_Yv.chunk.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[data-v-86b36221] .modal-container{display:flex;height:100%}
7 changes: 7 additions & 0 deletions css/style-DEOFYSaj.chunk.css

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

4 changes: 4 additions & 0 deletions css/terms_of_service-admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* extracted by css-entry-points-plugin */
@import './admin-ClZCGzpw.chunk.css';
@import './_plugin-vue_export-helper-CfJ8J9U1.chunk.css';
@import './style-DEOFYSaj.chunk.css';
4 changes: 4 additions & 0 deletions css/terms_of_service-public.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* extracted by css-entry-points-plugin */
@import './_plugin-vue_export-helper-CfJ8J9U1.chunk.css';
@import './logger-BPXfPjuZ.chunk.css';
@import './UserApp-jaxjqvto.chunk.css';
5 changes: 5 additions & 0 deletions css/terms_of_service-registration.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* extracted by css-entry-points-plugin */
@import './registration-BkdJ1_Yv.chunk.css';
@import './_plugin-vue_export-helper-CfJ8J9U1.chunk.css';
@import './logger-BPXfPjuZ.chunk.css';
@import './style-DEOFYSaj.chunk.css';
4 changes: 4 additions & 0 deletions css/terms_of_service-user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* extracted by css-entry-points-plugin */
@import './_plugin-vue_export-helper-CfJ8J9U1.chunk.css';
@import './logger-BPXfPjuZ.chunk.css';
@import './UserApp-jaxjqvto.chunk.css';
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { recommended } from '@nextcloud/eslint-config'

export default [
...recommended,
]
2 changes: 2 additions & 0 deletions js/UserApp-vLzITm54.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import{b6 as C,b9 as T,bd as b,r as d,c as r,o as l,f as y,g as h,A as c,V as M,d as m,y as S,t as g,ao as v,ap as k,be as w,b7 as u,b8 as p}from"./_plugin-vue_export-helper-BemuwRpB.chunk.mjs";import{M as B,l as L}from"./logger-Dn3kbj54.chunk.mjs";const H={name:"UserApp",components:{NcModal:b,ModalContent:B},data(){return{showModal:!1,hasSigned:!1,terms:{},languages:[],selectedLanguage:0,termsId:0,termsBody:"",publicContent:null,hasScrolledToBottom:!1}},watch:{selectedLanguage(e){this.selectTerms(e)}},mounted(){this.loadTerms()},methods:{async loadTerms(){try{const e=await u.get(p("/apps/terms_of_service/terms"));this.hasSigned=e.data.ocs.data.hasSigned,this.terms=e.data.ocs.data.terms;const s=OC.getLanguage().split("-")[0];if(!this.terms.length||this.hasSigned)return;this.publicContent=document.getElementById("files-public-content"),this.publicContent!==null&&(this.publicContent.style.visibility="hidden"),this.selectTerms(0),this.terms.length>1&&Object.keys(this.terms).forEach(n=>{s===this.terms[n].languageCode&&(this.selectedLanguage=n),this.languages.push(e.data.ocs.data.languages[this.terms[n].languageCode])}),this.showTerms()}catch(e){L.error("Error loading terms:",e)}},selectTerms(e){this.termsBody=this.terms[e].renderedBody,this.termsId=this.terms[e].id},showTerms(){this.showModal=!0,this.$nextTick(()=>{this.checkScroll()})},acceptTerms(){this.hasSigned=!0,this.showModal=!1;let e="/apps/terms_of_service/sign";this.$root.source==="public"&&(e="/apps/terms_of_service/sign_public"),u.post(p(e),{termId:this.termsId}).then(()=>{window.location.reload()})},handleCloseModal(){this.showModal=!1},checkScroll(){const e=this.$refs.termsContent,s=e.scrollHeight>e.clientHeight;this.hasScrolledToBottom=!s||e.scrollHeight-e.scrollTop<=e.clientHeight+1},t:T}},I={id:"terms_of_service_confirm"},x=["value"],E=["innerHTML"];function A(e,s,n,N,t,o){const f=d("ModalContent"),_=d("NcModal");return l(),r("div",I,[t.showModal?(l(),y(_,{key:0,"no-close":!t.hasSigned,onClose:o.handleCloseModal},{default:c(()=>[M(f,{"is-scroll-complete":t.hasScrolledToBottom,onClick:o.acceptTerms},{header:c(()=>[m("h3",null,g(o.t("terms_of_service","Terms of service")),1),t.terms.length>1?S((l(),r("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=a=>t.selectedLanguage=a)},[(l(!0),r(v,null,k(t.languages,(a,i)=>(l(),r("option",{key:i,value:i},g(a),9,x))),128))],512)),[[w,t.selectedLanguage]]):h("",!0)]),default:c(()=>[m("div",{ref:"termsContent",class:"text-content",onScroll:s[1]||(s[1]=(...a)=>o.checkScroll&&o.checkScroll(...a)),innerHTML:t.termsBody},null,40,E)]),_:1},8,["is-scroll-complete","onClick"])]),_:1},8,["no-close","onClose"])):h("",!0)])}const $=C(H,[["render",A],["__scopeId","data-v-aef5ea77"]]);export{$ as U};
//# sourceMappingURL=UserApp-vLzITm54.chunk.mjs.map
7 changes: 7 additions & 0 deletions js/UserApp-vLzITm54.chunk.mjs.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Joas Schilling <[email protected]>

This file is generated from multiple sources. Included packages:
- terms_of_service
- version: 4.7.0-rc.1
- license: AGPL-3.0-or-later
Loading
Loading