mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 22:10:15 +00:00
* refactor: migrate to common eslint+prettier configs
* fix: prettier frontend
* feat: config changes
* fix: lint issues
* fix: lint
* fix: type imports
* fix: cyclical import issue
* fix: lockfile
* fix: missing dep
* fix: switch to tabs
* fix: continue switch to tabs
* fix: rustfmt parity
* fix: moderation lint issue
* fix: lint issues
* fix: ui intl
* fix: lint issues
* Revert "fix: rustfmt parity"
This reverts commit cb99d2376c.
* feat: revert last rs
25 lines
676 B
JavaScript
25 lines
676 B
JavaScript
import { invoke } from '@tauri-apps/api/core'
|
|
|
|
export async function init_ads_window(overrideShown = false) {
|
|
return await invoke('plugin:ads|init_ads_window', {
|
|
overrideShown,
|
|
dpr: window.devicePixelRatio,
|
|
})
|
|
}
|
|
|
|
export async function show_ads_window() {
|
|
return await invoke('plugin:ads|show_ads_window', { dpr: window.devicePixelRatio })
|
|
}
|
|
|
|
export async function hide_ads_window(reset) {
|
|
return await invoke('plugin:ads|hide_ads_window', { reset })
|
|
}
|
|
|
|
export async function record_ads_click() {
|
|
return await invoke('plugin:ads|record_ads_click')
|
|
}
|
|
|
|
export async function open_ads_link(path, origin) {
|
|
return await invoke('plugin:ads|open_link', { path, origin })
|
|
}
|