Skip to content

Commit d9cc399

Browse files
authored
Merge pull request #227 from nextcloud/bugfix/224/video-polish
Firstrun video polishing
2 parents 793b15e + 3a3939c commit d9cc399

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

img/Nextcloud.mp4

452 KB
Binary file not shown.

js/firstrunwizard.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/firstrunwizard.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/AppInfo/Application.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ protected function registerScripts() {
8181
if ($config->getUserValue($user->getUID(), 'firstrunwizard', 'show', '1') !== '0') {
8282
\OC_Util::addScript('firstrunwizard', 'activate');
8383

84-
/** @var IInitialStateService $initialState */
85-
$initialState = $server->query(IInitialStateService::class);
86-
$initialState->provideLazyInitialState('firstrunwizard', 'hasVideo', function () use ($server) {
87-
$userHome = $server->getUserFolder();
88-
return $userHome->nodeExists('/Nextcloud intro.mp4');
89-
});
90-
9184
$jobList = $this->getContainer()->getServer()->getJobList();
9285
$jobList->add('OCA\FirstRunWizard\Notification\BackgroundJob', ['uid' => $userSession->getUser()->getUID()]);
9386
}
9487
$appHint->sendAppHintNotifications();
88+
89+
/** @var IInitialStateService $initialState */
90+
$initialState = $server->query(IInitialStateService::class);
91+
$initialState->provideLazyInitialState('firstrunwizard', 'hasVideo', function () use ($server) {
92+
// currently unused but let's keep this for now as it might be used later for theming
93+
return true;
94+
});
9595
});
9696
}
9797

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export default {
364364
data() {
365365
return {
366366
showModal: false,
367-
withIntro: false,
367+
withIntro: true,
368368
hasVideo,
369369
slides: [],
370370
currentSlide: 0,
@@ -416,7 +416,7 @@ export default {
416416
console.error('Failed to load slides')
417417
}
418418
},
419-
async open(withIntro = false) {
419+
async open(withIntro = true) {
420420
await this.loadStaticSlides()
421421
this.withIntro = withIntro
422422
this.showModal = true

src/components/IntroVideo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
</template>
3434

3535
<script>
36-
import { generateFilePath, generateRemoteUrl } from '@nextcloud/router'
36+
import { generateFilePath } from '@nextcloud/router'
3737
3838
export default {
3939
name: 'IntroVideo',
4040
data() {
4141
return {
42-
videoMp4: generateRemoteUrl('webdav') + 'Nextcloud%20intro.mp4',
42+
videoMp4: generateFilePath('firstrunwizard', 'img', 'Nextcloud.mp4'),
4343
videoWebm: generateFilePath('firstrunwizard', 'img', 'Nextcloud.webm'),
4444
}
4545
},

0 commit comments

Comments
 (0)