Skip to content

Commit

Permalink
feat: rename to npm compliant name (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Nov 15, 2022
1 parent e84de41 commit 4af1c08
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
![Maintenance score](https://img.shields.io/npms-io/maintenance-score/@asyncapi/EDAVisualiser)
[![Npm latest version](https://img.shields.io/npm/v/@asyncapi/EDAVisualiser)](https://www.npmjs.com/package/@asyncapi/EDAVisualiser)
![Maintenance score](https://img.shields.io/npms-io/maintenance-score/@asyncapi/edavisualiser)
[![Npm latest version](https://img.shields.io/npm/v/@asyncapi/edavisualiser)](https://www.npmjs.com/package/@asyncapi/edavisualiser)
[![License](https://img.shields.io/github/license/asyncapi/EDAVisualiser)](https://github.com/asyncapi/EDAVisualiser/blob/master/LICENSE)
[![last commit](https://img.shields.io/github/last-commit/asyncapi/EDAVisualiser)](https://github.com/asyncapi/EDAVisualiser/commits/master)
[![Playground](https://img.shields.io/website?label=playground&url=https%3A%2F%asyncapi.github.io%2FEDAVisualiser)](https://asyncapi.github.io/EDAVisualiser) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Expand Down Expand Up @@ -42,7 +42,7 @@ It is written in React, however, it also supports the most used frameworks such
Run this command to install the visualizer in your project:

```bash
npm install @asyncapi/EDAVisualiser
npm install @asyncapi/edavisualiser
```

## Inputs
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"styles": [
"src/styles.css",
"node_modules/@asyncapi/EDAVisualiser/styles/default.min.css"
"node_modules/@asyncapi/edavisualiser/styles/default.min.css"
],
"scripts": []
},
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"private": true,
"dependencies": {
"@asyncapi/EDAVisualiser": "0.10.0",
"@asyncapi/edavisualiser": "0.10.0",
"@angular/animations": "~13.3.0",
"@angular/common": "~13.3.0",
"@angular/compiler": "~13.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/src/app/Edavisualiser.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module '@asyncapi/EDAVisualiser/browser/standalone';
declare module '@asyncapi/edavisualiser/browser/standalone';
4 changes: 2 additions & 2 deletions examples/angular/src/app/applicationview.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component, ElementRef, OnDestroy, AfterViewInit, } from '@angular/core';
import StandaloneRenderer from "@asyncapi/EDAVisualiser/browser/standalone";
import StandaloneRenderer from "@asyncapi/edavisualiser/browser/standalone";

@Component({
selector: 'app-root',
template: `
<div style="width:100vw;height:100vh;" id="asyncapi-doc"></div>
`,
styleUrls: ['../../node_modules/@asyncapi/EDAVisualiser/styles/default.min.css']
styleUrls: ['../../node_modules/@asyncapi/edavisualiser/styles/default.min.css']
})
export class ApplicationViewComponent implements OnDestroy, AfterViewInit {
constructor(private element: ElementRef) {}
Expand Down
10 changes: 5 additions & 5 deletions examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"postinstall": "npm link ../../library/node_modules/react-dom ../../library/node_modules/react ../../library/"
},
"dependencies": {
"@asyncapi/EDAVisualiser": "0.15.0",
"@asyncapi/edavisualiser": "0.15.0",
"next": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/nextjs/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationView } from '@asyncapi/EDAVisualiser';
import { ApplicationView } from '@asyncapi/edavisualiser';

function App() {
// Render on the browser only
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/simple-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@asyncapi/parser": "^1.15.0",
"@asyncapi/EDAVisualiser": "^0.15.0",
"@asyncapi/edavisualiser": "^0.15.0",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-router-dom": "^5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/SimpleApp.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationView } from '@asyncapi/EDAVisualiser';
import '@asyncapi/EDAVisualiser/styles/default.css';
import { ApplicationView } from '@asyncapi/edavisualiser';
import '@asyncapi/edavisualiser/styles/default.css';

function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/SimpleAsyncapi.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { ApplicationView } from '@asyncapi/EDAVisualiser';
import '@asyncapi/EDAVisualiser/styles/default.css';
import { ApplicationView } from '@asyncapi/edavisualiser';
import '@asyncapi/edavisualiser/styles/default.css';
import '@asyncapi/parser/dist/bundle';

const asyncAPIDocument = `
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-react/src/SimpleSystem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SystemView } from '@asyncapi/EDAVisualiser';
import { SystemView } from '@asyncapi/edavisualiser';

function App() {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/gamingapi/System.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState, useEffect } from 'react';
import { SystemView } from '@asyncapi/EDAVisualiser';
import { SystemView } from '@asyncapi/edavisualiser';
import { apps } from './apps';
import '@asyncapi/parser/dist/bundle';
import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

function Asyncapi() {
const [asyncapiDocuments, setAsyncapiDocuments] = useState<Array<{ parsedDoc: any, name: string }>>([]);
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/gamingapi/application.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState, useEffect } from 'react';
import { useParams } from 'react-router-dom';
import { ApplicationFocusView } from '@asyncapi/EDAVisualiser';
import { ApplicationFocusView } from '@asyncapi/edavisualiser';
import '@asyncapi/parser/dist/bundle';
import { apps } from './apps';
import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

function Asyncapi() {
const [externalApplications, setAsyncapiDocuments] = useState<Array<{ parsedDoc: any, name: string }>>([]);
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BrowserRouter } from 'react-router-dom';
import { App } from './App';

import './index.css';
import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

ReactDOM.render(
<React.StrictMode>
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/social_media/System.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState, useEffect } from 'react';
import { SystemView } from '@asyncapi/EDAVisualiser';
import { SystemView } from '@asyncapi/edavisualiser';
import { Menu } from './menu';
import { apps } from './apps';
import '@asyncapi/parser/dist/bundle';
import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

function Asyncapi() {
const [asyncapiDocuments, setAsyncapiDocuments] = useState<Array<{ parsedDoc: any, name: string }>>([]);
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-react/src/social_media/application.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useState, useEffect } from 'react';
import { Menu } from './menu';
import { useParams } from 'react-router-dom';
import { ApplicationFocusView } from '@asyncapi/EDAVisualiser';
import { ApplicationFocusView } from '@asyncapi/edavisualiser';
import { apps } from './apps';
import '@asyncapi/parser/dist/bundle';

import '@asyncapi/EDAVisualiser/styles/default.css';
import '@asyncapi/edavisualiser/styles/default.css';

function Asyncapi() {
const [externalApplications, setAsyncapiDocuments] = useState<Array<{ parsedDoc: any, name: string }>>([]);
Expand Down
4 changes: 2 additions & 2 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"copy:styles": "cp ./node_modules/@asyncapi/EDAVisualiser/styles/default.min.css ./src/assets/edavisualiser.min.css"
"copy:styles": "cp ./node_modules/@asyncapi/edavisualiser/styles/default.min.css ./src/assets/edavisualiser.min.css"
},
"dependencies": {
"core-js": "^3.8.3",
"vue": "^3.2.13"
},
"devDependencies": {
"@asyncapi/EDAVisualiser": "0.10.0",
"@asyncapi/edavisualiser": "0.10.0",
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/src/ApplicationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</template>

<script>
import StandaloneRenderer from '@asyncapi/EDAVisualiser/browser/standalone'
import StandaloneRenderer from '@asyncapi/edavisualiser/browser/standalone'
const props = {
application: {
id: "string",
Expand Down
2 changes: 1 addition & 1 deletion library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@asyncapi/EDAVisualiser",
"name": "@asyncapi/edavisualiser",
"version": "1.0.1",
"private": false,
"description": "A React flow library for visualizing event driven architectures.",
Expand Down

0 comments on commit 4af1c08

Please sign in to comment.