Skip to content

Commit

Permalink
chore: use data from dealful
Browse files Browse the repository at this point in the history
  • Loading branch information
tassioFront committed Aug 20, 2021
1 parent 51851f1 commit 094df56
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "vue-cli-service build --mode other && http-server -c-1 -p 3000 ./dist"
},
"dependencies": {
"@mfe-module-federation-vue/dealful-package": "^0.0.2",
"@mfe-module-federation-vue/dealful-package": "^0.0.3",
"core-js": "^3.6.5",
"http-server": "^0.12.3",
"vue": "^2.6.11",
Expand Down
5 changes: 2 additions & 3 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
const Profile = () => import("profile/Profile");
const Logout = () => import("auth/Logout");
import { emitter, EVENT_KEYS } from "../remotes/dealful";
import UserTools from "auth/UserTools";
import { emitter, EVENT_KEYS, userData } from "../dealful";
export default {
name: "Navbar",
data: () => ({ drawer: null, user: UserTools.storage.userData() }),
data: () => ({ drawer: null, user: userData() }),
components: { Profile, Logout },
methods: {
menuToggle() {
Expand Down
1 change: 1 addition & 0 deletions src/remotes/dealful.js → src/dealful/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export {
emitter,
EVENT_KEYS,
STORAGE_KEYS,
userData,
} from "@mfe-module-federation-vue/dealful-package";
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Cart = () => import("cart/Cart");
const Products = () => import("products/Products");
const Login = () => import("auth/Login");
import remoteProfileRoutes from "profile/routes";
import { STORAGE_KEYS } from "../remotes/dealful";
import { STORAGE_KEYS } from "../dealful";

export const routes = [
{
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,10 @@
dependencies:
"@hapi/hoek" "^9.0.0"

"@mfe-module-federation-vue/dealful-package@^0.0.2":
version "0.0.2"
resolved "https://npm.pkg.github.com/download/@mfe-module-federation-vue/dealful-package/0.0.2/f9428520b663f61da550a4bacdd0551f96fcd7f82db45f9540c894772e51d129#dc111f76e428d13c007541f131783706393e796a"
integrity sha512-Yhuw/ApOGnuzpjUBV0Tp+hRQQsKa7DZ2Q98T2QEa8fT6rRo01TTHj0QC971OqVmtNFRjekQBa+f9C/yhqxRRMg==
"@mfe-module-federation-vue/dealful-package@^0.0.3":
version "0.0.3"
resolved "https://npm.pkg.github.com/download/@mfe-module-federation-vue/dealful-package/0.0.3/ad71d08efdc0bfc7b6bba26533a429823908470c0879811be872012aa92f0551#769e2d66b0d43799fd23f47138054b73802b1041"
integrity sha512-mH+IehIZau9gAMEdOG+BK2bKlZLabJ889Bh9lemyWhJr3AdAiNL0v4tv+kKwQuzlDCCWaR2S46Fdu1H7MN5KyA==
dependencies:
nanoevents "^6.0.0"

Expand Down

0 comments on commit 094df56

Please sign in to comment.