mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-04 10:50:46 +00:00
Remove Micro UI
This commit is contained in:
parent
b9a6f3ab5f
commit
0ec80e51e8
3 changed files with 0 additions and 99 deletions
|
@ -1,56 +0,0 @@
|
||||||
<template>
|
|
||||||
<div></div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style type="text/css" scoped>
|
|
||||||
body {
|
|
||||||
background-color: #ECECEC;
|
|
||||||
}
|
|
||||||
.bg-alt {
|
|
||||||
background-color: #2C2E3B;
|
|
||||||
}
|
|
||||||
.cursor-pointer {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.ql-container {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
footer: {
|
|
||||||
about: '/site/about',
|
|
||||||
help: '/site/help',
|
|
||||||
classic: '/'
|
|
||||||
},
|
|
||||||
loading: true,
|
|
||||||
profile: {},
|
|
||||||
page: 1,
|
|
||||||
activeFeed: 'home',
|
|
||||||
homeFeed: [],
|
|
||||||
notifications: {},
|
|
||||||
composeType: false,
|
|
||||||
notes: {
|
|
||||||
active: false,
|
|
||||||
status_id: null,
|
|
||||||
username: null,
|
|
||||||
like_count: 0,
|
|
||||||
share_count: 0,
|
|
||||||
replies: [],
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
profileCard: {
|
|
||||||
account: {
|
|
||||||
avatar: null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
quill: false,
|
|
||||||
searching: false
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
40
resources/assets/js/micro.js
vendored
40
resources/assets/js/micro.js
vendored
|
@ -1,40 +0,0 @@
|
||||||
require('./bootstrap');
|
|
||||||
|
|
||||||
window.Vue = require('vue');
|
|
||||||
import BootstrapVue from 'bootstrap-vue'
|
|
||||||
import InfiniteLoading from 'vue-infinite-loading';
|
|
||||||
import Loading from 'vue-loading-overlay';
|
|
||||||
import VueTimeago from 'vue-timeago';
|
|
||||||
//import {Howl, Howler} from 'howler';
|
|
||||||
|
|
||||||
Vue.use(BootstrapVue);
|
|
||||||
Vue.use(InfiniteLoading);
|
|
||||||
Vue.use(Loading);
|
|
||||||
Vue.use(VueTimeago);
|
|
||||||
|
|
||||||
pixelfed.readmore = () => {
|
|
||||||
$('.read-more').each(function(k,v) {
|
|
||||||
let el = $(this);
|
|
||||||
let attr = el.attr('data-readmore');
|
|
||||||
if(typeof attr !== typeof undefined && attr !== false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
el.readmore({
|
|
||||||
collapsedHeight: 44,
|
|
||||||
heightMargin: 20,
|
|
||||||
moreLink: '<a href="#" class="font-weight-bold small">Read more</a>',
|
|
||||||
lessLink: '<a href="#" class="font-weight-bold small">Hide</a>',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
document.createEvent("TouchEvent");
|
|
||||||
$('body').addClass('touch');
|
|
||||||
} catch (e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
Vue.component(
|
|
||||||
'micro',
|
|
||||||
require('./components/Micro.vue').default
|
|
||||||
);
|
|
3
webpack.mix.js
vendored
3
webpack.mix.js
vendored
|
@ -28,9 +28,6 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
// Timeline component
|
// Timeline component
|
||||||
.js('resources/assets/js/timeline.js', 'public/js')
|
.js('resources/assets/js/timeline.js', 'public/js')
|
||||||
|
|
||||||
// MicroUI component
|
|
||||||
.js('resources/assets/js/micro.js', 'public/js')
|
|
||||||
|
|
||||||
// LandingPage component
|
// LandingPage component
|
||||||
.js('resources/assets/js/landing.js', 'public/js')
|
.js('resources/assets/js/landing.js', 'public/js')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue