Skip to content

Commit

Permalink
Update references to latest Tauri alpha (tauri-apps#1749)
Browse files Browse the repository at this point in the history
* bump alpha

* Remove refactored plugins

* Change enum member format

* Fix broken links

* Update plugin list
  • Loading branch information
lorenzolewis authored Dec 12, 2023
1 parent 03bf233 commit 9499ad2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
10 changes: 2 additions & 8 deletions packages/js-api-generator/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const typeDocConfigBaseOptions: Partial<TypeDocOptions | PluginOptions> = {
hideInPageTOC: true,
identifiersAsCodeBlocks: true,
propertiesFormat: 'table',
enumMembersFormat: 'table',
// Tables do not create links for members so disabling for now to prevent broken links
// enumMembersFormat: 'table',
typeDeclarationFormat: 'table',
};

Expand All @@ -60,13 +61,7 @@ async function generator() {
console.log('Tauri submodule is not initialized, respective API routes will not be rendered.');
}

// TODO: the following plugins don't have a JS API:
// 'localhost',
// 'persisted-scope',
// 'single-instance',

const plugins = [
'app',
'authenticator',
'autostart',
'barcode-scanner',
Expand All @@ -89,7 +84,6 @@ async function generator() {
'updater',
'upload',
'websocket',
'window',
'window-state',
];

Expand Down
2 changes: 1 addition & 1 deletion packages/plugins-workspace
Submodule plugins-workspace updated 308 files
2 changes: 1 addition & 1 deletion packages/tauri
Submodule tauri updated 391 files
2 changes: 0 additions & 2 deletions src/components/list/JavaScript.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const base = '2/reference/js';
const entries = [
'core',
'app',
'authenticator',
'autostart',
'barcode-scanner',
Expand All @@ -29,7 +28,6 @@ const entries = [
'updater',
'upload',
'websocket',
'window',
'window-state',
];
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/guides/plugins/develop-mobile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class ExamplePlugin: Plugin {
</TabItem>
</Tabs>

The helper functionss can then be called from the NPM package by using the [`addPluginListener`](/2/reference/js/core/namespacetauri/#addpluginlistener) helper function:
The helper functionss can then be called from the NPM package by using the [`addPluginListener`](/2/reference/js/core/namespaceprimitives/#addpluginlistener) helper function:

```javascript
import { addPluginListener, PluginListener } from '@tauri-apps/api/tauri';
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/plugins/develop-mobile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class ExamplePlugin: Plugin {
</TabItem>
</Tabs>

辅助函数可以通过使用 [`addPluginListener`](/2/reference/js/core/namespacetauri/#addpluginlistener) 函数在 NPM 包中找到并使用。
辅助函数可以通过使用 [`addPluginListener`](/2/reference/js/core/namespaceprimitives/#addpluginlistener) 函数在 NPM 包中找到并使用。

```javascript
import { addPluginListener, PluginListener } from '@tauri-apps/api/tauri';
Expand Down

0 comments on commit 9499ad2

Please sign in to comment.