-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update servicenow extension (#15034)
* Update servicenow extension - Merge branch \'contributions/merge-1729610900174610000\' - Pull contributions - Fixed lint issues - Update package.json - Updated README - Added new command to login to selected instance - Added Search Resources command - Removed unneeded tooltips in Instance Form - Renamed update set file - Improved search results filtering and Documate pages are opened in the editor * Update CHANGELOG.md * Update CHANGELOG.md and optimise images --------- Co-authored-by: raycastbot <[email protected]>
- Loading branch information
1 parent
cae1713
commit c5b9a09
Showing
8 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# Search Documate Changelog | ||
|
||
## [Fixes & Bits] - 2024-10-23 | ||
|
||
- Documate pages now open directly in the editor | ||
- Improved search results filtering | ||
- Added `Login to Selected Instance` command | ||
- Added `Search Resources` command to help find ServiceNow resources | ||
- Removed unnecessary tooltips in the Instance Profile Form for a cleaner interface | ||
|
||
## [Initial Version] - 2024-10-17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { LocalStorage, open, showToast, Toast } from "@raycast/api"; | ||
import { Instance } from "./types"; | ||
|
||
export default async function main() { | ||
const instance = await LocalStorage.getItem<string>("selected-instance"); | ||
if (!instance) { | ||
showToast(Toast.Style.Failure, "No instances found", "Please create an instance profile first"); | ||
return; | ||
} | ||
|
||
const instanceProfile = JSON.parse(instance) as Instance; | ||
open( | ||
`https://${instanceProfile.name}.service-now.com/login.do?user_name=${instanceProfile.username}&user_password=${instanceProfile.password}&sys_action=sysverb_login`, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { LaunchProps, open } from "@raycast/api"; | ||
|
||
export default async (props: LaunchProps) => { | ||
const { query } = props.arguments; | ||
|
||
open(`https://developer.servicenow.com/dev.do#!/search/tokyo/All/${query}`); | ||
}; |