Skip to content

Commit

Permalink
Merge tag 'v0.9.8-preview.1' into merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
berlysia committed Jul 18, 2019
2 parents 1a56b08 + 503a8e2 commit f48e04f
Show file tree
Hide file tree
Showing 44 changed files with 498 additions and 216 deletions.
4 changes: 3 additions & 1 deletion app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import moment from 'moment';
import { setupGlobalContextMenuForEditableElement } from 'util/menus/GlobalMenu';
import VModal from 'vue-js-modal';
import VeeValidate from 'vee-validate';
import ChildWindow from 'components/windows/ChildWindow.vue';

const { ipcRenderer, remote } = electron;

Expand Down Expand Up @@ -157,8 +158,9 @@ document.addEventListener('DOMContentLoaded', () => {
i18n,
store,
render: h => {
const componentName = windowsService.state[windowId].componentName;
if (windowId === 'child') return h(ChildWindow);

const componentName = windowsService.state[windowId].componentName;
return h(windowsService.components[componentName]);
}
});
Expand Down
16 changes: 9 additions & 7 deletions app/components/ApiSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
</div>

<div class="section">
<ObsTextInput :value="tokenInput">
<button
class="button button--default button--input"
@click="generateToken">
Update
</button>
</ObsTextInput>
<div class="section-content">
<ObsTextInput :value="tokenInput">
<button
class="button button--default"
@click="generateToken">
Update
</button>
</ObsTextInput>
</div>
</div>


Expand Down
4 changes: 3 additions & 1 deletion app/components/AppearanceSettings.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<div>
<div class="section">
<GenericForm v-model="settingsFormData" @input="saveSettings" />
<div class="section-content">
<GenericForm v-model="settingsFormData" @input="saveSettings" />
</div>
</div>
</div>
</template>
Expand Down
5 changes: 1 addition & 4 deletions app/components/ExperimentalSettings.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<template>
<div>
<div class="section">
</div>

<!--<div class="section">-->
<!--<GenericForm v-model="settingsFormData" @input="saveSettings" />-->
<!--</div>-->
</div>

</div>
</template>
Expand Down
10 changes: 7 additions & 3 deletions app/components/HotkeyGroup.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<template>
<div class="section">
<div class="section-title--dropdown">
<div
class="section-title section-title--dropdown"
v-if="title"
:class="{ 'section-title--opened': !collapsed }"
>
<h4
v-if="title"
@click="collapsed = !collapsed">
<i
v-if="collapsed === true"
class="icon-plus"/>
class="icon-plus section-title__icon"/>
<i
v-if="collapsed === false"
class="icon-minus"/>
class="icon-minus section-title__icon"/>
{{ title }}
</h4>
</div>
Expand Down
4 changes: 3 additions & 1 deletion app/components/LanguageSettings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="section">
<GenericForm :value="settings" @input="save"></GenericForm>
<div class="section-content">
<GenericForm :value="settings" @input="save"></GenericForm>
</div>
</div>
</template>

