Merge branch 'ThatGuySam:master' into kicad-v7

This commit is contained in:
Raees 2023-02-13 04:38:02 +03:00 committed by GitHub
commit 7ba347e95d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 4338 additions and 4716 deletions

View file

@ -20,7 +20,7 @@ console.log( 'Running Astro Config File' )
export default defineConfig({ export default defineConfig({
output: 'server', output: 'server',
publicDir: './static', publicDir: './static',
site: 'https://doesitarm.com', site: 'https://doesitarm.com/',
adapter: netlify({ adapter: netlify({
dist: new URL('./dist/', import.meta.url) dist: new URL('./dist/', import.meta.url)
}), }),

View file

@ -45,7 +45,7 @@
</div> </div>
<div class="slot-wrapper"> <div class="slot-wrapper">
<slot name="ad-inline"> <slot>
<AdInline <AdInline
v-once v-once
:name="isSSR ? 'placeholder' : 'default'" :name="isSSR ? 'placeholder' : 'default'"

View file

@ -1,5 +1,6 @@
import fs from 'fs-extra' import fs from 'fs-extra'
import { google } from 'googleapis' import { google } from 'googleapis'
import axios from 'axios'
import { playlists, benchmarksPlaylistId } from './playlists.js' import { playlists, benchmarksPlaylistId } from './playlists.js'
@ -161,10 +162,14 @@ async function getYouTubeVideos ( options = {} ) {
export async function saveYouTubeVideos () { export async function saveYouTubeVideos () {
// // We'll need to lean up this function to work with 10k API Requests
const youtubeVideos = await getYouTubeVideos() // before we can use it again
// const youtubeVideos = await getYouTubeVideos()
// Locked previously sucessful YouTube API data for now
const youtubeVideos = await axios( process.env.VIDEO_SOURCE )
.then( response => response.data )
//
// Save to JSON // Save to JSON
await fs.outputJson( youtubeVideoPath, youtubeVideos ) await fs.outputJson( youtubeVideoPath, youtubeVideos )

View file

@ -2,7 +2,10 @@ import { config } from '~/package.json'
export const storkOptions = config.stork export const storkOptions = config.stork
export const storkVersion = '1.4.2' export const storkVersion = '1.6.0'
// Stork 2.0
// export const storkVersion = '2.0.0-beta.1'
export const storkExecutableName = storkOptions.executable export const storkExecutableName = storkOptions.executable
export const storkExecutablePath = `./${ storkExecutableName }` export const storkExecutablePath = `./${ storkExecutableName }`

View file

@ -15,6 +15,10 @@ import {
const execDownloadUrls = { const execDownloadUrls = {
darwin: `https://files.stork-search.net/releases/v${ storkVersion }/stork-macos-10-15`, darwin: `https://files.stork-search.net/releases/v${ storkVersion }/stork-macos-10-15`,
default: `https://files.stork-search.net/releases/v${ storkVersion }/stork-ubuntu-20-04` default: `https://files.stork-search.net/releases/v${ storkVersion }/stork-ubuntu-20-04`
// Stork 2.0
// darwin: `https://files.stork-search.net/releases/v${ storkVersion }/stork-macos-12`,
// default: `https://files.stork-search.net/releases/v${ storkVersion }/stork-amazon-linux` // default: `https://files.stork-search.net/releases/v${ storkVersion }/stork-amazon-linux`
} }
@ -33,7 +37,7 @@ export async function downloadStorkExecutable () {
const execDownloadUrl = execDownloadUrls[ envKey ] const execDownloadUrl = execDownloadUrls[ envKey ]
// console.log( 'execDownloadUrl', execDownloadUrl ) // console.log( { execDownloadUrl } )
// Delete any existing executable // Delete any existing executable
// so we don't get write errors // so we don't get write errors

8980
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -54,9 +54,9 @@
"netlify-and-vercel-build": "run-s netlify-build vercel-build" "netlify-and-vercel-build": "run-s netlify-build vercel-build"
}, },
"dependencies": { "dependencies": {
"@astrojs/netlify": "^0.5.0", "@astrojs/netlify": "^2.1.2",
"@astrojs/partytown": "^0.1.4", "@astrojs/partytown": "^1.0.3",
"@astrojs/vue": "^1.0.0", "@astrojs/vue": "^2.0.1",
"@esbuild-plugins/node-globals-polyfill": "^0.1.1", "@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@esbuild-plugins/node-modules-polyfill": "^0.1.4", "@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@fontsource/inter": "^4.0.1", "@fontsource/inter": "^4.0.1",
@ -66,7 +66,7 @@
"@supercharge/promise-pool": "^2.1.0", "@supercharge/promise-pool": "^2.1.0",
"@zip.js/zip.js": "^2.5.25", "@zip.js/zip.js": "^2.5.25",
"7z-wasm": "^1.0.0-beta.5", "7z-wasm": "^1.0.0-beta.5",
"astro": "^1.1.5", "astro": "^2.0.10",
"axios": "^0.21.0", "axios": "^0.21.0",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"can-autoplay": "^3.0.0", "can-autoplay": "^3.0.0",
@ -96,6 +96,7 @@
"memoize-getters": "^1.1.0", "memoize-getters": "^1.1.0",
"node-html-parser": "^2.0.0", "node-html-parser": "^2.0.0",
"observe-element-in-viewport": "0.0.15", "observe-element-in-viewport": "0.0.15",
"ofetch": "^1.0.0",
"plist": "^3.0.1", "plist": "^3.0.1",
"pretty-bytes": "^5.5.0", "pretty-bytes": "^5.5.0",
"rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-node-polyfills": "^0.2.1",
@ -103,17 +104,17 @@
"semver": "^7.3.7", "semver": "^7.3.7",
"sitemap": "^7.1.1", "sitemap": "^7.1.1",
"slugify": "^1.4.6", "slugify": "^1.4.6",
"stork-search": "^1.0.4", "std-env": "^3.3.2",
"terser": "^4.8.0", "terser": "^4.8.0",
"uuid": "^8.3.2", "uuid": "^8.3.2",
"vite-node": "^0.23.0", "vite-node": "^0.28.4",
"vue": "^3.2.30", "vue": "^3.2.30",
"workerpool": "^6.2.1", "workerpool": "^6.2.1",
"zip-lib": "^0.7.3" "zip-lib": "^0.7.3"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/sitemap": "^0.1.0", "@astrojs/sitemap": "^1.0.1",
"@astrojs/tailwind": "^0.2.0", "@astrojs/tailwind": "^3.0.1",
"@vitest/web-worker": "^0.20.3", "@vitest/web-worker": "^0.20.3",
"autoprefixer": "^10.0.2", "autoprefixer": "^10.0.2",
"ava": "^3.15.0", "ava": "^3.15.0",
@ -132,7 +133,7 @@
"postcss-cli": "^8.3.1", "postcss-cli": "^8.3.1",
"replace-css-url": "^1.2.6", "replace-css-url": "^1.2.6",
"structured-data-testing-tool": "^4.5.0", "structured-data-testing-tool": "^4.5.0",
"tailwindcss": "^1.9.6", "tailwindcss": "^3.2.6",
"tsconfig-paths": "^3.14.1", "tsconfig-paths": "^3.14.1",
"vite-tsconfig-paths": "^3.5.0", "vite-tsconfig-paths": "^3.5.0",
"vitest": "^0.18.1" "vitest": "^0.18.1"

View file

@ -1,7 +1,15 @@
import { isMacOS } from 'std-env'
import axios from 'axios' import axios from 'axios'
;(async () => { ;(async () => {
if ( !isMacOS ) {
console.log('Not on macOS, skipping')
process.exit()
}
const { data } = await axios.get(`https://master--doesitarm.netlify.app/apple-silicon-app-test`) const { data } = await axios.get(`https://master--doesitarm.netlify.app/apple-silicon-app-test`)
console.log( data.slice(0, 100) ) console.log( data.slice(0, 100) )

View file

@ -37,13 +37,13 @@ const adName = (() => {
// if ( details.isGame ) return 'new-world-1' // if ( details.isGame ) return 'new-world-1'
// Developer Tools // Developer Tools
if ( listing?.category?.slug === 'developer-tools' ) return 'jotform-for-developers-1' // if ( listing?.category?.slug === 'developer-tools' ) return 'jotform-for-developers-1'
// Productivity Apps // Productivity Apps
if ( listing?.category?.slug === 'productivity-tools' ) return 'codeable-1' // if ( listing?.category?.slug === 'productivity-tools' ) return 'codeable-1'
// Video and Motion Tools // Video and Motion Tools
if ( listing?.category?.slug === 'video-and-motion-tools' ) return 'wondershare-arm-1' // if ( listing?.category?.slug === 'video-and-motion-tools' ) return 'wondershare-arm-1'
// VPNs, Security, and Privacy // VPNs, Security, and Privacy
// if ( listing?.category?.slug === 'vpns-security-and-privacy' ) return 'expressvpn-bounty' // if ( listing?.category?.slug === 'vpns-security-and-privacy' ) return 'expressvpn-bounty'

1
src/env.d.ts vendored Normal file
View file

@ -0,0 +1 @@
/// <reference types="astro/client" />

View file

@ -17,6 +17,10 @@ import SimpleList from '../components/simple-list.astro'
applyResponseDefaults( Astro ) applyResponseDefaults( Astro )
// Prerender page so it serves statically
export const prerender = true
const kindIndex = await DoesItAPI.kind.index.get() const kindIndex = await DoesItAPI.kind.index.get()
const kinds = Object.values( kindIndex ).map( category => { const kinds = Object.values( kindIndex ).map( category => {
@ -30,7 +34,7 @@ const kinds = Object.values( kindIndex ).map( category => {
<Layout <Layout
headOptions={ { headOptions={ {
title: 'Categories of App Support lists for Apple Silicon', title: 'Categories of App Support lists for Apple Silicon',
description: `List of compatibility apps and games for Apple Silicon and the ${ this.$config.processorsVerbiage } Processors including performance reports and benchmarks`, description: `List of compatibility apps and games for Apple Silicon and the ${ global.$config.processorsVerbiage } Processors including performance reports and benchmarks`,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -44,7 +44,7 @@ const kinds = deviceIndex.items.map( device => {
<main class="container py-24"> <main class="container py-24">
<div class="flex flex-col"> <div class="flex flex-col">
<h1 class="title text-2xl leading-tight mb-6"> <h1 class="title text-2xl leading-tight mb-6">
Categories Devices
</h1> </h1>
<div class="line-separator border-white border-t-2 mb-12" /> <div class="line-separator border-white border-t-2 mb-12" />

View file

@ -19,7 +19,6 @@ import Search from '~/components/search-stork.vue'
import ThomasCredit from '~/components/thomas-credit.vue' import ThomasCredit from '~/components/thomas-credit.vue'
import AdInline from '~/components/ad-inline.vue' import AdInline from '~/components/ad-inline.vue'
// Get type and slug from the request path // Get type and slug from the request path
// so that we don't have extra parts for // so that we don't have extra parts for
// urls like /:type/:slug/benchmarks // urls like /:type/:slug/benchmarks
@ -38,6 +37,9 @@ if ( redirectResponse !== null ) {
applyResponseDefaults( Astro ) applyResponseDefaults( Astro )
// Prerender page so it serves statically
export const prerender = true
const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get() const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get()
// Clean up unused kind data // Clean up unused kind data

View file

@ -18,6 +18,8 @@ import Search from '~/components/search-stork.vue'
// import ListEndButtons from '~/components/list-end-buttons.vue' // import ListEndButtons from '~/components/list-end-buttons.vue'
import CarbonInline from '~/components/carbon-inline.vue' import CarbonInline from '~/components/carbon-inline.vue'
export const prerender = true
applyResponseDefaults( Astro ) applyResponseDefaults( Astro )
const homePageKindPage = await DoesItAPI.kind.app(1).get() const homePageKindPage = await DoesItAPI.kind.app(1).get()