Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js: add moduleInfo method #2057

Merged
merged 1 commit into from
Sep 14, 2024
Merged

js: add moduleInfo method #2057

merged 1 commit into from
Sep 14, 2024

Conversation

jeffpeng3
Copy link
Contributor

@jeffpeng3 jeffpeng3 commented Sep 11, 2024

Add a ksu.moduleInfo() in JS.
resolves #1571

test module's index.html
image

The test module:
moduleInfo_test.zip

test module's result:
image

@tiann
Copy link
Owner

tiann commented Sep 14, 2024

I prefer to add a moduleInfo method, and return id, moduleDir, etc..

@jeffpeng3
Copy link
Contributor Author

I'd like to know what you think should be there, such as whether the version needs to be provided, etc.

@tiann
Copy link
Owner

tiann commented Sep 14, 2024

You can refer the ksud module list

@jeffpeng3 jeffpeng3 changed the title js: add moduleDir method js: add moduleInfo method Sep 14, 2024
@jeffpeng3
Copy link
Contributor Author

jeffpeng3 commented Sep 14, 2024

I've rewritten it as moduleInfo.

It referenced me.weishu.kernelsu.ui.util.listModules and filtered out the current module's data, merged in the moduleDir and output it as a json string.

This should work the way you said and rely on the output of the ksud module list.

@tiann tiann merged commit ac20b76 into tiann:main Sep 14, 2024
14 checks passed
ananjaser1211 added a commit to ananjaser1211/KernelSU that referenced this pull request Sep 20, 2024
kutemeikito added a commit to kutemeikito/KernelSU that referenced this pull request Sep 23, 2024
* 'main' of https://github.com/tiann/KernelSU:
  js: add moduleInfo method (tiann#2057)
  Update doc for zh_CN (tiann#2049)
  Translations update from Hosted Weblate (tiann#2008)
  build(deps): bump the npm group across 1 directory with 24 updates (tiann#2040)
  kernel: Relax dentry_path_raw compare in core_hook (tiann#2041)
  build(deps): bump peter-evans/create-pull-request from 6 to 7 in the actions group (tiann#2031)
  website/docs: add N0Kernel and NOVA kernels (tiann#2012)
  Add Italian translations for README (tiann#2018)

Signed-off-by: Edwiin Kusuma Jaya <kutemeikito0905@gmail.com>
fukiame pushed a commit to TelegramAt25/KernelSU-shukusai that referenced this pull request Oct 3, 2024
xeunBin pushed a commit to xeunBin/KernelSU-Next-4.14 that referenced this pull request Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]webui中是否能增加获取当前模块根目录的功能
2 participants