Quellcode durchsuchen

Merge branch 'dev' of craft-in-america/vue-wp into master

tags/1.0.3
Alej vor 2 Jahren
Ursprung
Commit
1676a203ac

+ 7
- 7
README.md Datei anzeigen

@@ -66,7 +66,7 @@ Make sure `IS_DEV` is set to `true`. This is important.
66 66
 
67 67
 Currently the API uses `localhost`. This should be changed in production. 
68 68
 
69
-Set your directory owner to `www-data` with `docker exec -it craft-vue chown -R www-data:www-data ./wp-content` so your Wordpress container can write files
69
+Set your directory owner to `www-data` with `docker exec -it craft-wp chown -R www-data:www-data ./wp-content` so your Wordpress container can write files
70 70
 
71 71
 Lastly, run `npm run dev` to start the development server. 
72 72
 
@@ -77,15 +77,15 @@ If successful, it will tell you that it is running on `http://localhost:8081`
77 77
 Setup a staging server and initialize a bare git repo in the `/opt` directory
78 78
 
79 79
 ```
80
-git init --bare /opt/staging/craft-vue.git
80
+git init --bare /opt/staging/vue-wp.git
81 81
 ```
82 82
 
83
-Copy over the `post-receive` script from `./deployment` to `/opt/staging/craft-vue.git/hooks` and make it executable with the command `chmod ug+x /opt/staging/craft-vue.git/hooks/post-receive`
83
+Copy over the `post-receive` script from `./deployment` to `/opt/staging/vue-wp.git/hooks` and make it executable with the command `chmod ug+x /opt/staging/vue-wp.git/hooks/post-receive`
84 84
 
85 85
 On your development machine, add the staging server as a remote...
86 86
 
87 87
 ```
88
-git remote add staging <user>@<server_ip>:/opt/staging/craft-vue.git 
88
+git remote add staging <user>@<server_ip>:/opt/staging/vue-wp.git 
89 89
 ```
90 90
 
91 91
 When you are ready to get your app to the new server, run `git push && git push staging` and things will get pulled and built on the staging server. Sweet!
@@ -100,9 +100,9 @@ Included is a drone config, and some recommended steps to build.
100 100
 
101 101
 You also need to setup a `post-receive` hook on the host server.
102 102
 
103
-* On your *development* machine, add the target host as a remote `git remote add </opt/staging/craf-vue.git> staging master`
104
-* Login to the *remote* machine and setup a bare git repo on `git init --bare </opt/staging/craf-vue.git>`
105
-* Copy the `post-receive` hook file into the `</opt/staging/craf-vue.git/hooks/>` directory
103
+* On your *development* machine, add the target host as a remote `git remote add </opt/staging/vue-wp.git> staging master`
104
+* Login to the *remote* machine and setup a bare git repo on `git init --bare </opt/staging/vue-wp.git>`
105
+* Copy the `post-receive` hook file into the `</opt/staging/vue-wp.git/hooks/>` directory
106 106
 
107 107
 :question_mark: Misc
108 108
 --------------------

+ 0
- 1
plugins/cia-post-types/cia-post-types.php Datei anzeigen

@@ -93,4 +93,3 @@ add_action( 'cmb2_admin_init', 'cmb2_episode_credits_metaboxes' );
93 93
 add_action( 'cmb2_admin_init', 'cmb2_event_date_metaboxes' );
94 94
 add_action( 'cmb2_admin_init', 'cmb2_exhibition_date_metaboxes' );
95 95
 
