278 Commits

Author SHA1 Message Date
Bohdan Liashenko
31ca6f4a78 Update README.md 2021-09-11 13:27:58 +02:00
Bohdan Liashenko
1f9bc3a2d3 Update README.md 2021-05-02 18:07:16 +02:00
Bohdan Liashenko
aad81bedbd Update README.md 2021-05-02 18:02:51 +02:00
Bohdan Liashenko
1158c5fc1d Update README.md 2021-04-27 19:22:55 +02:00
Bohdan Liashenko
a9727b990d Update README.md 2021-04-27 19:20:40 +02:00
Bogdan Lyashenko
a9f94a2cfa chore: version bump 2021-03-23 17:51:46 +01:00
Bogdan Lyashenko
eb0b9bfc40 Merge branch 'syarig-code-parse-php-namespace' 2021-03-23 14:24:17 +01:00
Bogdan Lyashenko
b4e1a99add fix: syntax changes 2021-03-23 14:23:58 +01:00
syarig
c21d3ff504 chore: remove npm scripts for docker 2021-01-03 19:55:02 +09:00
syarig
2957d95133 feat: changed to ran server-dev in Docker environment 2021-01-03 19:50:30 +09:00
syarig
d6ce727b0c refactor: improved to use cache that parsed code 2020-12-15 23:33:56 +09:00
syarig
c18c9fadd1 refactor: parse in php namespaces 2020-12-13 23:12:50 +09:00
syarig
dce33716d9 refactor: change public function names in namespaces 2020-12-13 00:49:59 +09:00
syarig
cf8ba61943 chore: remove example project code in src-php 2020-12-12 23:29:49 +09:00
syarig
26383aa79d feat: change behavior for dependency direct only 2020-12-12 12:53:32 +09:00
syarig
136bd77d5f feat: add namespaces, parser for php in code parse 2020-12-11 01:26:13 +09:00
syarig
ba6620f040 feat: add code parse php namespace 2020-12-07 23:09:15 +09:00
Bohdan Liashenko
4a8e7b7dc8 Update README.md 2020-05-23 18:50:38 +02:00
Bogdan Lyashenko
6ca48eb537 fix: build 2019-08-17 11:53:52 +02:00
Bogdan Lyashenko
2864a098ab 1.7.3 2019-08-17 11:52:57 +02:00
Bogdan Lyashenko
fec0cceba6 fix: docs 2019-08-17 11:47:34 +02:00
Bogdan Lyashenko
3bf39ce1b0 fix: readme change 2019-08-17 11:43:46 +02:00
Bogdan Lyashenko
3a047b5bbe chore: clean up 2019-08-17 11:39:39 +02:00
Bogdan Lyashenko
50145d4d1a 1.7.2 2019-08-12 20:55:38 +02:00
Bogdan Lyashenko
4df2e8a48b fix: saga 2019-08-12 20:55:31 +02:00
Bogdan Lyashenko
3dae451776 feat: hide source tree 2019-08-12 20:53:44 +02:00
Bogdan Lyashenko
4d038f37b3 feat: add file path to code preview 2019-08-12 19:49:45 +02:00
Bogdan Lyashenko
a09ef4df65 feat: add file path to code preview 2019-08-12 19:46:46 +02:00
Bogdan Lyashenko
628862d024 fix: underlay styles for namespace title 2019-08-10 20:29:53 +02:00
Bogdan Lyashenko
af83be1fcc 1.7.1 2019-08-10 20:17:33 +02:00
Bogdan Lyashenko
05cb5527e3 fix: peformance for flow steps 2019-08-10 20:17:21 +02:00
Bogdan Lyashenko
7d910a0f75 1.7.0 2019-08-06 20:31:37 +02:00
Bogdan Lyashenko
ab74f6426e 1.6.18 2019-08-06 20:26:39 +02:00
Bogdan Lyashenko
390bb8ff67 fix: left margin for svg 2019-08-06 20:26:30 +02:00
Bogdan Lyashenko
fcd108f9e7 fix: readme 2019-08-06 20:10:33 +02:00
Bogdan Lyashenko
dd2c6ee3d2 1.6.17 2019-08-06 20:08:17 +02:00
Bogdan Lyashenko
9917425cc8 fix: config file support 2019-08-06 20:07:45 +02:00
Bohdan Liashenko
3f54ca11a1 Merge pull request #85 from idoo/feature/config
WIP: feat: added codecrumbs.config
2019-08-06 19:05:41 +02:00
Bohdan Liashenko
e059f800d6 Merge branch 'master' into feature/config 2019-08-06 19:04:40 +02:00
Bogdan Lyashenko
f2dec10c05 feat: add extra persist list 2019-08-06 18:57:37 +02:00
Ivan Verevkin
d8117eac7d feat: added codecrumbs.config 2019-08-06 15:26:09 +02:00
Ivan Verevkin
354514818c feat: added codecrumbs.config 2019-08-06 13:48:29 +02:00
Ivan Verevkin
4ac814be93 feat: added codecrumbs.config 2019-08-06 12:20:52 +02:00
Ivan Verevkin
2f7387a67f feat: added codecrumbs.config 2019-08-06 11:59:06 +02:00
Bogdan Lyashenko
1cf779c5a6 test: test 2019-08-04 12:43:03 +02:00
Bogdan Lyashenko
64c9a75d92 test: test 2019-08-04 12:37:05 +02:00
Bogdan Lyashenko
5a8c4e6a9b 1.6.16 2019-08-04 12:20:57 +02:00
Bogdan Lyashenko
2fd728b5e8 feat: add tree diagram content id 2019-08-04 12:20:51 +02:00
Bogdan Lyashenko
9bda1672d5 1.6.15 2019-08-03 21:15:48 +02:00
Bogdan Lyashenko
101eade38f feat: v update info 2019-08-03 21:15:41 +02:00
Bogdan Lyashenko
6a1c8bcd75 1.6.14 2019-08-03 20:36:43 +02:00
Bogdan Lyashenko
c49a09e721 feat: add debug mode flag 2019-08-03 20:36:35 +02:00
Bogdan Lyashenko
d526ded04b chore: add hint about cc group 2019-08-03 19:36:01 +02:00
Ivan Verevkin
06344bee72 feat: added codecrumbs.config 2019-08-02 18:18:08 +02:00
Bogdan Lyashenko
f9f67ff9ea 1.6.13 2019-08-01 20:16:49 +02:00
Bogdan Lyashenko
9e519166d5 fix: flow without steps 2019-08-01 20:16:43 +02:00
Bogdan Lyashenko
1b649bbe96 1.6.12 2019-08-01 19:50:40 +02:00
Bogdan Lyashenko
9ed305c08b fix: unique keys for react lists 2019-08-01 19:50:32 +02:00
Bogdan Lyashenko
dfebfa20a2 fix: layout calc 2019-08-01 19:11:11 +02:00
Bogdan Lyashenko
564c81362e fix: geometry calc 2019-07-30 21:16:40 +02:00
Bogdan Lyashenko
d938ea3ef1 1.6.11 2019-07-28 11:23:57 +02:00
Bogdan Lyashenko
beceb476d9 feat: extend store 2019-07-28 11:23:21 +02:00
Bogdan Lyashenko
ca882e4568 1.6.10 2019-07-27 20:04:13 +02:00
Bogdan Lyashenko
227c626c3a fix: layout 2019-07-27 20:03:38 +02:00
Bogdan Lyashenko
c3606e3c3e fix: border for single space 2019-07-27 19:22:36 +02:00
Bogdan Lyashenko
ae9ffccf65 chore: js2flowchart update 2019-07-27 10:44:09 +02:00
Ivan Verevkin
897dcb8c3b feat: added codecrumbs.config 2019-07-26 14:18:51 +02:00
Bogdan Lyashenko
38e1fdeeda 1.6.9 2019-07-25 20:08:15 +02:00
Bogdan Lyashenko
c94e587675 fix: padding for geometry 2019-07-25 20:07:10 +02:00
Bohdan Liashenko
5354dad9fe Merge pull request #80 from idoo/chore/refactor-codecrumbs
chore: import only getCrumbs
2019-07-25 20:02:29 +02:00
Bohdan Liashenko
cbbab432e4 Merge pull request #81 from idoo/chore/upgrade-madge
chore: upgraded madge
2019-07-25 19:58:05 +02:00
Bogdan Lyashenko
e21ab82729 1.6.8 2019-07-25 19:37:38 +02:00
Bogdan Lyashenko
987a98732a fix: downgrade http-server to v0.9.0 2019-07-25 19:36:41 +02:00
Ivan Verevkin
3ddfda80ed chore: upgraded madge 2019-07-23 17:29:03 +02:00
Ivan Verevkin
3e5da523ce chore: import only getCrumbs 2019-07-23 14:00:05 +02:00
Bohdan Liashenko
6f6625d3db Merge pull request #79 from idoo/feature/lua
feat: added Lua support
2019-07-23 11:00:34 +02:00
Ivan Verevkin
e9b4331d60 Merge branch 'master' into feature/lua 2019-07-22 16:20:40 +02:00
Ivan Verevkin
b7e5b70df7 feat: added Lua support 2019-07-22 16:18:17 +02:00
Bogdan Lyashenko
ec04a20b8d 1.6.7 2019-07-20 11:15:27 +02:00
Bohdan Liashenko
7b51b8db72 Merge pull request #75 from idoo/feature/reason
feat: added OCaml support
2019-07-20 11:05:24 +02:00
Bogdan Lyashenko
fddb08554d fix: refactoring clean up 2019-07-20 10:52:55 +02:00
Ivan Verevkin
14116c24b8 Merge branch 'master' into feature/reason 2019-07-19 16:28:19 +02:00
Ivan Verevkin
9307cf6259 feat: added OCaml support 2019-07-19 16:24:29 +02:00
Bohdan Liashenko
39de752084 Merge pull request #72 from idoo/feature/perl
feature: added perl language
2019-07-18 16:51:59 +02:00
Bohdan Liashenko
d50783bb7f Merge pull request #74 from idoo/chore/refactor
refactor project source files
2019-07-18 16:50:53 +02:00
Ivan Verevkin
2f22563d8d chore: refactor project source 2019-07-18 15:36:04 +02:00
Bohdan Liashenko
a0c7c134d3 Update README.md 2019-07-17 16:29:02 +02:00
Ivan Verevkin
e8d08572c6 feature: added perl language 2019-07-17 14:52:30 +02:00
Bogdan Lyashenko
0191bde3e6 1.6.6 2019-07-16 21:07:55 +02:00
Bogdan Lyashenko
5c738d8f4d chore: build 2019-07-16 21:07:51 +02:00
Bogdan Lyashenko
6ca8817108 chore: build 2019-07-16 21:07:27 +02:00
Bogdan Lyashenko
b9f5c0b40e chore: add 0x to readme 2019-07-16 19:49:53 +02:00
Bogdan Lyashenko
c89cfec0c8 1.6.5 2019-07-16 19:41:54 +02:00
Bohdan Liashenko
85840a9fa6 Merge pull request #71 from idoo/chore/editorconfig
Added basic editorconfig
2019-07-16 16:23:13 +02:00
Bohdan Liashenko
a9ff99d48e Merge pull request #70 from idoo/feature/refactor
chore: extracted languages extensions and refactor code
2019-07-16 16:21:26 +02:00
Ivan Verevkin
160fdaef88 chore: added basic editorconfig 2019-07-16 16:11:08 +02:00
Ivan Verevkin
c020a739c4 chore: extracted languages extensions and refactor code 2019-07-16 16:06:44 +02:00
Ivan Verevkin
3b6e34fed8 Merge branch 'master' into feature/refactor 2019-07-16 15:45:17 +02:00
Ivan Verevkin
e4d09f118d chore: extracted languages extensions and refactor code 2019-07-16 15:42:35 +02:00
Bohdan Liashenko
662adb7bda Merge pull request #69 from idoo/feature/go
feat: added Go support
2019-07-15 15:37:59 +02:00
Ivan Verevkin
9c479f4462 feat: added Go support 2019-07-15 15:36:45 +02:00
Bogdan Lyashenko
447da26e16 1.6.4 2019-07-14 20:24:21 +02:00
Bogdan Lyashenko
9878e59a1b feat: expand codeblock on hover 2019-07-14 20:24:11 +02:00
Bogdan Lyashenko
af0530c764 1.6.3 2019-07-14 13:31:31 +02:00
Bogdan Lyashenko
30067567ab fix: layout geometry calc 2019-07-14 13:31:10 +02:00
Bogdan Lyashenko
501509f4df fix: fade in animations 2019-07-14 11:03:31 +02:00
Bogdan Lyashenko
b0edfdc976 fix: readme 2019-07-09 20:44:22 +02:00
Bogdan Lyashenko
4745ed2242 fix: readme 2019-07-09 20:42:54 +02:00
Bogdan Lyashenko
4112828108 1.6.2 2019-07-09 20:36:03 +02:00
Bogdan Lyashenko
17e5edc17d fix: ide integration 2019-07-09 20:35:54 +02:00
Bogdan Lyashenko
24a0f6f6c4 fix: readme fixes 2019-07-09 19:42:51 +02:00
Bogdan Lyashenko
76975298f0 1.6.1 2019-07-08 20:53:32 +02:00
Bogdan Lyashenko
770ae6d5cf fix: add test vue file 2019-07-08 20:53:13 +02:00
Bohdan Liashenko
25fdb28540 Merge pull request #68 from blackfyre/patch-1
Updated JS file list
2019-07-08 20:50:02 +02:00
Meki
6a026e0039 Updated JS file list
As per Bogdan's suggestion, the JS list has been expanded to support Vue single file components as well. https://github.com/Bogdan-Lyashenko/codecrumbs/issues/26#issuecomment-509145766
2019-07-08 11:28:50 +02:00
Bogdan Lyashenko
edb8cd0ba7 1.6.0 2019-07-07 14:05:25 +02:00
Bogdan Lyashenko
0908fcab89 feat: move to less 2019-07-07 14:05:04 +02:00
Bogdan Lyashenko
ceb18f613f 1.5.7 2019-07-02 20:42:20 +02:00
Bogdan Lyashenko
72776eee35 fix: build script 2019-07-02 20:41:58 +02:00
Bogdan Lyashenko
0cf67aa8bb fix: babel load 2019-06-30 21:09:45 +02:00
Bogdan Lyashenko
1893aef144 fix: server config 2019-06-30 15:47:43 +02:00
Bogdan Lyashenko
d2806e7fe0 fix: standalone flag 2019-06-30 14:05:35 +02:00
Bogdan Lyashenko
174e4be581 fix: meta version update 2019-06-30 13:57:31 +02:00
Bogdan Lyashenko
583b47bf2f 1.5.3 2019-06-30 13:55:01 +02:00
Bogdan Lyashenko
b623363369 fix: clen up 2019-06-30 13:54:56 +02:00
Bogdan Lyashenko
2b72adbfed 1.5.2 2019-06-23 19:02:24 +02:00
Bogdan Lyashenko
2b1f1a514d fix: version assigning logic 2019-06-23 19:01:46 +02:00
Bogdan Lyashenko
af452c014d 1.5.1 2019-06-23 18:42:19 +02:00
Bogdan Lyashenko
53cfa8deee fix: remove shared code 2019-06-23 18:42:05 +02:00
Bogdan Lyashenko
adefb7de07 1.5.0 2019-06-23 14:16:18 +02:00
Bogdan Lyashenko
d17ba78413 fix: relative path 2019-06-23 14:16:08 +02:00
Bogdan Lyashenko
56419385c3 1.4.7 2019-06-23 11:55:45 +02:00
Bogdan Lyashenko
4b55018014 fix: build for standalone 2019-06-23 11:54:44 +02:00
Bogdan Lyashenko
449b4157c3 1.4.6 2019-06-22 20:15:15 +02:00
Bogdan Lyashenko
cad0113d59 feat: add integration for io 2019-06-22 20:15:07 +02:00
Bogdan Lyashenko
4e98fd7839 1.4.5 2019-05-30 11:57:01 +02:00
Bogdan Lyashenko
366eb9d0dd fix: details for single crumbs 2019-05-30 11:56:51 +02:00
Bogdan Lyashenko
ed6cb9e00d 1.4.4 2019-05-23 20:17:54 +02:00
Bogdan Lyashenko
9267c05a9b fix: layout spacing 2019-05-23 20:17:44 +02:00
Bogdan Lyashenko
e2d574eb5d 1.4.3 2019-05-23 19:23:17 +02:00
Bohdan Liashenko
658fe92f9e Merge pull request #57 from jbcam/fix-cli-flag-ts
fix: ts cli settings
2019-05-23 19:22:05 +02:00
Jean Baptiste Camaret
1525572c03 fix cli settings 2019-05-21 11:36:42 +02:00
Bogdan Lyashenko
90b548973b 1.4.2 2019-05-20 19:29:03 +02:00
Bogdan Lyashenko
fa188868b1 fix: layout calc 2019-05-20 19:28:51 +02:00
Bogdan Lyashenko
719ee3456a 1.4.1 2019-05-20 19:18:20 +02:00
Bogdan Lyashenko
afc136d4f9 fix: geometry calc for layout 2019-05-20 19:17:33 +02:00
Bogdan Lyashenko
802ceb1ff5 fix: clean up 2019-05-20 19:08:12 +02:00
Bohdan Liashenko
adf9aac96a Merge pull request #53 from jbcam/add-tsConfig-suport-madge
feat: add support for madge to resolve tsConfig path aliases
2019-05-20 18:59:36 +02:00
Jean Baptiste Camaret
1898ff0813 updates post review 2019-05-17 11:33:44 +02:00
Bogdan Lyashenko
e97ada9654 1.4.0 2019-05-14 20:52:27 +02:00
Bogdan Lyashenko
1f79a454c4 fix: tree diagram width 2019-05-14 20:52:16 +02:00
Bogdan Lyashenko
029493f3ed feat: add code cmp 2019-05-14 20:38:31 +02:00
Bogdan Lyashenko
882332fc55 Merge branch 'master' into code-preview 2019-05-14 19:46:46 +02:00
Bogdan Lyashenko
a318765143 1.3.1 2019-05-14 19:38:33 +02:00
Bogdan Lyashenko
bafed33c1f fix: add default value for ccAlign point 2019-05-14 19:37:30 +02:00
Bogdan Lyashenko
43451bdaff fix: cc comments 2019-05-14 19:36:20 +02:00
Bogdan Lyashenko
a2c9b59a1e feat: code preview 2019-05-14 19:19:08 +02:00
Bogdan Lyashenko
164cb11cf3 fix: version 2019-05-12 18:01:33 +02:00
Bogdan Lyashenko
84fab1da37 fix: max width for ns 2019-05-12 15:05:35 +02:00
Bogdan Lyashenko
9843fb0144 fix: external edge 2019-05-12 13:24:18 +02:00
Bogdan Lyashenko
8b23750641 fix: colors for cc 2019-05-12 12:13:01 +02:00
Bogdan Lyashenko
3d775da19f fix: move steps calc to top 2019-05-05 20:33:29 +02:00
Bogdan Lyashenko
ec0880ade3 feat: new sorting for cc 2019-05-04 20:14:49 +02:00
Bogdan Lyashenko
58b6765a71 fix: remove height limit for cc details 2019-05-01 10:33:14 +02:00
Bogdan Lyashenko
bf28e81613 fix: switch namespace on file select 2019-04-21 12:37:04 +02:00
Bogdan Lyashenko
c862b5f657 1.2.13 2019-04-19 18:43:37 +02:00
Bogdan Lyashenko
a4cb4b0107 fix: add selected flow to download list 2019-04-19 18:43:30 +02:00
Bogdan Lyashenko
78221abba4 1.2.12 2019-04-19 18:06:58 +02:00
Bogdan Lyashenko
b37663d17e fix: add blank to links 2019-04-19 18:06:47 +02:00
Bogdan Lyashenko
e063ba4b65 1.2.11 2019-04-19 17:48:22 +02:00
Bogdan Lyashenko
458fbc836b fix: show next added flow 2019-04-19 17:48:18 +02:00
Jean Baptiste Camaret
e3cfb240d0 feat: add support for tsConfig path aliases 2019-04-18 16:39:41 +02:00
Bogdan Lyashenko
fcedde96bb fix: update link in readme 2019-04-14 20:36:55 +02:00
Bogdan Lyashenko
4cb8f3fc66 Merge branch 'master' of https://github.com/Bogdan-Lyashenko/codecrumbs 2019-04-14 14:07:08 +02:00
Bogdan Lyashenko
eca8898d3b fix: add unique key 2019-04-14 14:06:54 +02:00
Bohdan Liashenko
4e770b7aec Update README.md 2019-04-06 06:29:18 +02:00
Bohdan Liashenko
0a3dea0edb Update README.md 2019-04-06 06:27:08 +02:00
Bogdan Lyashenko
69ccaf85be feat: add dependencies support to TS 2019-04-04 19:56:29 +02:00
Bohdan Liashenko
40ed8505ed Merge pull request #51 from jbcam/add-ts-dependancies-support
feat: added ts dependencies support
2019-04-04 19:54:29 +02:00
Jean Baptiste Camaret
1c8bf6d539 merge master 2019-04-04 15:21:50 +02:00
Jean Baptiste Camaret
fa4712aa34 update post review 2019-04-04 15:08:37 +02:00
Jean Baptiste Camaret
662291458f feat: added ts dependencies support 2019-04-02 08:33:05 +02:00
Bogdan Lyashenko
e8ca1f927b fix: add decorator plugin to ast parser 2019-03-30 20:28:40 +01:00
Bogdan Lyashenko
017d83c060 fix: update version 2019-03-30 20:17:29 +01:00
Bogdan Lyashenko
528fe8bdf1 fix: add decorator plugin to ast parser 2019-03-30 20:16:59 +01:00
Bogdan Lyashenko
c54a1b7abc fix: add decorator plugin to ast parser 2019-03-30 20:07:15 +01:00
Bogdan Lyashenko
b978a7f64e feat: add feature to open file in codeeditor 2019-03-30 11:05:30 +01:00
Bogdan Lyashenko
2ac23c86ea feat: add haskell support 2019-03-26 20:17:37 +01:00
Bogdan Lyashenko
6b56945eb0 fix: languages regex 2019-03-26 20:05:44 +01:00
Bogdan Lyashenko
aca83fae6d fix: update readme 2019-03-25 19:23:48 +01:00
Bogdan Lyashenko
5850ff923f feat: add conenct client on fly 2019-03-24 18:40:29 +01:00
Bogdan Lyashenko
2329d24ce3 feat: add cc filtered in sidebar 2019-03-24 18:07:51 +01:00
Bogdan Lyashenko
8b0cf0b6cf feat: add select of external edge flow 2019-03-24 10:15:39 +01:00
Bogdan Lyashenko
128f88c99d feat: add x flag to cli 2019-03-23 19:13:42 +01:00
Bogdan Lyashenko
261d06cf5a feat: add cc flow edge select 2019-03-23 11:38:44 +01:00
Bogdan Lyashenko
856fd37297 Merge branch 'master' of https://github.com/Bogdan-Lyashenko/codecrumbs 2019-03-21 19:48:46 +01:00
Bogdan Lyashenko
e2a3e6bf05 feat: sort files tree by cc flow 2019-03-21 19:45:38 +01:00
Bohdan Liashenko
0732382216 Merge pull request #44 from pyjarrett/master
Clarifies required usage of relative paths as arguments.
2019-03-14 07:45:58 +01:00
Paul Jarrett
0ae080130b Clarifies required usage of relative paths as arguments. 2019-03-13 21:40:47 -04:00
Bogdan Lyashenko
fe12874400 fix: calc scroll position 2019-03-13 18:18:58 +01:00
Bogdan Lyashenko
4e6aa1dc93 build: version update 2019-03-10 18:28:54 +01:00
Bogdan Lyashenko
20fbd97b01 feat: hide unsupported features per lanaguage 2019-03-10 17:50:57 +01:00
Bogdan Lyashenko
94eea071b6 fix: update readme 2019-02-27 19:30:14 +01:00
Bogdan Lyashenko
d9e50dc4f9 feat: add fortran support 2019-02-27 19:26:15 +01:00
Bogdan Lyashenko
3b29dd616c fix: increase socket msg size 2019-02-26 19:54:47 +01:00
Bogdan Lyashenko
1a61830d7a fix: update readme 2019-02-25 21:03:18 +01:00
Bogdan Lyashenko
7c3f88c2bf feat: add csharp, kotlin, ruby 2019-02-25 21:00:27 +01:00
Bogdan Lyashenko
50da3e9504 feat: add setup logs 2019-02-25 20:17:17 +01:00
Bogdan Lyashenko
772010458c fix: change cli readme 2019-02-23 19:46:35 +01:00
Bogdan Lyashenko
6205c26675 fix: filter node_module, change parser for js 2019-02-23 09:52:58 +01:00
Bohdan Liashenko
6712ea9ad8 Add backers 2019-02-20 20:30:21 +01:00
Bohdan Liashenko
41ece67739 Merge pull request #23 from 0xflotus/patch-1
fixed yarn command
2019-02-20 07:47:25 +01:00
0xflotus
268837a62f fixed yarn command 2019-02-20 03:22:55 +01:00
Bohdan Liashenko
512c3ae318 Update README.md 2019-02-19 19:58:42 +01:00
Bogdan Lyashenko
27d1ef6c9b feat: add image for dev 2019-02-18 21:38:18 +01:00
Bogdan Lyashenko
18fe23f92f Merge branch 'master' of https://github.com/Bogdan-Lyashenko/codecrumbs 2019-02-18 20:48:53 +01:00
Bogdan Lyashenko
8f7676a36c fix: readme chanegs 2019-02-18 20:48:35 +01:00
Bohdan Liashenko
e4be7ef344 Update README.md 2019-02-17 21:51:25 +01:00
Bogdan Lyashenko
aa518b9eab feat: version update 2019-02-16 19:57:05 +01:00
Bogdan Lyashenko
0155b855de fix: add flow to readme 2019-02-16 19:47:02 +01:00
Bogdan Lyashenko
1af5427db4 feat: case studies 2019-02-16 16:54:18 +01:00
Bogdan Lyashenko
9ac59e5e72 feat: add dep ui 2019-02-16 16:46:58 +01:00
Bogdan Lyashenko
c43caa8a00 fix: cc ui explained 2019-02-16 16:24:45 +01:00
Bogdan Lyashenko
aff1da2fe4 fix: cc ui explained 2019-02-16 16:24:40 +01:00
Bogdan Lyashenko
e8f5d8a663 fix: add donate to readme 2019-02-16 15:59:22 +01:00
Bohdan Liashenko
f3bd318635 Update README.md 2019-02-16 14:55:14 +01:00
Bogdan Lyashenko
9e965e1799 fix: twitter url 2019-02-16 09:39:07 +01:00
Bogdan Lyashenko
9b5a6191d6 fix: twitter url 2019-02-16 09:30:09 +01:00
Bogdan Lyashenko
8f2939d958 feat: add logo 2019-02-16 09:25:16 +01:00
Bogdan Lyashenko
33b484a405 feat: add logo 2019-02-16 09:07:16 +01:00
Bogdan Lyashenko
62ffdc3ab6 fix: metadata for download feat 2019-02-15 19:45:48 +01:00
Bogdan Lyashenko
7373e083a1 fix: path starting from rel symbols 2019-02-15 19:27:15 +01:00
Bogdan Lyashenko
57e7da6068 fix: version update 2019-02-15 18:25:22 +01:00
Bogdan Lyashenko
b34aca68ec fix: pth separator 2019-02-15 18:24:31 +01:00
Bogdan Lyashenko
3c65ba210f fix: readme 2019-02-13 20:45:27 +01:00
Bogdan Lyashenko
fb0974b0ff fix: readme 2019-02-13 20:42:01 +01:00
Bogdan Lyashenko
6bcf4ef96e fix: readme 2019-02-13 20:28:20 +01:00
Bogdan Lyashenko
aab750f93b fix: standalone json 2019-02-12 20:39:31 +01:00
Bogdan Lyashenko
167f119163 feat: add path validation 2019-02-12 20:15:11 +01:00
Bogdan Lyashenko
e1b9dd6dc6 fix: font for cross platform 2019-02-12 19:52:34 +01:00
Bogdan Lyashenko
3d581e6ed2 fix: dep paths for windows 2019-02-12 19:21:23 +01:00
Bogdan Lyashenko
95651a9d12 fix: empty path fail 2019-02-11 20:27:29 +01:00
Bogdan Lyashenko
7490bf3ea1 fix: separator per platform for paths 2019-02-11 20:15:41 +01:00
Bogdan Lyashenko
3c2a6f76cc fix: update readme 2019-02-10 20:30:46 +01:00
Bohdan Liashenko
62a0deba57 Update readme 2019-02-10 19:06:46 +01:00
Bogdan Lyashenko
bcb581af03 fix: hide menu for mobile 2019-02-10 15:52:19 +01:00
Bogdan Lyashenko
78da65706d feat: add parsr fallbacl for js 2019-02-10 15:35:59 +01:00
Bogdan Lyashenko
8155ed3207 feat: finish multi lnaguage support 2019-02-09 21:13:41 +01:00
Bogdan Lyashenko
eed383522b fix: icons per file 2019-02-09 10:36:09 +01:00
Bogdan Lyashenko
55068ca6ca feat: pass language to code components 2019-02-08 21:38:04 +01:00
Bogdan Lyashenko
0fee30ab26 feat: add multi language parse, python case 2019-02-08 20:58:56 +01:00
Bogdan Lyashenko
f820124db9 fix: loading position for tree diagrams 2019-02-07 20:27:41 +01:00
Bogdan Lyashenko
0428ba5e5c feat: multy language support 2019-02-07 20:20:19 +01:00
Bogdan Lyashenko
3ff09c65fc feat: add details renderinf for cc 2019-02-04 20:28:05 +01:00
Bogdan Lyashenko
b09c41c353 fix: dependencies file code load 2019-02-03 11:24:46 +01:00
Bogdan Lyashenko
d9f48330f2 fix: standalone file code 2019-02-03 10:56:00 +01:00
Bogdan Lyashenko
c97c2e93c6 fix: reset databus on upload store 2019-02-02 19:25:09 +01:00
Bogdan Lyashenko
205176caab fix: path for client 2019-02-02 18:53:26 +01:00
Bogdan Lyashenko
c62cb76347 feat: version update 2019-02-02 18:19:18 +01:00
Bogdan Lyashenko
a85eba776a fix: add multi-codebase to readme 2019-02-02 18:06:35 +01:00
Bogdan Lyashenko
95282552a5 feat: add footer info 2019-02-02 17:36:30 +01:00
Bogdan Lyashenko
93c584efc7 fix: multiple file changes, replace watcher 2019-02-02 17:03:22 +01:00
Bogdan Lyashenko
b7f16f31d9 feat: add external edges for codecrumbs 2019-02-02 11:40:51 +01:00
Bogdan Lyashenko
012d8c81f5 fix: pretty print server example 2019-01-29 20:44:36 +01:00
Bogdan Lyashenko
b4c03fc922 fix: upload gif 2019-01-29 20:39:48 +01:00
Bogdan Lyashenko
3d2ff24531 feat: add standalone placeholder 2019-01-29 20:36:58 +01:00
Bogdan Lyashenko
9d56f4a1b2 feat: update readme 2019-01-29 19:30:07 +01:00
Bogdan Lyashenko
fcc726046b feat: update readme 2019-01-29 19:29:44 +01:00
Bogdan Lyashenko
a0f06ac704 feat: update readme 2019-01-29 19:28:36 +01:00
Bogdan Lyashenko
4542021a34 feat: update readme 2019-01-29 19:27:19 +01:00
Bogdan Lyashenko
b32cb1eede feat: update readme 2019-01-28 20:29:19 +01:00
Bogdan Lyashenko
b41d1b1309 feat: update readme 2019-01-28 20:28:31 +01:00
Bogdan Lyashenko
fe9bda3ab0 feat: update readme 2019-01-28 20:26:34 +01:00
Bogdan Lyashenko
6cc5f311fc fix: layout 2019-01-26 17:43:18 +01:00
Bogdan Lyashenko
4d6529d6d1 feat: add second namespace 2019-01-26 17:19:19 +01:00
Bogdan Lyashenko
97fa10fc55 fix: set active folders on select node 2019-01-26 16:24:30 +01:00
Bogdan Lyashenko
e0adf39626 feat: add scrollable container for namespaces 2019-01-26 15:49:56 +01:00
Bogdan Lyashenko
d4b27cf545 feat: add multiple diagrams 2019-01-25 18:20:03 +01:00
306 changed files with 4025 additions and 49991 deletions

