Skip to content

Commit

Permalink
feat(airshared): add wifi/bluetooth tip
Browse files Browse the repository at this point in the history
  • Loading branch information
ipy committed Jul 20, 2020
1 parent 210dc16 commit 9b1a8dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,13 @@ function createAirSharedWindow() {
useContentSize: true,
frame: false,
titleBarStyle: 'none',
minWidth: 300,
maxWidth: 300,
minHeight: 350,
width: 300,
height: 400,
transparent: true,
resizable: false,
resizable: true,
show: false,
webPreferences: {
webSecurity: false,
Expand Down
9 changes: 7 additions & 2 deletions src/renderer/components/AirShared.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
</div>
</div>
<div class="tip">
{{ $t('msg.file.airShared.tip') }}
<p>{{ $t('msg.file.airShared.tip') }}</p>
<p>{{ $t('msg.file.airShared.tipWnB') }}</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -118,7 +119,8 @@ export default Vue.extend({

<style lang="scss" scoped>
.content {
width: 300px;
width: 100%;
height: 100%;
overflow: hidden;
background: #434348;
border-radius: 4px;
Expand Down Expand Up @@ -192,6 +194,9 @@ export default Vue.extend({
line-height: 1.5em;
}
.tip {
p {
margin: 10px auto;
}
margin: 20px auto;
font-size: 12px;
color: rgba(255,255,255,0.25);
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/locales/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
"off": "Stopped",
"host": "IP Address",
"token": "Token",
"tip": "Open SPlayer on your Apple TV or iPad / iPhone within the same network and tap \"DISCOVERY\" to streaming your video with the best quality"
"tip": "Open SPlayer on your Apple TV or iPad / iPhone within the same network and tap \"DISCOVERY\" to streaming your video with the best quality",
"tipWnB": "Please make sure your device is connected to Wi-Fi and Bluetooth is turned on."
}
},
"account": {
Expand Down

0 comments on commit 9b1a8dc

Please sign in to comment.