Skip to content

Commit 63d154f

Browse files
Merge branch 'main' into replace-Git-Proxy-with-GitProxy
2 parents c9a2cc8 + ee4eecd commit 63d154f

File tree

6 files changed

+2122
-2065
lines changed

6 files changed

+2122
-2065
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<br />
1515
<a href="https://git-proxy.finos.org">Docs</a>
1616
·
17+
<a href="https://www.finos.org/hubfs/Projects%20%2B%20SIGs/Open%20Source%20Readiness%20OSR/OSR%20Meeting_%20GitProxy%20Jamie%20Slome%20Citi%20Presentation.mp4#t=496">Demo</a>
18+
·
1719
<a href="https://github.com/finos/git-proxy/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=">Report a bug</a>
1820
·
1921
<a href="https://github.com/finos/git-proxy/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=">Suggest a new feature</a>
@@ -32,6 +34,7 @@
3234
[![Slack](https://img.shields.io/badge/_-Chat_on_Slack-000000.svg?logo=slack&colorA=00C586)](https://app.slack.com/client/T01E7QRQH97/C06LXNW0W76)
3335
[![Stars](https://img.shields.io/github/stars/finos/git-proxy?colorA=00C586&colorB=000000)](https://github.com/finos/git-proxy/stargazers)
3436
[![Forks](https://img.shields.io/github/forks/finos/git-proxy?colorA=00C586&colorB=000000)](https://github.com/finos/git-proxy/forks)
37+
3538
</div>
3639
<br />
3740

package-lock.json

Lines changed: 20 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@finos/git-proxy",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Deploy custom push protections and policies on top of Git.",
55
"scripts": {
66
"cli": "node ./packages/git-proxy-cli/index.js",

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"eslint-plugin-react": "^7.23.2",
1919
"react": "^18.0.0",
2020
"react-dom": "^18.0.0",
21+
"react-player": "^2.16.0",
2122
"react-slick": "^0.30.2",
2223
"react-social-media-embed": "^2.5.13",
2324
"slick-carousel": "^1.8.1"

website/src/pages/index.js

Lines changed: 90 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Layout from '@theme/Layout';
33
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
44
import Avatar from '../components/avatar';
55
import Testimonials from './testimonials';
6+
import ReactPlayer from 'react-player';
67

78
/**
89
* Home page component
@@ -11,6 +12,9 @@ import Testimonials from './testimonials';
1112
function Home() {
1213
const context = useDocusaurusContext();
1314
const { siteConfig = {} } = context;
15+
16+
const [showDemo, setShowDemo] = React.useState(false);
17+
1418
return (
1519
<Layout title={`${siteConfig.title}`} description={`${siteConfig.tagline}`}>
1620
<div className='hero hero--secondary'>
@@ -24,6 +28,12 @@ function Home() {
2428
>
2529
Read our Docs
2630
</a>
31+
<button
32+
onClick={() => setShowDemo(!showDemo)}
33+
className='button button--outline button--secondary button--lg margin-left--sm'
34+
>
35+
{showDemo ? 'Hide' : 'Watch'} the demo &nbsp;🎬
36+
</button>
2737
<a
2838
className='button button--outline button--secondary button--lg margin-left--sm'
2939
href='/docs/category/quickstart'
@@ -40,71 +50,86 @@ function Home() {
4050
<div className='btn yellow'></div>
4151
<div className='btn green'></div>
4252
</header>
43-
<section className='terminal'>
44-
<div className='history'>$ git push</div>
45-
<br />
46-
<span className='prompt'>
47-
You have configured the following push protections and policies:
48-
</span>
49-
<br />
50-
<br />
51-
<div className='prompt margin-left--lg'>
52-
<svg
53-
xmlns='http://www.w3.org/2000/svg'
54-
height='0.9em'
55-
viewBox='0 0 640 512'
56-
fill='green'
57-
>
58-
<path d='M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z' />
59-
</svg>{' '}
60-
Apache-2.0, MIT license(s) only
61-
</div>
62-
<div className='prompt margin-left--lg margin-top--md'>
63-
<svg
64-
xmlns='http://www.w3.org/2000/svg'
65-
height='0.9em'
66-
viewBox='0 0 512 512'
67-
fill='orange'
68-
>
69-
<path d='M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z' />
70-
</svg>{' '}
71-
No secrets detected
72-
</div>
73-
<div className='prompt margin-left--lg margin-top--md'>
74-
<svg
75-
xmlns='http://www.w3.org/2000/svg'
76-
height='0.9em'
77-
viewBox='0 0 448 512'
78-
fill='gray'
79-
>
80-
<path d='M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z' />
81-
</svg>{' '}
82-
No data files found (.csv, .txt, .log)
83-
</div>
84-
<div className='prompt margin-left--lg margin-top--md'>
85-
<svg
86-
xmlns='http://www.w3.org/2000/svg'
87-
height='0.9em'
88-
viewBox='0 0 512 512'
89-
fill='white'
90-
>
91-
<path d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z' />
92-
</svg>{' '}
93-
<span style={{ color: '#FF033E' }}>Author e-mail address does not match domain</span>
94-
</div>
95-
<div className='prompt margin-top--lg'>
96-
<svg
97-
xmlns='http://www.w3.org/2000/svg'
98-
height='0.8em'
99-
viewBox='0 0 512 512'
100-
fill='red'
101-
>
102-
<path d='M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z' />
103-
</svg>{' '}
104-
Your push has been blocked...
105-
<span className='typed-cursor'>&#9608;</span>
106-
</div>
107-
</section>
53+
{showDemo ? (
54+
<section style={{ background: 'black' }}>
55+
<ReactPlayer
56+
url='https://www.finos.org/hubfs/Projects%20%2B%20SIGs/Open%20Source%20Readiness%20OSR/OSR%20Meeting_%20GitProxy%20Jamie%20Slome%20Citi%20Presentation.mp4#t=496'
57+
controls={true}
58+
width='100%'
59+
pip={true}
60+
stopOnUnmount={false}
61+
playing={true}
62+
/>
63+
</section>
64+
) : (
65+
<section className='terminal'>
66+
<div className='history'>$ git push</div>
67+
<br />
68+
<span className='prompt'>
69+
You have configured the following push protections and policies:
70+
</span>
71+
<br />
72+
<br />
73+
<div className='prompt margin-left--lg'>
74+
<svg
75+
xmlns='http://www.w3.org/2000/svg'
76+
height='0.9em'
77+
viewBox='0 0 640 512'
78+
fill='green'
79+
>
80+
<path d='M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z' />
81+
</svg>{' '}
82+
Apache-2.0, MIT license(s) only
83+
</div>
84+
<div className='prompt margin-left--lg margin-top--md'>
85+
<svg
86+
xmlns='http://www.w3.org/2000/svg'
87+
height='0.9em'
88+
viewBox='0 0 512 512'
89+
fill='orange'
90+
>
91+
<path d='M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z' />
92+
</svg>{' '}
93+
No secrets detected
94+
</div>
95+
<div className='prompt margin-left--lg margin-top--md'>
96+
<svg
97+
xmlns='http://www.w3.org/2000/svg'
98+
height='0.9em'
99+
viewBox='0 0 448 512'
100+
fill='gray'
101+
>
102+
<path d='M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z' />
103+
</svg>{' '}
104+
No data files found (.csv, .txt, .log)
105+
</div>
106+
<div className='prompt margin-left--lg margin-top--md'>
107+
<svg
108+
xmlns='http://www.w3.org/2000/svg'
109+
height='0.9em'
110+
viewBox='0 0 512 512'
111+
fill='white'
112+
>
113+
<path d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z' />
114+
</svg>{' '}
115+
<span style={{ color: '#FF033E' }}>
116+
Author e-mail address does not match domain
117+
</span>
118+
</div>
119+
<div className='prompt margin-top--lg'>
120+
<svg
121+
xmlns='http://www.w3.org/2000/svg'
122+
height='0.8em'
123+
viewBox='0 0 512 512'
124+
fill='red'
125+
>
126+
<path d='M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z' />
127+
</svg>{' '}
128+
Your push has been blocked...
129+
<span className='typed-cursor'>&#9608;</span>
130+
</div>
131+
</section>
132+
)}
108133
</div>
109134
</div>
110135
<div className='container text--center margin-top--xl'>

0 commit comments

Comments
 (0)