96
-/* Plugin Logic -- END * /

+ 104
- 114
vue-theme/src/components/footer.vue Datei anzeigen

@@ -3,150 +3,140 @@
3 3
     footer.main.w-max.f-row.between
4 4
         ul.f-col.t-cntr
5 5
             //- address contact   
6
-            li
6
+            li 
7 7
                 h4 Craft in America
8
-                    ul
9
-                        h5
10
-                            li 8415 W. Third St.
11
-                            li Los Angeles, CA 90048
12
-                            li Tues–Sat, 12PM–6PM
13
-                            li (310) 659-9022 office
14
-                            li (323) 951-0610 center
15
-                            li
16
-                                router-link(to="mailto:info@craftinamerica.org") info@craftinamerica.org
17
-            //- social media   
8
+            li 8415 W. Third St.
9
+            li Los Angeles, CA 90048
10
+            li Tues–Sat, 12PM–6PM
11
+            li (310) 659-9022 office
12
+            li (323) 951-0610 center
18 13
             li
19
-                h4 Connect with Us
20
-                <br>
14
+                router-link(to="mailto:info@craftinamerica.org") info@craftinamerica.org 
15
+            <br>
16
+            //- social media   
17
+            li 
18
+                h4 Connect with Us 
21 19
                 ul.f-row
22 20
                     li
23
-                        a(href="http://www.youtube.com/user/craftinamerica")
21
+                        a(href="http://www.youtube.com/user/craftinamerica" aria-label="Youtube Link")
24 22
                             svg(aria-hidden="true" focusable="false" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512")
25 23
                                 path(fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z")
26 24
                     li 
27
-                        a(href="https://www.facebook.com/CraftinAmerica")
28
-                            //- img(src="../assets/facebook-brands.svg")
29
-                            //- replace with respective icon 
25
+                        a(href="https://www.facebook.com/CraftinAmerica" aria-label="FaceBook Link")
30 26
                             svg(aria-hidden="true" focusable="false" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512")
31 27
                                 path(fill="currentColor" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z")
32 28
                     li 
33
-                        a(href="http://www.instagram.com/craftinamerica")
29
+                        a(href="http://www.instagram.com/craftinamerica" aria-label="Instagram Link") 
34 30
                             svg(aria-hidden="true" focusable="false" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 495")
35 31
                                 path(fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z")
36 32
                     li 
37
-                        a(href="https://twitter.com/CraftinAmerica")
33
+                        a(href="https://twitter.com/CraftinAmerica" aria-label="Twitter link") 
38 34
                             svg(aria-hidden="true" focusable="false" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512")
39 35
                                 path(fill="currentColor" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z")
40 36
                     li 
41
-                        a(href="https://www.tiktok.com/@craft_in_america")                                
37
+                        a(href="https://www.tiktok.com/@craft_in_america" aria-label="TikTok link") 
42 38
                             svg(aria-hidden="true" focusable="false" data-icon="tiktok" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 -50 448 600")
43 39
                                 path(fill="currentColor" d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z")
44
-                li
45
-                    <br>
46
-                        a(href="https://visitor.r20.constantcontact.com/d.jsp?llr=fyb4y9cab&p=oi&m=fyb4y9cab&sit=olvymhdeb&f=ee3616e1-10de-4a59-b451-1a882111b1f5", target="_blank") Join our email list
40
+            //- mailing list   
41
+            li
42
+                <br>
43
+                    a(href="https://visitor.r20.constantcontact.com/d.jsp?llr=fyb4y9cab&p=oi&m=fyb4y9cab&sit=olvymhdeb&f=ee3616e1-10de-4a59-b451-1a882111b1f5" aria-label="Mailing List link" target="_blank") Join our email list 
47 44
                             
48 45
         //- menu links
49 46
         ul.f-col
50 47
             li
51
-                h5 
52
-                    router-link(to="/episode") PBS Series
53
-                    ul.f-col.start 
54
-                        li 
55
-                            router-link(to="/episode") &nbsp; Episodes
56
-                        li 
57
-                            router-link(to="/short") &nbsp; Shorts
58
-                        li 
59
-                            router-link(to="/technique") &nbsp; Techniques
48
+                router-link(to="/episode") PBS Series
49
+                ul.f-col.start 
50
+                    li 
51
+                        router-link(to="/episode") &nbsp; Episodes
52
+                    li 
53
+                        router-link(to="/short") &nbsp; Shorts
54
+                    li 
55
+                        router-link(to="/technique") &nbsp; Techniques
60 56
             li 
61
-                h5
62
-                    router-link(to="/artist") Artists
63
-                    ul.f-col
64
-                        li
65
-                            router-link(to="/artist/sorted/by-alpha") &nbsp; A-Z
66
-                        li
67
-                            router-link(to="/artist/sorted/by-material") &nbsp; by Material
57
+                router-link(to="/artist") Artists
58
+                ul.f-col
59
+                    li
60
+                        router-link(to="/artist/sorted/by-alpha") &nbsp; A-Z
61
+                    li
62
+                        router-link(to="/artist/sorted/by-material") &nbsp; by Material
68 63
             li
69
-                h5 
70
-                    router-link(to="/exhibition") Exhibitions
71
-                    ul.f-col
72
-                        li
73
-                            router-link(to="/exhibition/sorted/by-current-and-upcoming") &nbsp; Current/Upcoming
74
-                        li
75
-                            router-link(to="/exhibition/sorted/by-past") &nbsp; Past
64
+                router-link(to="/exhibition") Exhibitions
65
+                ul.f-col
66
+                    li
67
+                        router-link(to="/exhibition/sorted/by-current-and-upcoming") &nbsp; Current/Upcoming
68
+                    li
69
+                        router-link(to="/exhibition/sorted/by-past") &nbsp; Past
76 70
             li
77
-                h5
78
-                    router-link(to="/page/center") Center 
79
-                    ul.f-col
80
-                        li
81
-                            router-link(to="/page/center") &nbsp; Info
82
-                        li 
83
-                            router-link(to="/event/sorted/by-current-and-upcoming") &nbsp; Events 
84
-                        li
85
-                            //- router-link(to="/event?type=talks") &nbsp; Talks &amp; Interviews
86
-                            router-link(to="/page/recorded-talks-and-interviews") &nbsp; Recorded Talks + Interviews
87
-                        li 
88
-                            router-link(to="/page/library") &nbsp; Library 
71
+                router-link(to="/page/center") Center 
72
+                ul.f-col
73
+                    li
74
+                        router-link(to="/page/center") &nbsp; Info
75
+                    li 
76
+                        router-link(to="/event/sorted/by-current-and-upcoming") &nbsp; Events 
77
+                    li
78
+                        //- router-link(to="/event?type=talks") &nbsp; Talks &amp; Interviews
79
+                        router-link(to="/page/recorded-talks-and-interviews") &nbsp; Recorded Talks + Interviews
80
+                    li 
81
+                        router-link(to="/page/library") &nbsp; Library 
89 82
             li
90
-                h5
91
-                    router-link(to="/guide") Education 
92
-                    ul.f-col
93
-                        li
94
-                            router-link(to="/guide") &nbsp; Guides 
95
-                        li
96
-                            router-link(to="/page/video-resources-for-educators") &nbsp; Video Resources 
97
-                        li
98
-                            router-link(to="/page/craft-in-schools") &nbsp; Craft in Schools  
83
+                router-link(to="/guide") Education 
84
+                ul.f-col
85
+                    li
86
+                        router-link(to="/guide") &nbsp; Guides 
87
+                    li
88
+                        router-link(to="/page/video-resources-for-educators") &nbsp; Video Resources 
89
+                    li
90
+                        router-link(to="/page/craft-in-schools") &nbsp; Craft in Schools  
99 91
             li
100
-                h5    
101
-                    router-link(to="/page/artists-resources") Resources
102
-                    ul.f-col  
103
-                        li
104
-                            router-link(to="/publication") &nbsp; Publications 
105
-                        li
106
-                            router-link(to="/object") &nbsp; Explore Craft Objects
107
-                        li
108
-                            router-link(to="/page/artists-resources") &nbsp; Opportunities
109
-                        li
110
-                            router-link(to="/artist/sorted/by-type") &nbsp; Organizations and Institutions 
111
-                        li
112
-                            router-link(to="/page/craft-resources-map") &nbsp; Craft Resources Map 
113
-                        li
114
-                            router-link(to="/page/community-craft-calendar") &nbsp; Community Craft Calendar 
92
+                router-link(to="/page/artists-resources") Resources
93
+                ul.f-col  
94
+                    li
95
+                        router-link(to="/publication") &nbsp; Publications 
96
+                    li
97
+                        router-link(to="/object") &nbsp; Explore Craft Objects
98
+                    li
99
+                        router-link(to="/page/artists-resources") &nbsp; Opportunities
100
+                    li
101
+                        router-link(to="/artist/sorted/by-type") &nbsp; Organizations and Institutions 
102
+                    li
103
+                        router-link(to="/page/craft-resources-map") &nbsp; Craft Resources Map 
104
+                    li
105
+                        router-link(to="/page/community-craft-calendar") &nbsp; Community Craft Calendar 
106
+                    li 
107
+                        a(href="https://www.craftvideodictionary.org" aria-label="Craft Video Dictionary Website link" target="_blank") &nbsp; Craft Video Dictionary                             
115 108
             li
116
-                h5    
117
-                    router-link(to="/page/donate") Support
118
-                    ul.f-col  
119
-                        li
120
-                            router-link(to="/page/donate") &nbsp; Donate
121
-                        li
122
-                            router-link(to="/page/shop") &nbsp; Shop 
109
+                router-link(to="/page/donate") Support
110
+                ul.f-col  
111
+                    li
112
+                        router-link(to="/page/donate") &nbsp; Donate
113
+                    li
114
+                        router-link(to="/page/shop") &nbsp; Shop 
123 115
             li
124
-                h5
125
-                    router-link(to="/blog") News 
126
-                    ul.f-col
127
-                        li
128
-                            router-link(to="/blog") &nbsp; Blog Posts 
129
-                        li 
130
-                            router-link(to="/posts?type=articles") &nbsp; In the News 
131
-                        li 
132
-                            router-link(to="/posts?type=releases") &nbsp; Press Releases 
133
-                        li 
134
-                            router-link(to="/page/community-craft-calendar") &nbsp; Community Craft Calendar  
116
+                router-link(to="/blog") News 
117
+                ul.f-col
118
+                    li
119
+                        router-link(to="/blog") &nbsp; Blog Posts 
120
+                    li 
121
+                        router-link(to="/posts?type=articles") &nbsp; In the News 
122
+                    li 
123
+                        router-link(to="/posts?type=releases") &nbsp; Press Releases 
124
+                    li 
125
+                        router-link(to="/page/community-craft-calendar") &nbsp; Community Craft Calendar  
135 126
             li
136
-                h5
137
-                    router-link(to="/page/about") About 
138
-                    ul.f-col
139
-                        li
140
-                            router-link(to="/page/about") &nbsp; Craft in America 
141
-                        li 
142
-                            router-link(to="/page/board") &nbsp; Board of Directors 
143
-                        li 
144
-                            router-link(to="/page/staff") &nbsp; Staff 
145
-                        li 
146
-                            router-link(to="/page/contact") &nbsp; Contact   
127
+                router-link(to="/page/about") About 
128
+                ul.f-col
129
+                    li
130
+                        router-link(to="/page/about") &nbsp; Craft in America 
131
+                    li 
132
+                        router-link(to="/page/board") &nbsp; Board of Directors 
133
+                    li 
134
+                        router-link(to="/page/staff") &nbsp; Staff 
135
+                    li 
136
+                        router-link(to="/page/contact") &nbsp; Contact   
147 137
 
148
-    .sub-footer.f-col.start
149
-        h6 Craft in America &copy; 2010 &ndash; {{ today }} 
138
+    .sub-footer.f-col.start.t-cntr
139
+        h6 CRAFT IN AMERICA, Inc. is a Los Angeles-based 501(c)(3) non-profit organization  &nbsp;  &nbsp; &copy; 2010 &ndash; {{ today }} 
150 140
         //- actually the bottom of the page
151 141
 
152 142
 </template>
@@ -178,7 +168,7 @@ export default {
178 168
         // ALL <ul> tags
179 169
         ul
180 170
             > li
181
-                width: 100%
171
+                width: 100% 
182 172
         // OUTER <ul> tags
183 173
         > ul
184 174
             padding: $ms-0

+ 8
- 12
vue-theme/src/components/navigation/navigation.vue Datei anzeigen

@@ -5,17 +5,9 @@ nav.main.w-max
5 5
         ul.f-row.w-max
6 6
             li.f-row.start
7 7
                 router-link(to="/")
8
-                    img(src="../../star.svg")
8
+                    img(aria-label="home button logo" src="../../star.svg")
9 9
                 router-link(to="/")
10 10
                     h1.t-serif craft in america
11
-            //- li.f-grow
12
-            //- li(v-for="item in menuItems")
13
-            //-     router-link(v-if="['event','exhibition'].includes(item)" :to="`/${item}/sorted/${sortTypes.currentAndUpcoming}`")
14
-            //-         h5.t-up {{ item }}
15
-            //-     router-link(v-else-if="['artist'].includes(item)" :to="`/${item}/sorted/${sortTypes.alpha}`")
16
-            //-         h5.t-up {{ item }}
17
-            //-     router-link(v-else :to="`/${item}`")
18
-            //-         h5.t-up {{ item }}
19 11
 
20 12
             //- hardcoded menu
21 13
             li.f-grow
@@ -29,14 +21,14 @@ nav.main.w-max
29 21
                     li
30 22
                         router-link(to="/technique") Techniques
31 23
             li.f-grow
32
-                router-link(to="/artist/sorted/by-material") Artists
24
+                router-link(to="/artist/") Artists
33 25
                 ul.submenu
34 26
                     li
35 27
                         router-link(to="/artist/sorted/by-alpha") A - Z
36 28
                     li
37 29
                         router-link(to="/artist/sorted/by-material") By Material
38 30
             li.f-grow 
39
-                router-link(to="/exhibition/sorted/by-current-and-upcoming") Exhibitions
31
+                router-link(to="/exhibition/") Exhibitions
40 32
                 ul.submenu 
41 33
                     li
42 34
                         router-link(to="/exhibition/sorted/by-current-and-upcoming") Current/Upcoming
@@ -77,6 +69,10 @@ nav.main.w-max
77 69
                         router-link(to="/page/craft-resources-map") Craft Resources Map 
78 70
                     li
79 71
                         router-link(to="/page/community-craft-calendar") Community Craft Calendar 
72
+                    li 
73
+                        a(href="https://www.craftvideodictionary.org" target="_blank") Craft Video Dictionary Website
74
+
75
+             
80 76
             li.f-grow    
81 77
                 router-link(to="/page/donate") Support
82 78
                 ul.submenu 
@@ -105,7 +101,7 @@ nav.main.w-max
105 101
     .mobile-menu
106 102
         .f-row.start
107 103
             router-link(to="/")
108
-                img(src="../../star.svg")
104
+                img(aria-label="home button logo" src="../../star.svg" )
109 105
             router-link(to="/")
110 106
                 h1.t-serif.t-up craft in america
111 107
         

Laden…
Abbrechen
Speichern