Skip to content

Commit

Permalink
Switched old references to @irontec/ivoz-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
rbatistadev committed Jun 17, 2024
1 parent 09628e7 commit 5723c2a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions library/hygen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
Create in the root project a file named .hygen.js, following the next structure:

```javascript
const helpers = require("@irontec/ivoz-ui/hygen/lib");
const helpers = require("@irontec-voip/ivoz-ui/hygen/lib");

module.exports = {
templates: `${__dirname}/node_modules/@irontec/ivoz-ui/hygen/templates`,
templates: `${__dirname}/node_modules/@irontec-voip/ivoz-ui/hygen/templates`,
helpers: {
...helpers,
url: () => "https://10.189.2.23/isbc/api/docs.json",
Expand Down
8 changes: 4 additions & 4 deletions library/hygen/templates/entity/new/Entity.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
to: src/entities/<%= Name %>/<%= Name %>.tsx
---
import AccountTreeIcon from '@mui/icons-material/AccountTree';
import EntityInterface from '@irontec/ivoz-ui/entities/EntityInterface';
import _ from '@irontec/ivoz-ui/services/translations/translate';
import defaultEntityBehavior from '@irontec/ivoz-ui/entities/DefaultEntityBehavior';
import { EntityValue } from '@irontec/ivoz-ui';
import EntityInterface from '@irontec-voip/ivoz-ui/entities/EntityInterface';
import _ from '@irontec-voip/ivoz-ui/services/translations/translate';
import defaultEntityBehavior from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior';
import { EntityValue } from '@irontec-voip/ivoz-ui';
import selectOptions from './SelectOptions';
import { <%= Name %>Properties, <%= Name %>PropertyList } from './<%= Name %>Properties';

Expand Down
4 changes: 2 additions & 2 deletions library/hygen/templates/entity/new/EntityProperties.ejs.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
to: src/entities/<%= Name %>/<%= Name %>Properties.ts
---
import { PropertySpec } from '@irontec/ivoz-ui/services/api/ParsedApiSpecInterface';
import { EntityValue, EntityValues } from '@irontec/ivoz-ui/services/entity/EntityService';
import { PropertySpec } from '@irontec-voip/ivoz-ui/services/api/ParsedApiSpecInterface';
import { EntityValue, EntityValues } from '@irontec-voip/ivoz-ui/services/entity/EntityService';

export type <%= Name %>PropertyList<T> = {
<%- h.formattedEntityProperties(h.url(), Name)%>
Expand Down
4 changes: 2 additions & 2 deletions library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
to: src/entities/<%= Name %>/ForeignKeyGetter.tsx
---
import { ForeignKeyGetterType } from '@irontec/ivoz-ui/entities/EntityInterface';
import { autoSelectOptions } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior';
import { ForeignKeyGetterType } from '@irontec-voip/ivoz-ui/entities/EntityInterface';
import { autoSelectOptions } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior';
import { <%= Name %>PropertyList } from './<%= Name %>Properties';

/** TODO remove this file unless you need to change default behaviour **/
Expand Down
4 changes: 2 additions & 2 deletions library/hygen/templates/entity/new/ForeignKeyResolver.ejs.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
to: src/entities/<%= Name %>/ForeignKeyResolver.tsx
---
import { autoForeignKeyResolver } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior';
import { foreignKeyResolverType } from '@irontec/ivoz-ui/entities/EntityInterface';
import { autoForeignKeyResolver } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior';
import { foreignKeyResolverType } from '@irontec-voip/ivoz-ui/entities/EntityInterface';
import { <%= Name %>PropertiesList } from './<%= Name %>Properties';

/** TODO remove this file unless you need to change default behaviour **/
Expand Down
8 changes: 4 additions & 4 deletions library/hygen/templates/entity/new/Form.ejs.t
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
to: src/entities/<%= Name %>/Form.tsx
---
import useFkChoices from '@irontec/ivoz-ui/entities/data/useFkChoices';
import defaultEntityBehavior, { EntityFormProps, FieldsetGroups } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior';
import _ from '@irontec/ivoz-ui/services/translations/translate';
import { Form as DefaultEntityForm } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior/Form';
import useFkChoices from '@irontec-voip/ivoz-ui/entities/data/useFkChoices';
import defaultEntityBehavior, { EntityFormProps, FieldsetGroups } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior';
import _ from '@irontec-voip/ivoz-ui/services/translations/translate';
import { Form as DefaultEntityForm } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior/Form';
import { foreignKeyGetter } from './ForeignKeyGetter';

const Form = (props: EntityFormProps): JSX.Element => {
Expand Down
6 changes: 3 additions & 3 deletions library/hygen/templates/entity/new/SelectOptions.ejs.t
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
to: src/entities/<%= Name %>/SelectOptions.ts
---
import defaultEntityBehavior from '@irontec/ivoz-ui/entities/DefaultEntityBehavior';
import { SelectOptionsType } from '@irontec/ivoz-ui/entities/EntityInterface';
import defaultEntityBehavior from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior';
import { SelectOptionsType } from '@irontec-voip/ivoz-ui/entities/EntityInterface';
import { <%= Name %>PropertiesList } from './<%= Name %>Properties';
import { DropdownChoices } from '@irontec/ivoz-ui';
import { DropdownChoices } from '@irontec-voip/ivoz-ui';
import store from 'store';

const <%= Name %>SelectOptions: SelectOptionsType = ({ callback, cancelToken }): Promise<unknown> => {
Expand Down

0 comments on commit 5723c2a

Please sign in to comment.