Removed storage.js, long ago replaced by store
This commit is contained in:
@@ -125,7 +125,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import storage from "@/storage";
|
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { sortableSize } from "@/utils";
|
import { sortableSize } from "@/utils";
|
||||||
import { searchTorrents, addMagnet } from "@/api";
|
import { searchTorrents, addMagnet } from "@/api";
|
||||||
|
|||||||
@@ -81,7 +81,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters, mapActions } from "vuex";
|
import { mapGetters, mapActions } from "vuex";
|
||||||
import storage from "@/storage";
|
|
||||||
import SeasonedInput from "@/components/ui/SeasonedInput";
|
import SeasonedInput from "@/components/ui/SeasonedInput";
|
||||||
import SeasonedButton from "@/components/ui/SeasonedButton";
|
import SeasonedButton from "@/components/ui/SeasonedButton";
|
||||||
import SeasonedMessages from "@/components/ui/SeasonedMessages";
|
import SeasonedMessages from "@/components/ui/SeasonedMessages";
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapActions } from "vuex";
|
import { mapActions } from "vuex";
|
||||||
import { login } from "@/api";
|
import { login } from "@/api";
|
||||||
import storage from "@/storage";
|
|
||||||
import SeasonedInput from "@/components/ui/SeasonedInput";
|
import SeasonedInput from "@/components/ui/SeasonedInput";
|
||||||
import SeasonedButton from "@/components/ui/SeasonedButton";
|
import SeasonedButton from "@/components/ui/SeasonedButton";
|
||||||
import SeasonedMessages from "@/components/ui/SeasonedMessages";
|
import SeasonedMessages from "@/components/ui/SeasonedMessages";
|
||||||
@@ -89,8 +88,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
document.title = "Sign in" + storage.pageTitlePostfix;
|
document.title = `Sign in — ${document.title}`;
|
||||||
storage.backTitle = document.title;
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
111
src/storage.js
111
src/storage.js
@@ -1,111 +0,0 @@
|
|||||||
let storage = {
|
|
||||||
apiKey: 'a70dbfe19b800809dfdd3e89e8532c9e',
|
|
||||||
token: localStorage.getItem('token') || null,
|
|
||||||
username: localStorage.getItem('username') || null,
|
|
||||||
admin: localStorage.getItem('admin') || null,
|
|
||||||
pageTitlePostfix: ' — ' + document.title,
|
|
||||||
homepageLists: [
|
|
||||||
{
|
|
||||||
title: 'Requests',
|
|
||||||
route: 'request',
|
|
||||||
// icon: require('@/assets/icons/request.svg'),
|
|
||||||
path: 'v2/request'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Now Playing',
|
|
||||||
route: 'now_playing',
|
|
||||||
// icon: require('@/assets/icons/now_playing.svg'),
|
|
||||||
path: 'v2/movie/now_playing'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Popular',
|
|
||||||
route: 'popular',
|
|
||||||
// icon: require('@/assets/icons/popular.svg'),
|
|
||||||
path: 'v2/movie/popular'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Upcoming',
|
|
||||||
route: 'upcoming',
|
|
||||||
// icon: require('@/assets/icons/upcoming.svg'),
|
|
||||||
path: 'v2/movie/upcoming'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
user_requestsList: {
|
|
||||||
title: 'user requests',
|
|
||||||
route: 'profile/requests',
|
|
||||||
// icon: require('@/assets/icons/upcoming.svg'),
|
|
||||||
path: 'v1/user/requests'
|
|
||||||
},
|
|
||||||
assets: {
|
|
||||||
icons: {
|
|
||||||
// upcoming: require('@/assets/icons/upcoming.svg')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
listTypes: [
|
|
||||||
{
|
|
||||||
title: 'Your Requests',
|
|
||||||
shortTitle: 'User Requests',
|
|
||||||
query: 'user-requests',
|
|
||||||
name: 'user-requests',
|
|
||||||
type: 'user-requests',
|
|
||||||
isProfileContent: true
|
|
||||||
// isCategory: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Requested Movies & Shows',
|
|
||||||
shortTitle: 'Requested',
|
|
||||||
query: 'requests',
|
|
||||||
name: 'home-category',
|
|
||||||
type: 'requests', // Maybe change to separate group
|
|
||||||
isCategory: true,
|
|
||||||
isProfileContent: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Upcoming Movies',
|
|
||||||
shortTitle: 'Upcoming',
|
|
||||||
query: 'upcoming',
|
|
||||||
name: 'home-category',
|
|
||||||
type: 'collection',
|
|
||||||
isCategory: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Now Playing Movies',
|
|
||||||
shortTitle: 'Now Playing',
|
|
||||||
query: 'nowplaying',
|
|
||||||
name: 'home-category',
|
|
||||||
type: 'collection',
|
|
||||||
isCategory: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Popular Movies',
|
|
||||||
shortTitle: 'Popular',
|
|
||||||
query: 'popular',
|
|
||||||
name: 'home-category',
|
|
||||||
type: 'collection',
|
|
||||||
isCategory: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Search Results',
|
|
||||||
query: 'search',
|
|
||||||
isCategory: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Your Favorite Movies',
|
|
||||||
query: 'favorite',
|
|
||||||
isCategory: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
categories: {},
|
|
||||||
// For Browser History
|
|
||||||
backTitle: '',
|
|
||||||
moviePath: '',
|
|
||||||
createMoviePopup: false,
|
|
||||||
moviePopupOnHistory: false
|
|
||||||
};
|
|
||||||
|
|
||||||
// Create categories titles
|
|
||||||
storage.listTypes.forEach(function(listType){
|
|
||||||
storage.categories[listType.query] = listType.title;
|
|
||||||
});
|
|
||||||
|
|
||||||
export default storage;
|
|
||||||
Reference in New Issue
Block a user