mirror of https://github.com/pixelfed/pixelfed
commit
59f156510d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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>
|
||||
@ -0,0 +1,4 @@
|
||||
Vue.component(
|
||||
'compose-modal',
|
||||
require('./components/ComposeModal.vue').default
|
||||
);
|
||||
@ -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
|
||||
);
|
||||
@ -1,76 +1 @@
|
||||
<div class="card card-md-rounded-0">
|
||||
<div class="card-header bg-white font-weight-bold d-inline-flex justify-content-between">
|
||||
<div>{{__('Create New Post')}}</div>
|
||||
</div>
|
||||
<div class="card-body" id="statusForm">
|
||||
|
||||
<form method="post" action="{{route('timeline.personal')}}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="filter_name" value="">
|
||||
<input type="hidden" name="filter_class" value="">
|
||||
<div class="form-group">
|
||||
<div class="custom-file">
|
||||
<input type="file" class="custom-file-input" id="fileInput" name="photo[]" accept="{{config('pixelfed.media_types')}}" multiple="">
|
||||
<label class="custom-file-label" for="fileInput">Upload Image(s)</label>
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp. Limited to {{config('pixelfed.max_album_length')}} photos per post.
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" name="caption" placeholder="Add optional caption here" autocomplete="off" data-limit="{{config('pixelfed.max_caption_length')}}" rows="1"></textarea>
|
||||
<p class="form-text text-muted small text-right">
|
||||
<span class="caption-counter">0</span>
|
||||
<span>/</span>
|
||||
<span>{{config('pixelfed.max_caption_length')}}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-outline-primary btn-sm px-3 py-1 font-weight-bold" type="button" data-toggle="collapse" data-target="#collapsePreview" aria-expanded="false" aria-controls="collapsePreview">
|
||||
Options <i class="fas fa-chevron-down"></i>
|
||||
</button>
|
||||
<div class="collapse" id="collapsePreview">
|
||||
<div class="form-group pt-3">
|
||||
<label class="font-weight-bold text-muted small">Visibility</label>
|
||||
<div class="switch switch-sm">
|
||||
<select class="form-control" name="visibility">
|
||||
<option value="public" selected="">Public</option>
|
||||
<option value="unlisted">Unlisted (hidden from public timelines)</option>
|
||||
<option value="private">Followers Only</option>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
Set the visibility of this post.
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="font-weight-bold text-muted small">CW/NSFW</label>
|
||||
<div class="switch switch-sm">
|
||||
<input type="checkbox" class="switch" id="cw-switch" name="cw">
|
||||
<label for="cw-switch" class="small font-weight-bold">(Default off)</label>
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
Please mark all NSFW and controversial content, as per our content policy.
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group d-none form-preview">
|
||||
<label class="font-weight-bold text-muted small">Photo Preview</label>
|
||||
<figure class="filterContainer">
|
||||
<img class="filterPreview img-fluid">
|
||||
</figure>
|
||||
<small class="form-text text-muted font-weight-bold">
|
||||
No filter selected.
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group d-none form-filters">
|
||||
<label for="filterSelectDropdown" class="font-weight-bold text-muted small">Select Filter</label>
|
||||
<select class="form-control" id="filterSelectDropdown">
|
||||
<option value="none" selected="">No Filter</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-outline-primary btn-block font-weight-bold">Create Post</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<compose-modal></compose-modal>
|
||||
Loading…
Reference in New Issue