-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1162 from nextcloud/backport/1145/stable29
[stable29] feat: Add Nextcloud Hub changelog
- Loading branch information
Showing
42 changed files
with
1,203 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": ["@nextcloud"] | ||
"extends": ["@nextcloud/eslint-config/typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
function __vite__mapDeps(indexes) { | ||
if (!__vite__mapDeps.viteFileDeps) { | ||
__vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-grmXwU92.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] | ||
__vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-rS92LHob.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] | ||
} | ||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) | ||
} | ||
/*! third party licenses: js/vendor.LICENSE.txt */ | ||
import{_ as i}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",function(){const o=document.querySelector("#firstrunwizard_about button"),t=()=>{document.querySelector("#firstrunwizard_about button").addEventListener("click",async function(e){var n;e.stopPropagation(),e.preventDefault();const r=(n=document.querySelector('[aria-controls="header-menu-user-menu"]'))!=null?n:void 0,{open:u}=await i(()=>import("./main-grmXwU92.mjs"),__vite__mapDeps([0,1]),import.meta.url);u(r),OC.hideMenus(()=>!1)})};o?t():window._nc_event_bus.subscribe("core:user-menu:mounted",t)}); | ||
import{_ as i}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",function(){const o=document.querySelector("#firstrunwizard_about button"),t=()=>{document.querySelector("#firstrunwizard_about button").addEventListener("click",async function(e){var n;e.stopPropagation(),e.preventDefault();const r=(n=document.querySelector('[aria-controls="header-menu-user-menu"]'))!=null?n:void 0,{open:u}=await i(()=>import("./main-rS92LHob.mjs"),__vite__mapDeps([0,1]),import.meta.url);u(r),OC.hideMenus(()=>!1)})};o?t():window._nc_event_bus.subscribe("core:user-menu:mounted",t)}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
function __vite__mapDeps(indexes) { | ||
if (!__vite__mapDeps.viteFileDeps) { | ||
__vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-grmXwU92.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] | ||
__vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-rS92LHob.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] | ||
} | ||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) | ||
} | ||
/*! third party licenses: js/vendor.LICENSE.txt */ | ||
import{_ as t}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",async function(){(await t(()=>import("./main-grmXwU92.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()}); | ||
import{_ as t}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",async function(){(await t(()=>import("./main-rS92LHob.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2024 Ferdinand Thiessen <[email protected]> | ||
* | ||
* @author Ferdinand Thiessen <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* 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\FirstRunWizard; | ||
|
||
class Constants { | ||
/** | ||
* Version for which the latest changelog entries are available | ||
* This is used to decide if we show the wizard for users on an update | ||
*/ | ||
public const CHANGELOG_VERSION = '29.0.0'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
- | ||
- @author Simon Lindner <[email protected]> | ||
- @author Marco Ambrosini <[email protected]> | ||
- @author Ferdinand Thiessen <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
@@ -22,78 +23,67 @@ | |
--> | ||
|
||
<template> | ||
<a class="app-store-badge" | ||
<a :class="$style.badge" | ||
:aria-label="ariaLabel" | ||
target="_blank" | ||
rel="noreferrer" | ||
:href="href" | ||
:style="badgeStyle" /> | ||
:href="href" /> | ||
</template> | ||
|
||
<script> | ||
import { imagePath } from '@nextcloud/router' | ||
<script setup lang="ts"> | ||
import { loadState } from '@nextcloud/initial-state' | ||
import { translate as t } from '@nextcloud/l10n' | ||
import { imagePath } from '@nextcloud/router' | ||
import { computed } from 'vue' | ||
|
||
const android = loadState('firstrunwizard', 'android') | ||
const ios = loadState('firstrunwizard', 'ios') | ||
|
||
export default { | ||
name: 'AppStoreBadge', | ||
|
||
props: { | ||
type: { | ||
type: String, | ||
required: true, | ||
validator: type => ['ios', 'android'].includes(type), | ||
}, | ||
}, | ||
const props = defineProps<{ | ||
type: 'ios' | 'android' | ||
}>() | ||
|
||
data() { | ||
return { | ||
android, | ||
ios, | ||
} | ||
}, | ||
const android = loadState<string>('firstrunwizard', 'android') | ||
const ios = loadState<string>('firstrunwizard', 'ios') | ||
|
||
computed: { | ||
imagePath() { | ||
if (this.type === 'ios') { | ||
return imagePath('firstrunwizard', 'iosBadge.png') | ||
} else if (this.type === 'android') { | ||
return imagePath('firstrunwizard', 'androidBadge.png') | ||
} | ||
return undefined | ||
}, | ||
/** | ||
* Path to the app store badge image | ||
*/ | ||
const badgeImagePath = computed(() => { | ||
if (props.type === 'ios') { | ||
return imagePath('firstrunwizard', 'iosBadge.png') | ||
} else if (props.type === 'android') { | ||
return imagePath('firstrunwizard', 'androidBadge.png') | ||
} | ||
return undefined | ||
}) | ||
|
||
badgeStyle() { | ||
return { backgroundImage: 'url(' + this.imagePath + ')' } | ||
}, | ||
/** | ||
* The badge image as CSS source URL | ||
*/ | ||
const cssBackgroundImage = computed(() => `url('${badgeImagePath.value}')`) | ||
|
||
href() { | ||
if (this.type === 'ios') { | ||
return this.ios | ||
} else if (this.type === 'android') { | ||
return this.android | ||
} | ||
return undefined | ||
}, | ||
const href = computed(() => { | ||
if (props.type === 'ios') { | ||
return ios | ||
} else if (props.type === 'android') { | ||
return android | ||
} | ||
return undefined | ||
}) | ||
|
||
ariaLabel() { | ||
if (this.type === 'ios') { | ||
return t('firstrunwizard', 'Download on Apple app store') | ||
} else if (this.type === 'android') { | ||
return t('firstrunwizard', 'Download on Google play store') | ||
} | ||
return undefined | ||
}, | ||
}, | ||
} | ||
const ariaLabel = computed(() => { | ||
if (props.type === 'ios') { | ||
return t('firstrunwizard', 'Download on Apple app store') | ||
} else if (props.type === 'android') { | ||
return t('firstrunwizard', 'Download on Google play store') | ||
} | ||
return undefined | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.app-store-badge { | ||
<style module lang="scss"> | ||
.badge { | ||
height: 74px; | ||
width: 250px; | ||
background-image: v-bind(cssBackgroundImage); | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
&:focus-visible { | ||
|
Oops, something went wrong.