refactor: remove tauri module/integration (#3377)
Some checks are pending
ci / ci (push) Waiting to run
build & push docker container / docker (push) Waiting to run

This commit is contained in:
Daniel Roe 2025-09-08 12:00:45 +01:00 committed by GitHub
parent 6f7806fa95
commit 4e96759f8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 16 additions and 262 deletions

View file

@ -1,5 +1,3 @@
import type { Variant } from 'unocss'
import process from 'node:process'
import { variantParentMatcher } from '@unocss/preset-mini/utils'
import {
@ -108,29 +106,14 @@ export default defineConfig({
},
},
variants: [
...(process.env.TAURI_PLATFORM
? <Variant<any>[]>[(matcher) => {
if (!matcher.startsWith('native:'))
return
return {
matcher: matcher.slice(7),
layer: 'native',
}
}]
: []),
...(process.env.TAURI_PLATFORM !== 'macos'
? <Variant<any>[]>[
(matcher) => {
if (!matcher.startsWith('native-mac:'))
return
return {
matcher: matcher.slice(11),
layer: 'native-mac',
}
},
]
: []
),
(matcher) => {
if (!matcher.startsWith('native-mac:'))
return
return {
matcher: matcher.slice(11),
layer: 'native-mac',
}
},
variantParentMatcher('fullscreen', '@media (display-mode: fullscreen)'),
variantParentMatcher('coarse-pointer', '@media (pointer: coarse)'),
],