deadlyjack / acode-plugin Goto Github PK
View Code? Open in Web Editor NEWTemplate for developing plugins for Acode editor.
Template for developing plugins for Acode editor.
i tried removing viewport meta tags
this is an example
I have many methods, which I use
var meta = document.createElement('meta');
meta.setAttribute("name", "viewport");
meta.setAttribute("content", "width=1024, height=768");
document.head.appendChild(meta);
document.querySelector("[name='viewport']").setAttribute("content", "width=1024, height=768");`
document.querySelector("[name='viewport']").remove()
Please,Could you explain more about how to do things like importing a plugins. The code in the worker.js for the already built plugins does not show how the importing works.
For example, I changed it to the folder 'dist' > build
until then it worked more when I changed the name of the file main
for another one, it didn't work anymore, is it my mistake? How do you check!
How to serial to remove themes from editor list?
ace.require("ace/ext/themelist").themes.remove(<string>);
ace.require("ace/ext/themelist").remove(<string>);
When the plugin was uninstalled it would remove it from the editor list
I forked the acode-plugin repo to develop a new feature, but before coding the full plugin I try to make a test but I get an "Invalid Plugin" error, I followed all the steps mentionned in the plugin doc, but I still get the error.
I hope you'll have time to give me some hints that could possibly get me going.
when i try to to run html that has
<img src="textures/mytexture">
its shows a broken image
When I try to to run start-dev a get this error. Can you help to fix the error?
`PS C:\code\acode-plugin> npm run start-dev
[email protected] start-dev
node .vscode/start-dev
+--------------+
| Starting dev |
+--------------+
asset main.js 3.79 KiB [compared for emit] (name: main)
runtime modules 279 bytes 1 module
./src/main.js 418 bytes [built] [code generated]
./plugin.json 212 bytes [built] [code generated]
webpack 5.76.0 compiled successfully in 592 ms
dist.zip written.
C:\code\acode-plugin.vscode\getNet.js:5
const [ip] = WiFi || Ethernet;
^
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at module.exports (C:\code\acode-plugin.vscode\getNet.js:5:16)
at main (C:\code\acode-plugin.vscode\start-server.js:13:36)
at Object. (C:\code\acode-plugin.vscode\start-server.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.17.1`
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
Error: dlopen failed: cannot locate symbol "_ZN2v812api_internal18GlobalizeReferenceEPNS_8internal7IsolateEPm" referenced by "/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty/build/Release/pty.node"...
at Module._extensions..node (node:internal/modules/cjs/loader:1475:18)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty/lib/unixTerminal.js:29:11)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v21.6.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.