This repository was archived by the owner on Feb 5, 2024. It is now read-only.
File tree 8 files changed +82
-6
lines changed
8 files changed +82
-6
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ " es2015" ,
4
+ " react"
5
+ ]
6
+ }
Original file line number Diff line number Diff line change 9
9
{% block title %}{{ config.crowi['app:title'] }}{% endblock %}
10
10
</ a >
11
11
{% if searchConfigured() %}
12
- < form class ="navbar-form navbar-left search-top " role ="search ">
12
+ < div class ="navbar-form navbar-left search-top " role ="search " id =" search-top ">
13
13
< div class ="form-group input-group search-top-input-group ">
14
14
< input type ="text " id ="search-top-input " class ="search-top-input form-control " placeholder ="Search ... ">
15
15
< span class ="input-group-btn ">
16
16
< button class ="btn btn-default " type ="button "> < i class ="search-top-icon fa fa-search "> </ i > </ button >
17
17
</ span >
18
18
</ div >
19
- </ form >
19
+ </ div >
20
20
< div class ="search-suggest " id ="search-suggest ">
21
21
</ div >
22
22
{% endif %}
Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ <h3>-</h3>
108
108
</ body >
109
109
{% endblock %}
110
110
111
+ < script src ="/js/app.js "> </ script >
111
112
</ html >
112
113
113
-
114
-
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ <h1 class="title">
38
38
{% block content_main_before %}
39
39
{% endblock %}
40
40
41
+ < div id ="xxx "> </ div >
42
+
41
43
< div class ="page-list content-main {% if req.body.pageForm %}on-edit{% endif %} "
42
44
id ="content-main "
43
45
data-path ="{{ path }} "
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"async" : " ~1.5.0" ,
32
32
"aws-sdk" : " ~2.2.26" ,
33
+ "axios" : " ~0.9.1" ,
34
+ "babel-core" : " ~6.7.6" ,
35
+ "babel-loader" : " ~6.2.4" ,
36
+ "babel-preset-es2015" : " ~6.6.0" ,
37
+ "babel-preset-react" : " ~6.5.0" ,
33
38
"basic-auth-connect" : " ~1.0.0" ,
34
39
"bluebird" : " ~3.0.5" ,
35
40
"body-parser" : " ~1.14.1" ,
69
74
"kerberos" : " 0.0.17" ,
70
75
"marked" : " ~0.3.5" ,
71
76
"method-override" : " ~2.3.1" ,
72
- "mkdirp" : " ^ 0.5.1" ,
77
+ "mkdirp" : " ~ 0.5.1" ,
73
78
"moment" : " ~2.13.0" ,
74
79
"mongoose" : " 4.2.5" ,
75
80
"mongoose-paginate" : " 4.2.0" ,
76
81
"morgan" : " ~1.5.1" ,
77
82
"multer" : " ~0.1.8" ,
78
83
"nodemailer" : " ~1.2.2" ,
79
84
"nodemailer-ses-transport" : " ~1.1.0" ,
85
+ "react" : " ~15.0.1" ,
86
+ "react-dom" : " ~15.0.1" ,
80
87
"redis" : " ~0.12.1" ,
81
88
"reveal.js" : " ~3.2.0" ,
82
89
"socket.io" : " ~1.3.0" ,
83
90
"socket.io-client" : " ~1.3.0" ,
84
91
"sprintf" : " ~0.1.5" ,
85
92
"swig" : " ~1.4.0" ,
86
93
"time" : " ~0.11.0" ,
87
- "vinyl-source-stream" : " ~1.1.0"
94
+ "vinyl-source-stream" : " ~1.1.0" ,
95
+ "webpack" : " ~1.13.0"
88
96
},
89
97
"devDependencies" : {
90
98
"chai" : " ~1.10.0" ,
98
106
"start" : " node app.js" ,
99
107
"test" : " gulp test" ,
100
108
"build" : " gulp" ,
109
+ "jsbuild" : " webpack" ,
101
110
"postinstall" : " gulp"
102
111
},
103
112
"env" : {
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import ReactDOM from 'react-dom' ;
3
+
4
+ import HeaderSearchBox from './components/Header/SearchBox' ;
5
+
6
+ class Crowi extends React . Component {
7
+ constructor ( props ) {
8
+ super ( props ) ;
9
+ //this.state = {count: props.initialCount};
10
+ //this.tick = this.tick.bind(this);
11
+ }
12
+
13
+ render ( ) {
14
+ return (
15
+ < h1 > Hello</ h1 >
16
+ ) ;
17
+ }
18
+ }
19
+
20
+ ReactDOM . render ( < Hello /> , document . getElementById ( 'xxx' ) ) ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ export class SearchBox extends React . Component {
4
+ }
Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' ) ;
2
+ var webpack = require ( 'webpack' ) ;
3
+
4
+ module . exports = {
5
+ entry : {
6
+ app : './resource/js/app.js' ,
7
+ } ,
8
+ output : {
9
+ path : path . join ( __dirname + "/public/js" ) ,
10
+ filename : "[name].js"
11
+ } ,
12
+ resolve : {
13
+ modulesDirectories : [
14
+ './node_modules' ,
15
+ ] ,
16
+ } ,
17
+ module : {
18
+ loaders : [
19
+ {
20
+ test : / .j s x ? $ / ,
21
+ loader : 'babel-loader' ,
22
+ exclude : / n o d e _ m o d u l e s / ,
23
+ query : {
24
+ presets : [ 'es2015' , 'react' ]
25
+ }
26
+ }
27
+ ]
28
+ } ,
29
+ plugins : [
30
+ new webpack . ProvidePlugin ( {
31
+ jQuery : "jquery" ,
32
+ $ : "jquery" ,
33
+ jquery : "jquery"
34
+ } )
35
+ ]
36
+ } ;
You can’t perform that action at this time.
0 commit comments