Expand Down
3 changes: 1 addition & 2 deletions app/components/Login.vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import electron from 'electron';
@Component({})
export default class Login extends Vue {
@Inject() userService: UserService;
@Inject() onboardingService: OnboardingService;

get loggedIn() {
return this.userService.isLoggedIn();
Expand All @@ -35,7 +34,7 @@ export default class Login extends Vue {
}

login() {
this.onboardingService.start({ isLogin: true });
this.userService.showLogin();
}

openUserpage() {
Expand Down
4 changes: 3 additions & 1 deletion app/components/NotificationsSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</button>
</div>
<div class="section">
<GenericForm v-model="settingsFormData" @input="saveNotificationsSettings" />
<div class="section-content">
<GenericForm v-model="settingsFormData" @input="saveNotificationsSettings" />
</div>
</div>
<div class="section">
<h4>
Expand Down
2 changes: 1 addition & 1 deletion app/components/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
}
.tab-content {
padding-top: 60px;
padding-top: 54px;
}
</style>
12 changes: 0 additions & 12 deletions app/components/obs/inputs/ObsInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,18 +496,6 @@ export function setupConfigurableDefaults(
defaultSettings[obsProp.name] = items[0].value;
continue;
}

let validItem = false;

/* If there is a setting, make sure it's a valid item */
for (let i = 0; i < items.length; ++i) {
if (settings[obsProp.name] === items[i].value) {
validItem = true;
break;
}
}

if (!validItem) defaultSettings[obsProp.name] = items[0].value;
} while ((obsProp = obsProp.next()));
const needUpdate = Object.keys(defaultSettings).length > 0;
if (needUpdate) configurable.update(defaultSettings);
Expand Down
11 changes: 4 additions & 7 deletions app/components/pages/Onboarding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
.button--lg {
width: 300px;
padding: 0 0;
font-size: 12px;
letter-spacing: 1px;
font-weight: normal;
margin-top: 15px;
margin-top: 16px;
}
}
Expand Down Expand Up @@ -59,7 +56,6 @@
color: @text-primary;
font-size: 22px;
margin-bottom: 20px;
letter-spacing: .5px;
}
.onboarding-title--sm {
Expand All @@ -85,7 +81,8 @@
a {
text-decoration: underline;
transition: all 275ms;
.transition();
&:hover {
color: @white;
}
Expand Down Expand Up @@ -146,7 +143,7 @@
top: 0;
height: 240px;
width: auto;
margin: 15px 0;
margin: 16px 0;
img {
height: 100%;
Expand Down
1 change: 0 additions & 1 deletion app/components/pages/Studio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
flex-grow: 1;
background-color: @bg-tertiary;
display: flex;
align-items: center;
justify-content: center;
.message {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
@import "../../../styles/_colors";
.scene-collections-list {
margin: 0;
margin-left: 0;
padding: 10px;
width: 100%;
height: 200px;
color: white;
color: @white;
list-style: none;
overflow: auto;
border-radius: 3px;
Expand Down
5 changes: 4 additions & 1 deletion app/components/shared/DropdownMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>

<button slot="reference" class="dropdown-menu__toggle">
<span class="scene-name">{{ title }}</span><i class="icon-down-arrow"/>
<span class="scene-name">{{ title }}</span><i :class="icon || 'icon-down-arrow'"/>
</button>

</popper>
Expand Down Expand Up @@ -68,6 +68,9 @@
.dropdown-menu__item {
white-space: nowrap;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
color: @text-secondary;
Expand Down
2 changes: 1 addition & 1 deletion app/components/shared/HelpTip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
font-size: 20px;
cursor: pointer;
opacity: .6;
.transition;
.transition();
&:hover {
opacity: 1;
Expand Down
7 changes: 5 additions & 2 deletions app/components/shared/Hotkey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<script lang="ts" src="./Hotkey.vue.ts"></script>

<style lang="less" scoped>
@import "../../styles/index";
.hotkey {
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -55,8 +57,9 @@
}
}
.bindings-enter-active, .bindings-leave-active {
transition: all 0.2s;
.bindings-enter-active,
.bindings-leave-active {
.transition();
}
.bindings-enter, .bindings-leave-to {
Expand Down
6 changes: 3 additions & 3 deletions app/components/shared/NavItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
.semibold;
i {
color: @text-primary;
color: @text-primary;
}
}
Expand All @@ -47,8 +47,8 @@
i {
position: relative;
margin-right: -15px;
left: -25px;
margin-right: -16px;
left: -24px;
width: 16px;
}
}
Expand Down
30 changes: 10 additions & 20 deletions app/components/shared/inputs/ColorInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@

<div class="input-wrapper">
<div class="colorpicker">
<div class="input-container">
<div
class="colorpicker__text"
@click="togglePicker">
<input
class="colorpicker__input"
type="text"
readonly
:value="value">
<div
class="colorpicker__text"
@click="togglePicker">
<input
class="colorpicker__input"
type="text"
readonly
:value="value">
<div
class="colorpicker__swatch"
:style="swatchStyle"/>
</div>
<div v-if="metadata && metadata.tooltip" class="w-tooltip">
<i class="icon-question icon-btn" v-tooltip="metadata.tooltip" />
</div>
class="colorpicker__swatch"
:style="swatchStyle"/>
</div>
<color-picker
:value="{hex: value}"
Expand All @@ -39,11 +34,6 @@
width: 220px;
}
.input-container {
display: flex;
align-items: center;
}
.colorpicker__text {
position: relative;
cursor: pointer;
Expand Down
3 changes: 0 additions & 3 deletions app/components/shared/inputs/FontFamilyInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
:options="fonts">
</multiselect>
</div>
<div class="w-tooltip">
<i class="icon-question icon-btn" :v-tooltip="tooltipText" />
</div>
</div>
</template>

Expand Down
5 changes: 0 additions & 5 deletions app/components/shared/inputs/FontFamilyInput.vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,5 @@ import { IInputMetadata } from './index';
export default class FontFamilyInput extends BaseInput<string, IInputMetadata> {
@Prop() value: string;

tooltipText = $t(
'The Google Font to use for the text. Visit http://google.com/fonts to find one!'
+ 'Popular Fonts include: Open Sans, Roboto, Oswald, Lato, and Droid Sans.'
);

fonts: string[] = [];
}
4 changes: 1 addition & 3 deletions app/components/shared/inputs/FontSize.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div>
<slider-input :metadata="sliderOptions" :value="sliderValue" @input="value => updateValue(value)"/>
</div>
<slider-input :metadata="sliderOptions" :value="sliderValue" @input="value => updateValue(value)"/>
</template>

<script lang="ts" src="./FontSize.vue.ts"></script>
Loading

0 comments on commit f48e04f

Please sign in to comment.