Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online content view tweaks and various bug fixes #326

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8667f15
Fix dropdowns
samuelthomas2774 Mar 13, 2019
7765d44
Update online plugin/theme views to match local content views
samuelthomas2774 Mar 14, 2019
4925c96
Hide the edit button for packed plugins/themes
samuelthomas2774 Mar 14, 2019
4f2d4fc
Vue events
samuelthomas2774 Mar 14, 2019
6d1c057
Merge remote-tracking branch 'upstream/master' into ui
samuelthomas2774 Mar 16, 2019
c5cfed6
Remove debug logs
samuelthomas2774 Mar 16, 2019
0c361ce
Fix plugins not starting when manually loading all content
samuelthomas2774 Mar 16, 2019
5681cf2
Update inject script for new release format
samuelthomas2774 Mar 17, 2019
b531acf
Use correct path to sparkplug
samuelthomas2774 Mar 17, 2019
685bf5d
Move the client log file outside the client directory
samuelthomas2774 Mar 17, 2019
c479a51
Fix using a custom path to Discord.app on macOS
samuelthomas2774 Mar 17, 2019
2c0909d
Fix development build on Windows
samuelthomas2774 Mar 17, 2019
eb83f8c
Fix reloading packed content
samuelthomas2774 Mar 18, 2019
e3b7880
Allow multiple users to use BetterDiscord on macOS and Linux
samuelthomas2774 Mar 18, 2019
1f1fe1c
Fix selecting user avatars in activity
samuelthomas2774 Mar 18, 2019
854262e
Fix reloading packed content
samuelthomas2774 Mar 18, 2019
92334e9
Stop watching theme files when unloading themes
samuelthomas2774 Mar 18, 2019
586ed01
Move updates to the correct location
samuelthomas2774 Mar 18, 2019
13ac7ae
Remove duplicate collection styles
samuelthomas2774 Mar 22, 2019
aa55072
Fix removing items from file settings
samuelthomas2774 Mar 28, 2019
3eb9105
Fix native open dialogs and attach the save packed content window as …
samuelthomas2774 Mar 28, 2019
2b0d3eb
Patch DOMTokenList methods to use the correct (not normalised) classes
samuelthomas2774 Apr 19, 2019
04fdb7a
Discord Canary fixes
samuelthomas2774 Apr 20, 2019
f2c461d
Fix context menu console error
Maks-s Apr 19, 2019
9c4653f
Fix checking unknown components
samuelthomas2774 May 2, 2019
cc1be34
Comments and fix recording selectors for some components (and add one…
samuelthomas2774 May 2, 2019
4be9c8b
Fix member list badges
samuelthomas2774 May 30, 2019
3022646
Fix ProfileBadge console error
Maks-s Jul 30, 2019
50ae555
Fix member list profile badges
samuelthomas2774 Aug 24, 2019
3359835
Fix voice channel component filter
samuelthomas2774 Aug 24, 2019
e49df89
Fix guild component selector
samuelthomas2774 Aug 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Vue events
samuelthomas2774 committed Mar 14, 2019
commit 4f2d4fcd8ab30a1d512c84efc78bba2725280cda
4 changes: 2 additions & 2 deletions client/src/ui/components/bd/UpdaterToggle.vue
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<div class="bd-settingSwitch">
<div class="bd-title">
<h3>{{item.text}}</h3>
<div class="bd-switchWrapper" @click="() => toggle(item)">
<div class="bd-switchWrapper" @click="$emit('toggle', item)">
<input type="checkbox" class="bd-switchCheckbox" />
<div class="bd-switch" :class="{'bd-checked': item.status.update}" />
</div>
@@ -23,6 +23,6 @@

<script>
export default {
props: ['item', 'toggle']
props: ['item']
}
</script>
2 changes: 1 addition & 1 deletion client/src/ui/components/bd/UpdaterView.vue
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
<div class="bd-formDivider"></div>
<div v-for="update in bdUpdates">
<UpdaterStatus :item="update" v-if="update.status.updating" />
<UpdaterToggle :item="update" :toggle="() => updater.toggleUpdate(update)" v-else />
<UpdaterToggle :item="update" @toggle="updater.toggleUpdate(update)" v-else />
<div class="bd-formDivider"></div>
</div>
</div>
2 changes: 1 addition & 1 deletion client/src/ui/components/contextmenu/Toggle.vue
Original file line number Diff line number Diff line change
@@ -22,6 +22,6 @@

<script>
export default {
props: ['item', 'onClick', 'checked']
props: ['item', 'checked']
}
</script>
4 changes: 2 additions & 2 deletions client/src/ui/components/generic/Button.vue
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
*/

<template>
<div class="bd-button" :class="classes" @click="onClick">
<div class="bd-button" @click="$emit('click')">
{{text}}
</div>
</template>

<script>
export default {
props: ['classes', 'text', 'onClick']
props: ['text']
}
</script>
6 changes: 3 additions & 3 deletions client/src/ui/components/generic/ButtonGroup.vue
Original file line number Diff line number Diff line change
@@ -9,15 +9,15 @@
*/

<template>
<div class="bd-buttonGroup" :class="classes">
<Button v-for="(button, index) in buttons" :text="button.text" :classes="button.classes" :onClick="button.onClick" :key="index"/>
<div class="bd-buttonGroup">
<Button v-for="(button, index) in buttons" :text="button.text" :classes="button.class" @click="button.onClick" :key="index"/>
</div>
</template>

<script>
import Button from './Button.vue';
export default {
props: ['buttons', 'classes'],
props: ['buttons'],
components: { Button }
}
</script>
6 changes: 3 additions & 3 deletions tests/ext/plugins/Render Example/index.js
Original file line number Diff line number Diff line change
@@ -101,15 +101,15 @@ module.exports = (Plugin, Api, Vendor) => {
if (!returnValue.props.children instanceof Array) returnValue.props.children = [returnValue.props.children];
// Add a generic Button component provided by BD
returnValue.props.children.push(Api.Components.ButtonGroup({
classes: [ 'exampleBtnGroup' ], // Additional classes for button group
class: [ 'exampleBtnGroup' ], // Additional classes for button group
buttons: [
{
classes: ['exampleBtn'], // Additional classes for button
class: ['exampleBtn'], // Additional classes for button
text: 'Hello World!', // Text for button
onClick: e => Logger.log('Hello World!') // Button click handler
},
{
classes: ['exampleBtn'],
class: ['exampleBtn'],
text: 'Button',
onClick: e => Logger.log('Button!')
}