Recent posts

#91
jArchi / Re: JScript Question on includ...
Last post by Phil Beauvoir - December 21, 2022, 20:45:49 PM
What version of jArchi are you using?
#92
jArchi / Re: JScript Question on includ...
Last post by kkosienski - December 21, 2022, 20:36:50 PM
I am only seeing Nashorn ES5 & ES6 as options.
#93
jArchi / Re: JScript Question on includ...
Last post by Phil Beauvoir - December 21, 2022, 18:26:48 PM
Please use the "GraalVM" JavaScript engine in the "Scripting" Preferences.
#94
jArchi / Re: JScript Question on includ...
Last post by kkosienski - December 21, 2022, 18:24:44 PM
I am getting the following error.

Script Error at: javax.script.ScriptException, javax.script.ScriptException: TypeError: elementname.includes is not a function in file:/C:/Users/mm45582/AppData/Roaming/Archi4/scripts/examples/Delete%20Unused%20Elements.ajs at line number 18
#95
jArchi / Re: JScript Question on includ...
Last post by Phil Beauvoir - December 21, 2022, 17:25:44 PM
I can't see anything wrong there. What is the error message?
#96
jArchi / Re: JScript Question on includ...
Last post by kkosienski - December 21, 2022, 17:20:14 PM
I did not see a documented way to use regex or other pattern match within a name selector. I would have tried to solve for it that way.
#97
jArchi / JScript Question on includes()...
Last post by kkosienski - December 21, 2022, 14:36:21 PM
Im trying to use the includes() statement in an if statement to test for a string pattern in an element name. Any suggestions on how I can accomplish this in jScript?  Here is a first attempt I made but got an error.

$("element").each(function(c) {

  var elementname = c.name;
 
  if(elementname.includes("copy")){
 
     console.log(elementname);
  }
});
#98
General Archi Discussion / Re: General Preferences Themes
Last post by Phil Beauvoir - December 20, 2022, 13:02:17 PM
Quote from: isaac-nugroho on December 20, 2022, 13:00:20 PM
Quote from: Phil Beauvoir on December 20, 2022, 12:55:55 PMThanks for sharing your theme. Perhaps it's worth mentioning that it's for Linux only.

You're correct Phil. I'm sorry I did not mention it earlier.

I'll find out the equivalent dropins folder in other OS.

Thank you

The plugin.xml declares the theme as Linux only:

<theme
   basestylesheeturi="themes/eclipse/css/e4-groovy-dark_linux.css"
   id="com.github.isaacnugroho.archi.themes.groovy_dark"
   label="Groovy Dark"
   os="linux">
</theme>
#99
General Archi Discussion / Re: General Preferences Themes
Last post by isaac-nugroho - December 20, 2022, 13:00:20 PM
Quote from: Phil Beauvoir on December 20, 2022, 12:55:55 PMThanks for sharing your theme. Perhaps it's worth mentioning that it's for Linux only.

You're correct Phil. I'm sorry I did not mention it earlier.

I'll find out the equivalent dropins folder in other OS.

Thank you
#100
General Archi Discussion / Re: General Preferences Themes
Last post by Phil Beauvoir - December 20, 2022, 12:55:55 PM
Quote from: isaac-nugroho on December 20, 2022, 12:32:32 PMHi, I created a theme plugin for archi, you can find at https://github.com/isaacnugroho/archi-themes.

It is actually a rip off from theme found in archi source code.

How to use:

1. Download this file https://github.com/isaacnugroho/archi-themes/releases/download/0.2.0/com.github.isaacnugroho.archi.themes_0.2.0.jar
2. Copy to ~/.archi4/dropins folder
3. Start archi
4. A new theme, Groovy Dark, will available for selection


PS:

* only one theme available, but open for suggestions



Thanks for sharing your theme. Perhaps it's worth mentioning that it's for Linux only.

Regards,

Phil