iOS fixes: Search, Logs, (and other glitches)

This commit is contained in:
Front 2022-03-06 11:55:16 -05:00
parent ccb6b5ba17
commit fb75e12988
5 changed files with 28 additions and 13 deletions

View File

@ -59,11 +59,11 @@ jobs:
run: npx cap update android run: npx cap update android
- name: Build with Gradle - name: Build with Gradle
working-directory: android working-directory: android
run: chmod +x gradlew; ./gradlew clean assemble # At the time of writing, build causes issues with capacitor plugins run: chmod +x gradlew; ./gradlew clean build # Build causes errors / assemble makes a nonfunctional apk
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: VueTube.apk name: android
path: android/app/build/outputs/apk/release/app-release-unsigned.apk path: android/app/build/outputs/apk/release/app-release-unsigned.apk
ios: ios:

View File

@ -38,6 +38,9 @@
* { * {
font-family: Arial, Helvetica, sans-serif !important; font-family: Arial, Helvetica, sans-serif !important;
} }
html, body {
overflow-x: hidden;
}
</style> </style>
<style scoped> <style scoped>

View File

@ -12,7 +12,7 @@
<v-expansion-panels> <v-expansion-panels>
<v-expansion-panel> <v-expansion-panel>
<v-expansion-panel-header>More</v-expansion-panel-header> <v-expansion-panel-header>More</v-expansion-panel-header>
<v-expansion-panel-content v-text="item.data" style="padding: 1em;" /> <v-expansion-panel-content v-text="item.data" class="logContent" />
</v-expansion-panel> </v-expansion-panel>
</v-expansion-panels> </v-expansion-panels>
@ -36,6 +36,10 @@
.errorChip { .errorChip {
margin-right: 0.5em; margin-right: 0.5em;
} }
.logContent {
padding: 1em;
word-break: break-all;
}
</style> </style>
<script> <script>

View File

@ -11,13 +11,14 @@
<v-list-item v-for="(video, index) in videos" :key="index"> <v-list-item v-for="(video, index) in videos" :key="index">
<v-card class="entry"> <v-card class="entry">
<v-card-title v-text="video.raw.compactVideoRenderer.title.runs[0].text" />
<v-card-text> <v-card-text>
<v-img :src="video.thumbnails[video.thumbnails.length - 1].url" /> <div style="position: relative;">
<v-img :src="video.thumbnails[video.thumbnails.length - 1].url" />
<p v-text="video.runtime" class="videoRuntimeFloat background--text" />
</div>
<p v-text="video.title" />
<p v-text="`${video.views} ${video.uploaded}`" />
<p v-text="video.id" /> <p v-text="video.id" />
<p v-text="video.uploaded" />
<p v-text="video.runtime" />
<p v-text="video.views" />
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-list-item> </v-list-item>
@ -28,6 +29,14 @@
.entry { .entry {
margin-top: 1em; margin-top: 1em;
} }
.videoRuntimeFloat {
position: absolute;
bottom: 0;
right: 10px;
background: rgba(0, 0, 0, 0.5);
border-radius: 1em;
padding: 3px;
}
</style> </style>
<script> <script>

View File

@ -86,22 +86,21 @@ const module = {
let results = new Array(); let results = new Array();
youtubeSearch(text, (videos) => { youtubeSearch(text, (videos) => {
for (const i in videos) { for (const i in videos) {
const video = videos[i];
if (video.compactVideoRenderer) { if (video.compactVideoRenderer) {
//--- If Entry Is A Video ---// //--- If Entry Is A Video ---//
const video = videos[i];
results.push({ results.push({
id: video.compactVideoRenderer.videoId, id: video.compactVideoRenderer.videoId,
title: video.compactVideoRenderer.title.runs[0].text,
runtime: video.compactVideoRenderer.lengthText.runs[0].text, runtime: video.compactVideoRenderer.lengthText.runs[0].text,
uploaded: video.compactVideoRenderer.publishedTimeText.runs[0].text, uploaded: video.compactVideoRenderer.publishedTimeText.runs[0].text,
views: video.compactVideoRenderer.viewCountText.runs[0].text, views: video.compactVideoRenderer.viewCountText.runs[0].text,
thumbnails: video.compactVideoRenderer.thumbnail.thumbnails, thumbnails: video.compactVideoRenderer.thumbnail.thumbnails
raw: video
}) })
} else { } else {
//--- If Entry Is Not A Video ---// //--- If Entry Is Not A Video ---//
logger("search", { type: "Error Caught Successfully, Code Continued to run.", error: video }, true); logger("search", { type: "Error Caught Successfully", error: video }, true);
} }