|
@@ -14,11 +14,11 @@
|
|
|
<p class="lead text-lighter font-weight-light mb-0">Stories</p>
|
|
|
</div>
|
|
|
<div class="flex-fill py-4">
|
|
|
- <p class="text-center lead font-weight-light text-lighter mb-4">Share moments with followers that last 24 hours</p>
|
|
|
+ <p class="text-center lead font-weight-light text-lighter mb-4">{{ $t("story.shareWithFollowers")}}</p>
|
|
|
<div class="card w-100 shadow-none bg-transparent">
|
|
|
<div class="d-flex">
|
|
|
<button type="button" class="btn btn-outline-light btn-lg font-weight-bold btn-block rounded-pill my-1" :disabled="stories.length >= 20" @click="upload()">
|
|
|
- Add to Story
|
|
|
+ {{ $t("story.add")}}
|
|
|
</button>
|
|
|
<!-- <button :disabled="stories.length >= 20" type="button" class="btn btn-outline-light btn-lg font-weight-bold btn-block rounded-pill my-1 ml-2" @click="newPoll">
|
|
|
Create Poll
|
|
@@ -27,7 +27,7 @@
|
|
|
<p
|
|
|
v-if="stories.length >= 20"
|
|
|
class="font-weight-bold text-muted text-center">
|
|
|
- You have reached the limit for new stories
|
|
|
+ {{ $t("story.limit") }}
|
|
|
</p>
|
|
|
|
|
|
<button
|
|
@@ -35,7 +35,7 @@
|
|
|
class="btn btn-outline-light btn-lg font-weight-bold btn-block rounded-pill my-3"
|
|
|
@click="viewMyStory"
|
|
|
:disabled="stories.length == 0">
|
|
|
- <span>My Story</span>
|
|
|
+ <span>{{ $t("story.myStory") }}</span>
|
|
|
<sup v-if="stories.length" class="ml-2 px-2 text-light bg-danger rounded-pill" style="font-size: 12px;padding-top:2px;padding-bottom:3px;">{{ stories.length }}</sup>
|
|
|
</button>
|
|
|
|
|
@@ -45,7 +45,7 @@
|
|
|
<p class="text-uppercase mb-0">
|
|
|
<a href="/" class="text-lighter font-weight-bold">Home</a>
|
|
|
<span class="px-2 text-lighter">|</span>
|
|
|
- <a href="/site/help" class="text-lighter font-weight-bold">Help</a>
|
|
|
+ <a href="/site/help" class="text-lighter font-weight-bold">{{ $t("navmenu.help")}}</a>
|
|
|
</p>
|
|
|
<p class="small text-muted mb-0">v 1.0.0</p>
|
|
|
</div>
|
|
@@ -73,19 +73,19 @@
|
|
|
type="button"
|
|
|
class="btn btn-outline-muted rounded-pill font-weight-bold px-4"
|
|
|
@click="deleteCurrentStory()">
|
|
|
- Cancel
|
|
|
+ {{ $t("story.cancel")}}
|
|
|
</button>
|
|
|
|
|
|
<div class="text-center">
|
|
|
- <h4 class="font-weight-light text-light mb-n1">Crop</h4>
|
|
|
- <span class="small text-light">Pan around and pinch to zoom</span>
|
|
|
+ <h4 class="font-weight-light text-light mb-n1">{{ $t("story.crop")}}</h4>
|
|
|
+ <span class="small text-light">{{ $t("story.zoom") }}</span>
|
|
|
</div>
|
|
|
|
|
|
<button
|
|
|
type="button"
|
|
|
class="btn btn-outline-light rounded-pill font-weight-bold px-4"
|
|
|
@click="performCrop()">
|
|
|
- Next
|
|
|
+ {{ $t("story.next") }}
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -97,23 +97,23 @@
|
|
|
<p class="lead text-lighter font-weight-light mb-0">Stories</p>
|
|
|
</div>
|
|
|
<div class="flex-fill text-center">
|
|
|
- <p class="h3 mb-0 text-light">Oops!</p>
|
|
|
- <p class="text-muted lead">An error occurred, please try again later.</p>
|
|
|
+ <p class="h3 mb-0 text-light">{{ $t("common.oops") }}</p>
|
|
|
+ <p class="text-muted lead">{{ $t("common.errorMsg")}}</p>
|
|
|
<p class="text-muted mb-0">
|
|
|
- <a class="btn btn-outline-muted py-0 px-5 rounded-pill font-weight-bold" href="/">Go back</a>
|
|
|
+ <a class="btn btn-outline-muted py-0 px-5 rounded-pill font-weight-bold" href="/">{{ $t("story.goBack") }}</a>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div v-else-if="page == 'uploading'" class="card card-body bg-transparent border-0 shadow-none d-flex justify-content-center align-items-center" style="height: 90vh;">
|
|
|
<div class="spinner-border text-lighter" role="status">
|
|
|
- <span class="sr-only">Loading...</span>
|
|
|
+ <span class="sr-only">{{ $t('common.loading') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div v-else-if="page == 'cropping'" class="card card-body bg-transparent border-0 shadow-none d-flex justify-content-center align-items-center" style="height: 90vh;">
|
|
|
<div class="spinner-border text-lighter" role="status">
|
|
|
- <span class="sr-only">Loading...</span>
|
|
|
+ <span class="sr-only">{{ $t('common.loading') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -124,31 +124,31 @@
|
|
|
</div>
|
|
|
<div class="flex-fill">
|
|
|
<div class="form-group pb-3">
|
|
|
- <label for="durationSlider" class="text-light lead font-weight-bold">Options</label>
|
|
|
+ <label for="durationSlider" class="text-light lead font-weight-bold">{{ $t("story.options") }}</label>
|
|
|
<div class="custom-control custom-checkbox mb-2">
|
|
|
<input type="checkbox" class="custom-control-input" id="optionReplies" v-model="canReply">
|
|
|
- <label class="custom-control-label text-light font-weight-lighter" for="optionReplies">Allow replies</label>
|
|
|
+ <label class="custom-control-label text-light font-weight-lighter" for="optionReplies">{{ $t("story.allowReplies") }}</label>
|
|
|
</div>
|
|
|
<div class="custom-control custom-checkbox mb-2">
|
|
|
<input type="checkbox" class="custom-control-input" id="formReactions" v-model="canReact">
|
|
|
- <label class="custom-control-label text-light font-weight-lighter" for="formReactions">Allow reactions</label>
|
|
|
+ <label class="custom-control-label text-light font-weight-lighter" for="formReactions">{{ $t("story.allowReactions") }}</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="!canPostPoll" class="form-group">
|
|
|
<video ref="previewVideo" v-if="mediaType == 'video'" class="mb-4 w-100" style="max-height:200px;object-fit:contain;">
|
|
|
<source :src="mediaUrl" type="video/mp4">
|
|
|
</video>
|
|
|
- <label for="durationSlider" class="text-light lead font-weight-bold">Story Duration</label>
|
|
|
+ <label for="durationSlider" class="text-light lead font-weight-bold">{{ $t("story.storyDuration") }}</label>
|
|
|
<input type="range" class="custom-range" min="3" :max="max_duration" step="1" id="durationSlider" v-model="duration">
|
|
|
<p class="help-text text-center">
|
|
|
- <span class="text-light">{{duration}} seconds</span>
|
|
|
+ <span class="text-light">{{duration}} {{ $t("story.seconds") }}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-fill w-100 px-md-5">
|
|
|
<div class="d-flex">
|
|
|
<a class="btn btn-outline-muted btn-block font-weight-bold my-3 mr-3 rounded-pill" href="/" @click.prevent="deleteCurrentStory()">
|
|
|
- Cancel
|
|
|
+ {{ $t("story.cancel") }}
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-primary btn-block font-weight-bold my-3 rounded-pill" href="#" @click.prevent="shareStoryToFollowers()">
|
|
@@ -166,7 +166,7 @@
|
|
|
<p class="text-muted font-weight-bold mb-0">STORIES</p>
|
|
|
</div>
|
|
|
<div class="flex-fill py-4">
|
|
|
- <p class="lead font-weight-bold text-lighter">My Stories</p>
|
|
|
+ <p class="lead font-weight-bold text-lighter">{{ $t('story.myStories') }}</p>
|
|
|
<div class="card w-100 shadow-none bg-transparent" style="max-height: 50vh; overflow-y: scroll">
|
|
|
<div class="list-group">
|
|
|
<div v-for="(story, index) in stories" class="list-group-item bg-transparent text-center border-muted text-lighter" href="#">
|
|
@@ -187,7 +187,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="story.showViewers && story.viewers.length" class="m-2 text-left">
|
|
|
- <p class="font-weight-bold mb-2">Viewed By</p>
|
|
|
+ <p class="font-weight-bold mb-2">{{ $t("story.viewdBy") }}</p>
|
|
|
<div v-for="viewer in story.viewers" class="d-flex">
|
|
|
<img src="/storage/avatars/default.png" width="24" height="24" class="rounded-circle mr-2">
|
|
|
<p class="mb-0 font-weight-bold">viewer.username</p>
|
|
@@ -198,7 +198,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-fill text-center">
|
|
|
- <a class="btn btn-outline-secondary btn-block px-5 font-weight-bold" href="/i/stories/new" @click.prevent="goBack()">Go back</a>
|
|
|
+ <a class="btn btn-outline-secondary btn-block px-5 font-weight-bold" href="/i/stories/new" @click.prevent="goBack()">{{ $t("story.goBack") }}</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -237,8 +237,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-fill text-center">
|
|
|
- <a v-if="canPostPoll" class="btn btn-outline-light btn-block px-5 font-weight-bold rounded-pill" href="/i/stories/new" @click.prevent="pollPreview">Next</a>
|
|
|
- <a class="btn btn-outline-secondary btn-block px-5 font-weight-bold rounded-pill" href="/i/stories/new" @click.prevent="goBack()">Go back</a>
|
|
|
+ <a v-if="canPostPoll" class="btn btn-outline-light btn-block px-5 font-weight-bold rounded-pill" href="/i/stories/new" @click.prevent="pollPreview">{{ $t("story.next")}}</a>
|
|
|
+ <a class="btn btn-outline-secondary btn-block px-5 font-weight-bold rounded-pill" href="/i/stories/new" @click.prevent="goBack()">{{ $t('story.goBack')}}</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -247,7 +247,7 @@
|
|
|
<div class="col-12 col-md-6 offset-md-3 bg-dark rounded-lg px-0" style="height: 90vh;">
|
|
|
<div class="w-100 h-100 d-flex justify-content-center align-items-center">
|
|
|
<div class="spinner-border text-lighter" role="status">
|
|
|
- <span class="sr-only">Loading...</span>
|
|
|
+ <span class="sr-only">{{ $t('common.loading') }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|