mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* init: pages app * dev: initailize all pages and stores * dev: page details * dev: command menu added * dev: fix old pages * dev: workspace pages * dev: workspace pages filter * dev: filters added * chore: moved pages app to the web app * chore: new command palette added * dev: app search endpoint * chore: global search and app switcher ui * chore: page editor * chore: remove separate pages app * dev: pages * fix: mention user * dev: issue entity search endpoint * dev: update entity search endpoint * dev: update entity search endpoint * chore: add app switcher to the projects app * chore: update root store --------- Co-authored-by: pushya22 <130810100+pushya22@users.noreply.github.com> Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
28 lines
624 B
TypeScript
28 lines
624 B
TypeScript
// helpers
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
// plane web types
|
|
import { IAppSearchResults } from "@/plane-web/types";
|
|
// services
|
|
import { APIService } from "@/services/api.service";
|
|
|
|
export class AppService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
async searchApp(
|
|
workspaceSlug: string,
|
|
params: {
|
|
search: string;
|
|
}
|
|
): Promise<IAppSearchResults> {
|
|
return this.get(`/api/workspaces/${workspaceSlug}/app-search/`, {
|
|
params,
|
|
})
|
|
.then((res) => res?.data)
|
|
.catch((error) => {
|
|
throw error?.response?.data;
|
|
});
|
|
}
|
|
}
|