8
.editorconfig Normal file
View File

@@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

4
.gitignore vendored
View File

@@ -3,7 +3,7 @@ node_modules
# Build directories
src/public/dist/local/bundle/
src/public/dist/standalone/bundle/
build/
# example for dev
# example-project
@@ -12,4 +12,4 @@ src/public/dist/standalone/bundle/
.idea
.DS_STORE
yarn.lock
yarn.lock

View File

@@ -1,3 +1,5 @@
.idea
example-project
docs
docs
src/public/js
build

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:14-slim
WORKDIR /usr/src/codecrumbs
COPY package*.json ./
RUN yarn install
COPY . .
EXPOSE 2018 3018

187
README.md
View File

@@ -1,48 +1,169 @@
# codecrumbs [active development phase, stay tuned!] [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Leave%20breadcrumbs%20in%20source%20code%20with%20codecrumbs%20tool%20&url=https://github.com/Bogdan-Lyashenko/codecrumbs&via=bliashenko&hashtags=javascript,code)
[![npm version](https://badge.fury.io/js/codecrumbs.svg)](https://badge.fury.io/js/codecrumbs) [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) [<img src="https://img.shields.io/twitter/follow/bliashenko.svg?label=Stay%20Tuned&style=social">](https://twitter.com/bliashenko)
[![npm version](https://badge.fury.io/js/codecrumbs.svg)](https://badge.fury.io/js/codecrumbs)
<p align="center">
<img src="/docs/logo-sm.png" width="250"/>
</p>
Leave "breadcrumbs" in source code via comments to find your way out from code maze.
> Still much work to do, but the basic features are already implemented and are ready to use. Give it a try while I am finishing a few more big features. Ideas and improvements are welcome. Thanks.
<h3 align="center">
<a href="#what">What</a>
<span> · </span>
<a href="#demo">Demo</a>
<span> · </span>
<a href="#get-started">Get started</a>
<span> · </span>
<a href="#features">Features</a>
<span> · </span>
<a href="#case-studies">Case studies</a>
<span> · </span>
<a href="#support">Support</a>
</h3>
**Have you ever got lost in a big or unknown codebase?** This tool will help you to solve that. Also, it will increase your development speed and give more knowledge about your application architecture.
> If you like this project, follow me on Twitter [@bliashenko](https://twitter.com/bliashenko) to hear about things I am building.
## Codecrumbs v2
Check out new version of this project as [standalone application](https://codecrumbs.io). Just in a few clicks you can start exploring a codebase in more efficient way, create interactive visual guides and share them with others on your own blog! See [quick guide here](https://codecrumbs.io/guides/web-app-with-github/).
<p align="center">
<a href="https://codecrumbs.io" target="_blank">
<img src="https://codecrumbs.io/external/img/common/app-ui-1.png" />
</a>
</p>
## Demo
Check out prepared example for [**standalone version running here**](https://codecrumbs.io/app).
## Codecrumbs v1
>**How it works?** You run `codecrumbs` command for a codebase, it analyzes source code and builds its visual representation. Write down a codecrumb-comment and codebase state will be reflected by visual client in browser on the fly.
>
> Check out [my talk at React-Finland](https://www.youtube.com/watch?v=S_1-1jzLxm4) for more details.
<img src="/docs/main-ui-3.png" width="100%"/>
## [Demo](https://codecrumbs.io/)
Check out [**standalone version here**](https://codecrumbs.io/) with defined trail of codecrumbs.
[<img src="/docs/codecrumbs-ui.png" width="800">](https://codecrumbs.io/)
## Get started
Install ```codecrumbs``` globally or in ```devDependencies```:
```yarn add codecrumbs -D```
### Install and run
>Pre-condition: update/install `NodeJS` version to be >= *8.11.1*
Add command with **entry file** and **source directory** to ```scripts``` section in your ```package.json```. Change ```-e``` (entry point file), ```-d``` (directory) params to match paths inside your project.
```javascript
// package.json
...
"scripts": {
"start:cc": "codecrumbs -e src/index.js -d src"
}
1) Install ```codecrumbs``` globally (```yarn global add codecrumbs```)
2) Run ```codecrumbs -d project-src-dir -e project-src-dir/index.js```. Change parameters to match your project:```-d``` is *directory with source code*, ```-e``` is *entry point file* .
3) Go to [http://localhost:2018](http://localhost:2018/#) in the browser to check it out.
```
### Configuration
Run codecrumbs with CLI params or specify static config file `codecrumbs.config.js` (see example [here](/example-project/codecrumbs.config.js))
Run ```yarn start:cc``` from the terminal. Go to [http://localhost:2018/#](http://localhost:2018/#) in the browser to check it out.
CLI | Config file | Description | Example
--- | --- | --- | ---
```d``` | ```projectDir``` | Relative path to project source code directory | ```-d src```
```e``` | ```entryPoint``` | Relative path to project source entry point file (must be inside ```dir```) | ```-e src/app.js```
```x``` | ```excludeDir``` | Relative path(or paths separated by ```,```) to directories for exclusion | ```-x src/doc,src/thirdparty```
```p``` | ```clientPort``` | Port for Codecrumbs client (optional, default *2018*) | ```-p 2019```
```n``` | ```projectNameAlias``` | Project name alias (optional, default same as ```-d``` value) | ```-n my-hello-world```
```C``` | - | Path to codecrumbs.config.js (optional, by default will try to find the file in PWD) | ```-C config/codecrumbs.config.js```
```D``` | ```debugModeEnabled``` | Enable debug mode for logs (optional, default is ```false```) | ```-D```
## Breadcrumbs
> Leave breadcrumbs by simply putting a comment in code, diagram wil be updated on the fly!
Write ```//cc:here is breadcrumb``` to put a simple breadcrumb in the code. ```cc``` (stands for "codecrumb") is the prefix which used by the parser, and ```here is breadcrumb``` is a title of our first breadcrumb.
## Features
### Breadcrumbs and trails
Also, you can create “trail of breadcrumbs”basically, a sequence of codecrumbs which follow some data flow (e.g. user login, or form submit, etc.).
To create a codecrumb as part of a trail you write: ```//cc:signin#3;enable route``` where ```signin``` is the **trail ID**, ```#3``` is order **number of step**, ```enable route``` is a title describing the step.
<img src="/docs/live-changes.gif" width="800">
<img src="/docs/cc-ui-3.png" width="750"/>
Check out [the introduction article here](https://itnext.io/how-to-navigate-the-maze-of-javascript-code-541250447cbb) for more details.
UI explained:
- enable "Codecrumbs" switch to have codecrumbs tree on the scheme (drop-down contains extra configuration)
- choose "current" codecrumbs trail to display (can be either trail or all other "simple" codecrumbs)
- select connection between two steps (code for two codecrumbs will be opened in "Sidebar" under "Crumbs" tab)
- set other options in dropdowns to configure behaviour of the diagram (show code blocks, details, etc.)
**How to get there?**
## Learn and share your knowledge
So lets say you put together some trail of codecrumbs describing some important flow inside the project. How you can share it with others? Simply download the json file of codecrumbs store, send it to the friend, he/she uploads it to the codecrumbs and can see same you just saw!
<img src="/docs/share-knowledge.gif" width="800">
Leave breadcrumb in code by writing down a comment: ```//cc:[parameters;]```.
```cc``` (stands for "CodeCrumb") is a prefix which used by the parser; check example of parameters in the table below:
Example | Description | Use case
--- | --- | ---
```//cc:remember place``` | simple breadcrumb, ```remember place``` is a title of our first breadcrumb | Mark an important place to not forget where it was
```//cc:here is bug;well, seems like a bug in logic``` | simple breadcrumb, ```well, seems like a bug in logic``` is details for breadcrumb, separated by ```;``` | Add extra information, will be rendered in popups
```//cc:signin#3;enable route``` | trail of breadcrumbs,```signin``` is the **trail ID**, ```#3``` is order **number of step**, ```enable route``` is a title describing the step. | A sequence of codecrumbs, use to describe some data flow (e.g. user login, or form submit, etc.).
```//cc:signin#1;firebase sign in;+2;do call to firebase with credentials``` | trail of breadcrumbs,```+2``` is number of lines to highlight, separated by ```;``` | Use number of lines to highlight the code related to breadcrumb
> Note: current version supports single line comments only.
> Hint: you can use trail id without step number (e.g. ```//cc:groupname#;test```) just to group breadcrumbs, you always can add step numbers later when you know the correct order.
### Multi-codebase integration
You might be interested to study connections between several codebases (sub-modules), codecrumbs supports that.
Simply start codecrumbs multiple times (once for each codebase), it all **will be synced in one picture** inside the browser tab. To control a diagram UI - select it by clicking on it.
E.g. for client-server application, go to the source directory for your server code and run `codecrumbs -e your-server-src/index.py -d your-server-src`, same for client `codecrumbs -e src-client/index.js -d src-client`.
> **Note:** codebases can be located wherever you want (**no** need to have them like mono-repo, etc.), simply run `codecrumbs` for directory you need.
<img src="/docs/multi-codebase-cc-2.png" width="100%"/>
### Multi-language support
Current version supports next programming languages:
- `C#`
- `C++`
- `Fortran`
- `Go`
- `Haskell`
- `Java`
- `JavaScript`
- `Kotlin`
- `PHP`
- `Python`
- `Ruby`
- `TypeScript`
Please file an issue to support other language you would like to have.
### Dependencies
> Note: In current version only [JavaScript, TypeScript] offer this feature
<img src="/docs/dep-ui-2.png" width="100%"/>
UI explained:
- enable "Dependencies" switch
- select connection between modules (all involved files will be opened in "Sidebar", so you can see “what is imported” and “its implementation”)
### Flowchart
> Note: In current version only JavaScript offers this feature
<img src="/docs/flow-ui.png" width="100%"/>
[js2flowchart](https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart) is used in the sidebar to draw flowchart for the selected file code.
## Support
Any support is very much appreciated! 👍 😘 ❤️
If you like this project, please, **put a :star: and tweet about it**. Thanks!
If you like this project and believe it makes sense, please, put a :star: or tweet about it - it will show your support and motivate me :punch:. Thanks!
Please, consider [making financial donation](https://opencollective.com/codecrumbs), it will help further development of more cool features! We'll thank you by including your name/company logo here ☺️. Feel free to [ping me](https://www.linkedin.com/in/bohdan-liashenko-bb365854/) for discussion.
<a href="https://opencollective.com/codecrumbs/donate" target="_blank">
<img src="https://opencollective.com/codecrumbs/donate/button@2x.png?color=blue" width=300 />
</a>
#### Sponsors
Development supported by [0+X](https://0x.se)
<a href="https://0x.se" target="_blank">
<img src="https://avatars0.githubusercontent.com/u/16350669?s=200&v=4" width=100 />
</a>
#### Backers
<a href="https://opencollective.com/codecrumbs/backer/0/website" target="_blank"><img src="https://opencollective.com/codecrumbs/backer/0/avatar.svg"></a>
<a href="https://opencollective.com/codecrumbs/backer/1/website" target="_blank"><img src="https://opencollective.com/codecrumbs/backer/1/avatar.svg"></a>
<a href="https://opencollective.com/codecrumbs/sponsor/0/website" target="_blank"><img src="https://opencollective.com/codecrumbs/sponsor/0/avatar.svg"></a>
## Contribute
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the [owner](https://github.com/Bogdan-Lyashenko/) of this repository before making a change. Ideas and suggestions are welcome.
To start development environment, clone the repo & run:
```javascript
yarn && yarn start
```
## WIP
Next features are developing:
- **VS Code extension** - some neat features right inside the code editor. Checkout [the repo here](https://github.com/Bogdan-Lyashenko/vs-code-codecrumbs).

51
cli/index.cli.js Normal file → Executable file
View File

@@ -1,36 +1,57 @@
#!/usr/bin/env node
const path = require('path');
const program = require('commander');
const colors = require('colors');
const _ = require('lodash');
const showUpdatesInfo = require('./updatesInfo');
const server = require('../src/server');
showUpdatesInfo();
program
.option('-e, --entry [entryFile]', 'Specify path to entry point file. E.g. `./src/app.js`')
.option('-d, --dir [projectDir]', 'Specify path to project source code directory. E.g. `./src`')
.option('-e, --entry [entryPoint]', 'Specify path to entry point file. E.g. `src/app.js`')
.option('-d, --dir [projectDir]', 'Specify path to project source code directory. E.g. `src`', '')
.option(
'-w, --webpack [webpackConfigFile]',
'Specify path to webpack config file. E.g. ./webpack.config.js'
'Specify path to webpack config file. E.g. webpack.config.js'
)
.option(
'-t, --tsconfig [tsConfigFile]',
'Specify path to typeScript config file. E.g. tsConfig.json'
)
.option('-p, --port [defaultPort]', 'Specify port for Codecrumbs client. E.g. 3333', 2018)
.option('-i, --ideCmd [ideCmd]', 'IDE command to open file')
.option('-x, --excludeDir [excludeDirectories]', 'Exclude directories')
.option('-n, --projectName [projectNameAlias]', 'Project name alias')
.option('-C, --configFile [pathToConfigFile]', 'Path to codecrumbs.config.js')
.option('-D, --debugModeEnabled [debugModeEnabled]', 'Enable debug mode for logs.')
.parse(process.argv);
if (!program.entry && !program.dir) {
const pathToConfigFile = program.configFile || 'codecrumbs.config.js';
const configFileExists = server.checkIfPathExists(pathToConfigFile);
if ((!program.entry || !program.dir) && !configFileExists) {
console.log(
colors.magenta(
'Please specify `entry` and `dir` params. E.g. `codecrumbs -e src/app.js -d src`'
'Please specify `entryPoint` and `projectDir` params (e.g. `codecrumbs -e src/app.js -d src`). Or use `-C codecrumbs.config.js` instead.'
)
);
process.exit();
}
server.setup(
{
projectNameAlias: undefined, // TODO: add param for this
entryPoint: program.entry,
projectDir: program.dir,
webpackConfigPath: program.webpack,
clientPort: program.port
},
false
);
const configFromFile = configFileExists ? require(path.resolve(pathToConfigFile)) : {};
const configFromCLI = {
projectNameAlias: program.projectName,
entryPoint: program.entry,
projectDir: program.dir,
webpackConfigPath: program.webpack,
tsConfigPath: program.tsconfig,
clientPort: program.port,
excludeDir: program.excludeDir,
ideCmd: program.ideCmd,
debugModeEnabled: program.debugModeEnabled
};
server.setup(_.merge(configFromCLI, configFromFile), { isDev: false });

20
cli/updatesInfo.js Normal file
View File

@@ -0,0 +1,20 @@
const colors = require('colors');
const exec = require('child_process').exec;
module.exports = () => {
try {
exec('npm outdated codecrumbs').stdout.on('data', function(data) {
const list = data
.split(' ')
.filter(v => !!v)
.map(v => v.trim());
const latestVersion = list[list.length - 2];
console.log(
colors.cyan.underline(
`There is new version of codecrumbs (${latestVersion}) available! Please update to have all latest features and improvements!`
)
);
});
} catch (e) {}
};

BIN
docs/cc-ui-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

BIN
docs/dep-ui-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
docs/dev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

BIN
docs/flow-ui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
docs/ide-integration.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 MiB

BIN
docs/logo-sm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
docs/main-ui-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

View File

@@ -0,0 +1,7 @@
module.exports = {
entryPoint: 'example-project/src-client/index.js',
projectDir: 'example-project/src-client',
clientPort: 1234,
projectNameAlias: 'example-project-for-client',
debugModeEnabled: true
};

View File

@@ -0,0 +1 @@
//cc:debug#0;step 0

View File

@@ -0,0 +1 @@
//cc:debug#2;step 2

View File

@@ -0,0 +1,3 @@
//cc:debug#4;step 4
//cc:debug#1;step 1

View File

@@ -0,0 +1 @@
//cc:debug#3;step 3

View File

View File

View File

View File

@@ -0,0 +1,9 @@
#include <iostream>
using namespace std;
//cc:main function
int main()
{
cout << "Hello, World!";
return 0;
}

View File

@@ -0,0 +1,16 @@
//cc:main function
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}

View File

@@ -0,0 +1,4 @@
! cc: main function
program hello
print *, "Hello World!"
end program hello

View File

@@ -0,0 +1,7 @@
package main
import "fmt"
// cc:main function
func main() {
fmt.Println("hello world")
}

View File

@@ -0,0 +1,2 @@
-- cc:main function
putStrLn "Hello, world!"

View File

@@ -0,0 +1,9 @@
public class HelloWorld {
//cc: main function
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}

View File

@@ -0,0 +1,4 @@
//cc:main function
function greeting() {
console.log('Hello world!');
}

View File

@@ -0,0 +1,5 @@
//cc:main function
fun main(args : Array<String>) {
println("Hello, World!")
}

View File

@@ -0,0 +1,2 @@
-- hello world program
print ("Hello World!")

View File

@@ -0,0 +1,2 @@
/* cc:main function */
let hello = () => "Hello, World!";

View File

@@ -0,0 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
# cc: main function.
print "Hello, World!\n";

View File

@@ -0,0 +1,5 @@
<?php
//cc:main function
echo "Hello World!";
echo "PHP is so easy!";
?>

View File

@@ -0,0 +1,10 @@
import sys
# cc:main function
def main(argv=None):
if argv is None:
argv = sys.argv
print "Hello, world"
return

View File

@@ -0,0 +1,3 @@
# cc:main function
puts 'Hello, world!'

View File

@@ -0,0 +1,4 @@
//cc:main function
function greeting() {
console.log('Hello world!');
}

View File

@@ -10,7 +10,7 @@ import {
function authenticate(provider) {
return dispatch => {
//cc:signin#1;firebase sign in;+2
//cc:signin#1;firebase sign in;+1;call to firebase with auth provider, proceed if success response
firebaseAuth.signInWithPopup(provider)
.then(result => dispatch(signInSuccess(result)))
.catch(error => dispatch(signInError(error)));

View File

@@ -13,7 +13,7 @@ export function authReducer(state = new AuthState(), {payload, type}) {
case INIT_AUTH:
case SIGN_IN_SUCCESS:
return state.merge({
authenticated: !!payload, // cc:signin#2;toggle 'authenticated' flag
authenticated: !!payload, //cc:signin#5;toggle 'authenticated' flag
id: payload ? payload.uid : null
});

View File

@@ -1,3 +1,4 @@
//cc:firebase config;and some details
export const firebaseConfig = {
apiKey: 'AIzaSyBsVVpEDrlNPEmshLcmOuE0FxhjPn0AqMg',
authDomain: 'todo-react-redux.firebaseapp.com',

View File

@@ -1,4 +1,4 @@
import createHistory from 'history/createBrowserHistory';
export default createHistory();
export default createHistory();

View File

@@ -15,7 +15,7 @@ import App from './views/app';
const store = configureStore();
const rootElement = document.getElementById('root');
//cc:layout#0;start;provider
//cc:layout#0;start
function render(Component) {
ReactDOM.render(
<Provider store={store}>

View File

@@ -0,0 +1,22 @@
<template>
<p>{{ greeting }} World!</p>
</template>
<script>
module.exports = {
data: function () {
return {
greeting: 'Hello'
}
}
}
</script>
//cc:test vue
<style scoped>
p {
font-size: 2em;
text-align: center;
}
</style>

View File

@@ -10,7 +10,7 @@ import RequireUnauthRoute from '../components/require-unauth-route';
import SignInPage from '../pages/sign-in';
import TasksPage from '../pages/tasks';
//cc:layout#1;describe pages
//cc:layout#1;describe pages;some details long description for separare popup
const App = ({authenticated, signOut}) => (
<div>
<Header

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { Route, Redirect } from 'react-router-dom'
//cc:signin#3;enable route;+6
//cc:signin#6;enable route;details
const RequireAuthRoute = ({component: Component, authenticated, ...rest}) => (
<Route
{...rest}

View File

@@ -6,7 +6,7 @@ import Icon from '../icon';
import './task-item.css';
//cc:there is task
//cc:there is task;extra
export class TaskItem extends Component {
constructor() {
super(...arguments);

Some files were not shown because too many files have changed in this diff Show More