This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev| import EventKit | |
| class CalendarSubscriptionManager { | |
| private let eventStore = EKEventStore() | |
| // 添加日历订阅 | |
| func addCalendarSubscription(url: String, title: String, completion: @escaping (Bool, Error?) -> Void) { | |
| // 首先请求日历访问权限 | |
| requestCalendarAccess { [weak self] granted, error in | |
| guard granted else { |
| xcrun simctl --set previews delete all |
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev| const BASE_URL = 'https://www.netflix.com/title/' | |
| const FILM_ID = 81215567 | |
| const AREA_TEST_FILM_ID = 80018499 | |
| ;(async () => { | |
| let result = { | |
| title: 'Netflix 解锁检测', | |
| style: 'error', | |
| content: '检测失败,请刷新', |
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| // Adjustments particular to this page to ensure we hit desktop breakpoint. | |
| page.setViewport({width: 1000, height: 600, deviceScaleFactor: 1}); | |
| await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'}); |
| // 概念教程可参看 | |
| // https://sarunw.com/posts/how-to-create-neomorphism-design-in-swiftui/ | |
| // 如何设计一套炫酷按钮 | |
| // https://www.hackingwithswift.com/articles/213/how-to-build-neumorphic-designs-with-swiftui?utm_campaign=iOS%2BDev%2BWeekly&utm_medium=email&utm_source=iOS%2BDev%2BWeekly%2BIssue%2B445 | |
| import SwiftUI | |
| extension Color { | |
| static let offWhite = Color(red: 225 / 255, green: 225 / 255, blue: 235 / 255) |