Skip to content

Commit

Permalink
refactor structure
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Sep 4, 2021
1 parent 02f40f3 commit 2648912
Show file tree
Hide file tree
Showing 102 changed files with 11,968 additions and 11,964 deletions.
14 changes: 1 addition & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
"@nrwl/nx/enforce-module-boundaries": ["off"]
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion apps/ng/src/app/contacts/state/contacts.repository.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { addEntities, createState, Store, withEntities } from '@ngneat/elf';
import { createState, Store } from '@ngneat/elf';

import { selectRequestStatus, withRequestsStatus } from '@ngneat/elf-requests';
import {
Expand All @@ -11,6 +11,7 @@ import {
updatePaginationData,
withPagination,
} from '@ngneat/elf-pagination';
import { addEntities, withEntities } from '@ngneat/elf-entities';

interface Contact {
id: number;
Expand Down
9 changes: 4 additions & 5 deletions apps/ng/src/app/gallery/state/gallery.repository.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { Injectable } from '@angular/core';
import { createState, Store } from '@ngneat/elf';
import { withRequestsStatus } from '@ngneat/elf-requests';
import {
addEntities,
createState,
intersectEntities,
selectAll,
selectEntities,
Store,
UIEntitiesRef,
updateEntities,
withEntities,
withUIEntities,
} from '@ngneat/elf';
import { withRequestsStatus } from '@ngneat/elf-requests';
intersectEntities,
} from '@ngneat/elf-entities';

export interface GalleryItem {
id: number;
Expand Down
7 changes: 2 additions & 5 deletions apps/ng/src/app/todos/state/todos.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import { Injectable } from '@angular/core';
import { combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
import { write } from '../../store/mutations';
import { createState, select, Store, withProps } from '@ngneat/elf';
import {
addEntities,
createState,
select,
selectAll,
Store,
updateEntities,
withEntities,
withProps,
} from '@ngneat/elf';
} from '@ngneat/elf-entities';

interface Todo {
id: number;
Expand Down
17 changes: 8 additions & 9 deletions apps/ng/src/app/users/users.repository.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import {
addEntities,
createState,
selectAll,
selectEntity,
setEntities,
Store,
withEntities,
} from '@ngneat/elf';
import { createState, Store } from '@ngneat/elf';
import {
selectRequestStatus,
updateRequestCache,
withRequestsCache,
withRequestsStatus,
} from '@ngneat/elf-requests';
import { Injectable } from '@angular/core';
import {
addEntities,
selectAll,
selectEntity,
setEntities,
withEntities,
} from '@ngneat/elf-entities';

export interface User {
id: number;
Expand Down
6 changes: 3 additions & 3 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module.exports = {
items: [
'features/entities/entities',
'features/entities/ui-entities',
'features/entities/active-ids'
]
'features/entities/active-ids',
],
},
'features/requests',
'features/pagination',
Expand All @@ -42,6 +42,6 @@ module.exports = {
'features/history',
'features/props',
'dev-tools',
'faq'
'faq',
],
};
6 changes: 5 additions & 1 deletion docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ function HomepageHeader() {
<img src="img/elf.png" alt="elf" width={200} />
</h1>
<p className="hero__subtitle">
A Tiny <b><em>Reactive</em></b> Store with Magical Powers
A Tiny{' '}
<b>
<em>Reactive</em>
</b>{' '}
Store with Magical Powers
</p>
<div className={styles.buttons}>
<Link
Expand Down
6 changes: 6 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"devtools": {
"tags": []
},
"entities": {
"tags": []
},
"mocks": {
"tags": []
},
"ng": {
"tags": []
},
Expand Down
Loading

0 comments on commit 2648912

Please sign in to comment.