From 35df55cf70d8c66073ad9a501963c28c119897c2 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Sat, 13 Feb 2021 13:30:51 +0800 Subject: [PATCH] Add license header. --- web/src/App.test.js | 14 ++++++++++++++ web/src/ApplicationEditPage.js | 14 ++++++++++++++ web/src/ApplicationListPage.js | 14 ++++++++++++++ web/src/Face.js | 14 ++++++++++++++ web/src/HomePage.js | 14 ++++++++++++++ web/src/OrganizationEditPage.js | 15 ++++++++++++++- web/src/OrganizationListPage.js | 14 ++++++++++++++ web/src/ProviderEditPage.js | 15 ++++++++++++++- web/src/ProviderListPage.js | 14 ++++++++++++++ web/src/UserEditPage.js | 14 ++++++++++++++ web/src/UserListPage.js | 14 ++++++++++++++ web/src/account/AccountPage.js | 14 ++++++++++++++ web/src/account/LoginPage.js | 14 ++++++++++++++ web/src/backend/ApplicationBackend.js | 14 ++++++++++++++ web/src/backend/OrganizationBackend.js | 14 ++++++++++++++ web/src/backend/ProviderBackend.js | 14 ++++++++++++++ web/src/backend/UserBackend.js | 14 ++++++++++++++ web/src/serviceWorker.js | 14 ++++++++++++++ web/src/setupTests.js | 14 ++++++++++++++ 19 files changed, 266 insertions(+), 2 deletions(-) diff --git a/web/src/App.test.js b/web/src/App.test.js index 4db7ebc2..8bd2d65e 100644 --- a/web/src/App.test.js +++ b/web/src/App.test.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from 'react'; import { render } from '@testing-library/react'; import App from './App'; diff --git a/web/src/ApplicationEditPage.js b/web/src/ApplicationEditPage.js index 3296ffd0..f4f7e2a4 100644 --- a/web/src/ApplicationEditPage.js +++ b/web/src/ApplicationEditPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Button, Card, Col, Input, Row, Select} from 'antd'; import {LinkOutlined} from "@ant-design/icons"; diff --git a/web/src/ApplicationListPage.js b/web/src/ApplicationListPage.js index 731357d5..f57e6075 100644 --- a/web/src/ApplicationListPage.js +++ b/web/src/ApplicationListPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Link} from "react-router-dom"; import {Button, Col, Popconfirm, Row, Table} from 'antd'; diff --git a/web/src/Face.js b/web/src/Face.js index 33bebef3..3445dfbd 100644 --- a/web/src/Face.js +++ b/web/src/Face.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Button, Checkbox, Col, Form, Input, Row} from "antd"; import {LockOutlined, UserOutlined} from "@ant-design/icons"; diff --git a/web/src/HomePage.js b/web/src/HomePage.js index 4bbbb6b1..e8ef5675 100644 --- a/web/src/HomePage.js +++ b/web/src/HomePage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; class HomePage extends React.Component { diff --git a/web/src/OrganizationEditPage.js b/web/src/OrganizationEditPage.js index 0ffd5bcc..7586b0c1 100644 --- a/web/src/OrganizationEditPage.js +++ b/web/src/OrganizationEditPage.js @@ -1,6 +1,19 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Button, Card, Col, Input, Row} from 'antd'; -import {LinkOutlined} from "@ant-design/icons"; import * as OrganizationBackend from "./backend/OrganizationBackend"; import * as Setting from "./Setting"; diff --git a/web/src/OrganizationListPage.js b/web/src/OrganizationListPage.js index d5b11dc4..854d3edf 100644 --- a/web/src/OrganizationListPage.js +++ b/web/src/OrganizationListPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Link} from "react-router-dom"; import {Button, Col, Popconfirm, Row, Table} from 'antd'; diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index a8f01c9e..28a30203 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -1,6 +1,19 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Button, Card, Col, Input, Row} from 'antd'; -import {LinkOutlined} from "@ant-design/icons"; import * as ProviderBackend from "./backend/ProviderBackend"; import * as Setting from "./Setting"; diff --git a/web/src/ProviderListPage.js b/web/src/ProviderListPage.js index aa27833b..f1661aef 100644 --- a/web/src/ProviderListPage.js +++ b/web/src/ProviderListPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Link} from "react-router-dom"; import {Button, Col, Popconfirm, Row, Table} from 'antd'; diff --git a/web/src/UserEditPage.js b/web/src/UserEditPage.js index e88697a1..1e8dddd9 100644 --- a/web/src/UserEditPage.js +++ b/web/src/UserEditPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Button, Card, Col, Input, Row, Select} from 'antd'; import * as UserBackend from "./backend/UserBackend"; diff --git a/web/src/UserListPage.js b/web/src/UserListPage.js index 98cac0b9..7a943a4a 100644 --- a/web/src/UserListPage.js +++ b/web/src/UserListPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Link} from "react-router-dom"; import {Button, Col, Popconfirm, Row, Table} from 'antd'; diff --git a/web/src/account/AccountPage.js b/web/src/account/AccountPage.js index f7f1a201..b4515f43 100644 --- a/web/src/account/AccountPage.js +++ b/web/src/account/AccountPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {Col, Descriptions, Row} from 'antd'; import * as AccountBackend from "../backend/AccountBackend"; diff --git a/web/src/account/LoginPage.js b/web/src/account/LoginPage.js index 0daac824..52015fe8 100644 --- a/web/src/account/LoginPage.js +++ b/web/src/account/LoginPage.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from 'react'; import Face from "../Face"; diff --git a/web/src/backend/ApplicationBackend.js b/web/src/backend/ApplicationBackend.js index 40922081..68f5dc54 100644 --- a/web/src/backend/ApplicationBackend.js +++ b/web/src/backend/ApplicationBackend.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as Setting from "../Setting"; export function getApplications(owner) { diff --git a/web/src/backend/OrganizationBackend.js b/web/src/backend/OrganizationBackend.js index fe3d69eb..68e90b41 100644 --- a/web/src/backend/OrganizationBackend.js +++ b/web/src/backend/OrganizationBackend.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as Setting from "../Setting"; export function getOrganizations(owner) { diff --git a/web/src/backend/ProviderBackend.js b/web/src/backend/ProviderBackend.js index 50967ab4..9a055163 100644 --- a/web/src/backend/ProviderBackend.js +++ b/web/src/backend/ProviderBackend.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as Setting from "../Setting"; export function getProviders(owner) { diff --git a/web/src/backend/UserBackend.js b/web/src/backend/UserBackend.js index 0f80aecd..18fff5d9 100644 --- a/web/src/backend/UserBackend.js +++ b/web/src/backend/UserBackend.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import * as Setting from "../Setting"; export function getGlobalUsers() { diff --git a/web/src/serviceWorker.js b/web/src/serviceWorker.js index b04b771a..cf5b1989 100644 --- a/web/src/serviceWorker.js +++ b/web/src/serviceWorker.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // This optional code is used to register a service worker. // register() is not called by default. diff --git a/web/src/setupTests.js b/web/src/setupTests.js index 74b1a275..5a7204b3 100644 --- a/web/src/setupTests.js +++ b/web/src/setupTests.js @@ -1,3 +1,17 @@ +// Copyright 2021 The casbin Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i)