Skip to content

Commit

Permalink
update publish detail
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Jan 6, 2022
1 parent fb012da commit 10e2dc4
Show file tree
Hide file tree
Showing 4 changed files with 11,272 additions and 3,125 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,24 @@ const xmlContent = builder.build(jObj);

In a HTML page
```html
<script src="path/to/fxparser.js"></script>
<script src="path/to/fxp.min.js"></script>
:
<script>
const parser = new fxparser.XMLParser();
parser.parse(xmlContent);
</script>
```

Check lib folder for different browser bundles

| Bundle Name | Size |
| -- | -- |
| fxbuilder.min.js | 5.2K |
| fxparser.js | 50K |
| fxparser.min.js | 17K |
| fxp.min.js | 22K |
| fxvalidator.min.js | 5.7K |

### Documents
**v3**
* [documents](./docs/v3/docs.md)
Expand Down Expand Up @@ -135,6 +145,7 @@ In a HTML page
* Run tests for a route or from a route
* Customizable reporting
* Central dashboard for better monitoring
* Options to integrate E2E tests with Jira, Github etc using Central dashboard `Tian`.
* **[Stubmatic](https://github.com/NaturalIntelligence/Stubmatic)** : Create fake webservices, DynamoDB or S3 servers, Manage fake/mock stub data, Or fake any HTTP(s) call.


Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- <script src="static/js/prettify.min.js"></script> -->
<link rel="stylesheet" type="text/css" href="static/css/animate3.5.2.min.css">

<script src="lib/fxparser.js"></script>
<script src="lib/fxp.min.js"></script>
<script src="static/js/jquery-confirm.min.js"></script>
<style>
.CodeMirror{
Expand Down Expand Up @@ -145,7 +145,7 @@ <h2>Note!!</h2>

$('#toJson').on('click', function() {
$('#result').val('');
const parser = new fxparser.XMLParser(buildParsingConfig());
const parser = new fxp.XMLParser(buildParsingConfig());
let result;
try{
result = parser.parse(editor.getValue(),{
Expand All @@ -162,7 +162,7 @@ <h2>Note!!</h2>
let input = $('#result').val().trim() ;
if(input.length){
editor.setValue('');
const builder = new fxparser.XMLBuilder(xmlBuilderOptions());
const builder = new fxp.XMLBuilder(xmlBuilderOptions());
const result = builder.build(JSON.parse( $('#result').val() ));
editor.setValue('<?xml version="1.0"?>\n'+result);
}else{
Expand All @@ -172,7 +172,7 @@ <h2>Note!!</h2>

$('#validate').on('click', function() {
$('#result').val('');
const parser = fxparser.XMLValidator;
const parser = fxp.XMLValidator;
const config = {
allowBooleanAttributes: $("#allowBooleanAttributes_v").prop("checked"),
};
Expand Down
Loading

0 comments on commit 10e2dc4

Please sign in to comment.