{"id":13554216,"url":"https://github.com/dineug/vuerd-electron","last_synced_at":"2025-04-03T06:31:18.491Z","repository":{"id":164715253,"uuid":"175647285","full_name":"dineug/vuerd-electron","owner":"dineug","description":"desktop ERD app","archived":true,"fork":false,"pushed_at":"2020-02-05T23:12:44.000Z","size":614,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-04T02:32:50.469Z","etag":null,"topics":["database","database-schema","desktop-erd","electron","erd","vue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dineug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-14T15:15:48.000Z","updated_at":"2024-10-24T07:56:05.000Z","dependencies_parsed_at":"2024-01-14T15:39:48.777Z","dependency_job_id":null,"html_url":"https://github.com/dineug/vuerd-electron","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineug%2Fvuerd-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineug%2Fvuerd-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineug%2Fvuerd-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineug%2Fvuerd-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dineug","download_url":"https://codeload.github.com/dineug/vuerd-electron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246947978,"owners_count":20859354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","database-schema","desktop-erd","electron","erd","vue"],"created_at":"2024-08-01T12:02:42.317Z","updated_at":"2025-04-03T06:31:17.385Z","avatar_url":"https://github.com/dineug.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","electron"],"sub_categories":[],"readme":"# Warning\n\u003e This project is no longer managed  \n\ncompletely restructured  \nPlease use the [vscode extension ERD Editor](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode)\n\n## Migration Data\n```javascript\nconst oldData = require(\"./[oldData].json\");\nconst fs = require(\"fs\");\n\nfunction createBaseData() {\n  return {\n    canvas: {\n      width: 2000,\n      height: 2000,\n      scrollTop: 0,\n      scrollLeft: 0,\n      show: {\n        tableComment: true,\n        columnComment: true,\n        columnDataType: true,\n        columnDefault: true,\n        columnAutoIncrement: true,\n        columnPrimaryKey: true,\n        columnUnique: true,\n        columnNotNull: true,\n        relationship: true\n      },\n      database: \"MySQL\",\n      databaseName: \"\",\n      canvasType: \"ERD\",\n      language: \"graphql\",\n      tableCase: \"pascalCase\",\n      columnCase: \"camelCase\"\n    },\n    memo: {\n      memos: []\n    },\n    table: {\n      tables: [],\n      edit: null,\n      copyColumns: [],\n      columnDraggable: null\n    },\n    relationship: {\n      relationships: [],\n      draw: null\n    }\n  };\n}\n\noldData.tabs.forEach(tab =\u003e {\n  const baseData = createBaseData();\n  baseData.canvas.databaseName = tab.name;\n  baseData.canvas.width = tab.store.CANVAS_WIDTH;\n  baseData.canvas.height = tab.store.CANVAS_WIDTH;\n  tab.store.tables.forEach(table =\u003e {\n    const resultTable = {\n      id: table.id,\n      name: table.name,\n      comment: table.comment,\n      ui: {\n        active: table.ui.selected,\n        top: table.ui.top,\n        left: table.ui.left,\n        widthName: table.ui.width / 2,\n        widthComment: table.ui.width / 2,\n        zIndex: table.ui.zIndex\n      },\n      columns: []\n    };\n    table.columns.forEach(column =\u003e {\n      resultTable.columns.push({\n        id: column.id,\n        name: column.name,\n        comment: column.comment,\n        dataType: column.dataType,\n        default: column.default,\n        option: {\n          autoIncrement: column.options.autoIncrement,\n          primaryKey: column.options.primaryKey,\n          unique: column.options.unique,\n          notNull: column.options.notNull\n        },\n        ui: {\n          active: column.ui.selected,\n          pk: column.ui.pk,\n          fk: column.ui.fk,\n          pfk: column.ui.pfk,\n          widthName: column.ui.widthName,\n          widthComment: column.ui.widthComment,\n          widthDataType: column.ui.widthDataType,\n          widthDefault: 60\n        }\n      });\n    });\n    baseData.table.tables.push(resultTable);\n  });\n  tab.store.lines.forEach(line =\u003e {\n    baseData.relationship.relationships.push({\n      identification: line.isIdentification,\n      id: line.id,\n      relationshipType: line.type === \"erd-0-1-N\" ? \"ZeroOneN\" : \"ZeroOne\",\n      start: {\n        tableId: line.points[0].id,\n        columnIds: line.points[0].columnIds,\n        x: line.points[0].x,\n        y: line.points[0].y,\n        direction: \"top\"\n      },\n      end: {\n        tableId: line.points[1].id,\n        columnIds: line.points[1].columnIds,\n        x: line.points[1].x,\n        y: line.points[1].y,\n        direction: \"top\"\n      }\n    });\n  });\n  tab.store.memos.forEach(memo =\u003e {\n    baseData.memo.memos.push({\n      value: memo.content,\n      id: memo.id,\n      ui: {\n        active: memo.ui.selected,\n        top: memo.ui.top,\n        left: memo.ui.left,\n        width: memo.ui.width,\n        height: memo.ui.height,\n        zIndex: memo.ui.zIndex\n      }\n    });\n  });\n\n  fs.writeFile(\n    `./convert-${new Date().getTime()}.vuerd.json`,\n    JSON.stringify(\n      baseData,\n      (key, value) =\u003e {\n        return value;\n      },\n      2\n    ),\n    err =\u003e {\n      if (err) {\n        console.log(err);\n      }\n    }\n  );\n});\n\nconsole.log(\"END\");\n```\n\n## vuerd  \n![logo](https://vuerd.github.io/vuerd-front/verd.png)\n---\n![use](https://user-images.githubusercontent.com/45829489/54869528-2ecfeb00-4ddd-11e9-8f7b-40df329646fa.png)  \n![use](https://user-images.githubusercontent.com/45829489/54869529-2f688180-4ddd-11e9-810c-60c78a776bf5.png)\n---\n# vuerd-electron\n## ERD\n* ERD editor [demo](https://vuerd.github.io/vuerd-front/).\n* ERD chrome extensions [app](https://chrome.google.com/webstore/detail/vuerd/jnjbnkehgfngjhlcaefjfdamioapajfg)\n* ERD desktop app [download](https://github.com/vuerd/vuerd-electron/releases)\n\n## start\n\n``` bash\n$ yarn\n$ yarn dev\n```\n\n## License\n[MIT](https://github.com/vuerd/vuerd-electron/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineug%2Fvuerd-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdineug%2Fvuerd-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineug%2Fvuerd-electron/lists"}