mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 16:41:34 +03:00
b2e28f39fe
* feat(tauri) extend file system API * chore(deps) pin web-view deps * feat(tauri) add path API * feat(tauri.js) add Dir definition and usage * fix(tauri) correctly determine app_name * feat(example) add Dir select to the communication example * chore(tauri) wrap comment line * fix(tauri) build works
31 lines
358 B
JavaScript
31 lines
358 B
JavaScript
/**
|
|
* @typedef {number} BaseDirectory
|
|
*/
|
|
/**
|
|
* @enum {BaseDirectory}
|
|
*/
|
|
const Dir = {
|
|
Audio: 1,
|
|
Cache: 2,
|
|
Config: 3,
|
|
Data: 4,
|
|
LocalData: 5,
|
|
Desktop: 6,
|
|
Document: 7,
|
|
Download: 8,
|
|
Executable: 9,
|
|
Font: 10,
|
|
Home: 11,
|
|
Picture: 12,
|
|
Public: 13,
|
|
Runtime: 14,
|
|
Template: 15,
|
|
Video: 16,
|
|
Resource: 17,
|
|
App: 18
|
|
}
|
|
|
|
export {
|
|
Dir
|
|
}
|