Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cables-gl/cables_dev into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Aug 9, 2024
2 parents dae1369 + 6870ff5 commit 0bfa601
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared/api/cables.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default class Cables extends SharedUtil
this._createDirectories();
}

isStandalone()
{
return false;
}

get utilName()
{
return UtilProvider.CABLES;
Expand Down
12 changes: 12 additions & 0 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default class SharedOpsUtil extends SharedUtil

this.INFIX_DEPRECATED = ".Deprecated.";
this.INFIX_DEVOPS = ".Dev.";
this.INFIX_STANDALONEOPS = ".Standalone.";

this.SUFFIX_VERSION = "_v";

this.PATCHOPS_ID_REPLACEMENTS = {
Expand Down Expand Up @@ -1399,6 +1401,12 @@ export default class SharedOpsUtil extends SharedUtil
return opname.includes(this.INFIX_DEVOPS);
}

isStandaloneOp(opname)
{
if (!opname) return false;
return opname.includes(this.INFIX_STANDALONEOPS);
}

isTeamOp(opname)
{
if (!opname) return false;
Expand Down Expand Up @@ -2358,6 +2366,10 @@ export default class SharedOpsUtil extends SharedUtil
{
consequences.will_be_devop = "You new op will be available ONLY on dev.cables.gl.";
}
if (this.isStandaloneOp(newName))
{
consequences.will_be_devop = "You new op will be available ONLY in the cables standalone version.";
}
return consequences;
}

Expand Down

0 comments on commit 0bfa601

Please sign in to comment.