Skip to content

Commit 16fcb6d

Browse files
Fixed naming
1 parent f889a73 commit 16fcb6d

File tree

12 files changed

+63
-64
lines changed

12 files changed

+63
-64
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2020 Aspose.HTML CloudPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
Copyright (c) 2020 Aspose CloudPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Aspose.Cloud Converter
1+
# Aspose Cloud for Atom
22

3-
Aspose.Cloud Converter is built with [Aspose.Cloud](https://www.aspose.cloud/)
3+
Aspose Cloud for Atom is built with [aspose.cloud](https://www.aspose.cloud/)
44
It allows converting Markdown to HTML and PDF format.
55

66
## Features
@@ -15,7 +15,7 @@ By default, all actions run in the current directory.
1515

1616
## Requirements
1717

18-
We use the `node-fetch` module to makes [API calls](https://docs.aspose.cloud/display/htmlcloud/).
18+
We use the `node-fetch` module to make [API calls](https://docs.aspose.cloud/display/htmlcloud/).
1919

2020
## Usage
2121

@@ -55,10 +55,4 @@ Markdown Converter contributes the following settings:
5555

5656
## Known Issues
5757

58-
* MD-to-PDF conversion: The `@page` CSS at-rule can be applied incorrectly.
59-
60-
## Release Notes
61-
62-
### 0.0.1
63-
64-
Initial release of Aspose.Cloud Markdown Converter
58+
* MD-to-PDF conversion: The `@page` CSS at-rule can be applied incorrectly.

keymaps/aspose-cloud.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"atom-workspace": {
3+
"ctrl-alt-p": "aspose-cloud:convert-to-PDF"
4+
}
5+
}

lib/actions/convertMarkdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const apiURL = "https://vscode-markdown-converter-750605.conholdate.cloud/api/ma
1313
* @param {string} option_type
1414
*/
1515
export default async function(option_type) {
16-
console.log('Aspose.Cloud Converter started!');
17-
const conf = atom.config.get('aspose-cloud-converter');
16+
console.log('Aspose Cloud for Atom started!');
17+
const conf = atom.config.get('aspose-cloud');
1818
let editor = atom.workspace.getActiveTextEditor();
1919

2020
if (!editor) {
@@ -85,6 +85,6 @@ export default async function(option_type) {
8585
detail: e.message,
8686
});
8787
}
88-
console.log('Aspose.HTML converter finished!');
88+
console.log('Aspose Cloud for Atom finished!');
8989
return;
9090
}

lib/actions/export-settings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import fetch from 'node-fetch';
77
* @description Export config to external file
88
*/
99
export default async function() {
10-
const conf = atom.config.get('aspose-cloud-converter');
10+
const conf = atom.config.get('aspose-cloud');
1111
let outputDirectory = conf['outputDirectory'] || '.';
1212

1313
let editor = atom.workspace.getActiveTextEditor();
@@ -27,7 +27,7 @@ export default async function() {
2727
outputDirectory = inputPath
2828
}
2929

30-
let configFileName = path.join(outputDirectory, 'aspose-cloud-converter-settings.json');
30+
let configFileName = path.join(outputDirectory, 'aspose-cloud.json');
3131
let jsonContent = JSON.stringify(conf);
3232
fs.writeFile(configFileName, jsonContent, 'utf8', function(err) {
3333
if (err) {

lib/actions/open-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use babel';
22

33
export default async function() {
4-
atom.workspace.open('atom://config/packages/aspose-cloud-converter');
4+
atom.workspace.open('atom://config/packages/aspose-cloud');
55
}

lib/aspose-cloud-converter.js renamed to lib/aspose-cloud.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export default {
1818
this.subscriptions = new CompositeDisposable();
1919
this.subscriptions.add(
2020
atom.commands.add('atom-workspace', {
21-
'aspose-cloud-converter:convert-to-HTML': () => this.convert('html'),
22-
'aspose-cloud-converter:convert-to-PDF': () => this.convert('pdf'),
23-
'aspose-cloud-converter:open-settings': () => this.openSettings(),
24-
'aspose-cloud-converter:export-settings': () => this.exportSettings()
21+
'aspose-cloud:convert-to-HTML': () => this.convert('html'),
22+
'aspose-cloud:convert-to-PDF': () => this.convert('pdf'),
23+
'aspose-cloud:open-settings': () => this.openSettings(),
24+
'aspose-cloud:export-settings': () => this.exportSettings()
2525
}),
2626
);
2727
},

menus/aspose-cloud-converter.json renamed to menus/aspose-cloud.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
"context-menu": {
33
"atom-text-editor": [{
44
"label": "Aspose: Convert MD to HTML",
5-
"command": "aspose-cloud-converter:convert-to-HTML"
5+
"command": "aspose-cloud:convert-to-HTML"
66
},
77
{
88
"label": "Aspose: Convert MD to PDF",
9-
"command": "aspose-cloud-converter:convert-to-PDF"
9+
"command": "aspose-cloud:convert-to-PDF"
1010
}
1111
]
1212
},
1313
"menu": [{
1414
"label": "Packages",
1515
"submenu": [{
16-
"label": "Aspose.Cloud Converter",
16+
"label": "Aspose Cloud for Atom",
1717
"submenu": [{
1818
"label": "Convert MD to HTML",
19-
"command": "aspose-cloud-converter:convert-to-HTML"
19+
"command": "aspose-cloud:convert-to-HTML"
2020
},
2121
{
2222
"label": "Convert MD to PDF",
23-
"command": "aspose-cloud-converter:convert-to-PDF"
23+
"command": "aspose-cloud:convert-to-PDF"
2424
},
2525
{
2626
"label": "Open Settings",
27-
"command": "aspose-cloud-converter:open-settings"
27+
"command": "aspose-cloud:open-settings"
2828
},
2929
{
3030
"label": "Export Settings",
31-
"command": "aspose-cloud-converter:export-settings"
31+
"command": "aspose-cloud:export-settings"
3232
}
3333
]
3434
}]

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "aspose-cloud-converter",
3-
"main": "./lib/aspose-cloud-converter",
2+
"name": "aspose-cloud",
3+
"main": "./lib/aspose-cloud",
44
"version": "0.1.2",
55
"description": "Convert Markdown file to PDF document or HTML page",
66
"keywords": [
@@ -11,13 +11,13 @@
1111
],
1212
"activationCommands": {
1313
"atom-workspace": [
14-
"aspose-cloud-converter:convert-to-HTML",
15-
"aspose-cloud-converter:convert-to-PDF",
16-
"aspose-cloud-converter:open-settings",
17-
"aspose-cloud-converter:export-settings"
14+
"aspose-cloud:convert-to-HTML",
15+
"aspose-cloud:convert-to-PDF",
16+
"aspose-cloud:open-settings",
17+
"aspose-cloud:export-settings"
1818
]
1919
},
20-
"repository": "https://github.com/aspose-html-cloud/aspose-html-converter-for-atom-io",
20+
"repository": "https://github.com/aspose-html-cloud/aspose-cloud-for-atom",
2121
"license": "MIT",
2222
"engines": {
2323
"atom": ">=1.0.0 <2.0.0"

0 commit comments

Comments
 (0)