-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into fb-optic-174
- Loading branch information
Showing
63 changed files
with
761 additions
and
224 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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
var breadcrumb = require('./breadcrumb')(hexo); | ||
var breadcrumb = require("./breadcrumb")(hexo); | ||
var removeContent = require("./removeContent")(hexo); | ||
|
||
hexo.extend.helper.register('breadcrumb', breadcrumb, {async: true}); | ||
hexo.extend.helper.register("breadcrumb", breadcrumb, { async: true }); | ||
hexo.extend.helper.register("removeContent", removeContent, { async: true }); |
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,17 +1,21 @@ | ||
var HTMLParser = require('node-html-parser'); | ||
var HTMLParser = require("node-html-parser"); | ||
|
||
hexo.extend.filter.register('after_render:html', function(data) { | ||
module.exports = function (ctx) { | ||
return function includeTag(content) { | ||
const { config } = ctx; | ||
|
||
const { config } = this; | ||
/* If you’re on the OSS site, remove every `.enterprise-only` element. Opposite for the ENT site */ | ||
const classToRemove = | ||
config.theme_config.tier === "opensource" | ||
? ".enterprise-only" | ||
: ".opensource-only"; | ||
|
||
/* If you’re on the OSS site, remove every `.enterprise-only` element. Opposite for the ENT site */ | ||
const classToRemove = config.theme_config.tier === "opensource" ? ".enterprise-only" : ".opensource-only"; | ||
const template = HTMLParser.parse(content); | ||
|
||
const template = HTMLParser.parse(data); | ||
template.querySelectorAll(classToRemove).forEach((x) => x.remove()); | ||
|
||
template.querySelectorAll(classToRemove).forEach(x=> x.remove()); | ||
content = template.toString(); | ||
|
||
data = template.toString(); | ||
|
||
return data; | ||
}) | ||
return content; | ||
}; | ||
}; |
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
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,11 +1,10 @@ | ||
--- | ||
hide_sidebar: true | ||
--- | ||
|
||
## Label Studio Enterprise 2.5.0-1 | ||
|
||
*Sep 30, 2023* | ||
|
||
### Security | ||
- Security fix for Data Manager task filters | ||
|
||
--- | ||
hide_sidebar: true | ||
--- | ||
|
||
## Label Studio Enterprise 2.5.0-1 | ||
|
||
*Sep 30, 2023* | ||
|
||
### Security | ||
- Security fix for Data Manager |
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
Oops, something went wrong.