Skip to content

Commit

Permalink
Add npmrc, third party notices, copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
eringram committed Dec 18, 2024
1 parent 8f5a404 commit 93da124
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
pull_request:

jobs:
build_cesium_sample:
cesium_sample:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:
- run: npm run lint
working-directory: ./cesium-viewer-sample

build_three_sample:
three_sample:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
37 changes: 37 additions & 0 deletions ThirdPartyNotices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Third-Party Code

This repository potentially incorporates work from the following third-party code:

## [three.js](https://github.com/mrdoob/three.js/)

The MIT License

Copyright © 2010-2024 three.js authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

## [cesium.js](https://github.com/CesiumGS/cesium)

Copyright 2011-2022 CesiumJS Contributors

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.
3 changes: 3 additions & 0 deletions cesium-viewer-sample/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.npmjs.org/
@bentley:registry=https://registry.npmjs.org/
always-auth=true
6 changes: 5 additions & 1 deletion cesium-viewer-sample/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Ion, ITwinData, ITwinPlatform, Viewer } from "cesium";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { Ion, ITwinData, ITwinPlatform, Viewer } from "cesium";
import "cesium/Build/Cesium/Widgets/widgets.css";
import { BrowserAuthorizationClient } from "@itwin/browser-authorization";
import "./style.css";
Expand Down
4 changes: 4 additions & 0 deletions cesium-viewer-sample/src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
body {
margin: 0;
}
Expand Down
3 changes: 3 additions & 0 deletions threejs-3d-tiles-sample/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.npmjs.org/
@bentley:registry=https://registry.npmjs.org/
always-auth=true
4 changes: 4 additions & 0 deletions threejs-3d-tiles-sample/src/IModelTiles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
export async function getIModel3dTilesUrl(iModelId: string, changesetId: string, imsPrefix: string, accessToken: string): Promise<URL | undefined> {
/* eslint-disable @typescript-eslint/naming-convention */
const headers = {
Expand Down
4 changes: 4 additions & 0 deletions threejs-3d-tiles-sample/src/ITwinMeshExportServicePlugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as THREE from "three";
import { TilesRenderer } from "3d-tiles-renderer";
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
Expand Down
4 changes: 4 additions & 0 deletions threejs-3d-tiles-sample/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as THREE from "three";
import { BrowserAuthorizationClient } from "@itwin/browser-authorization";
import { TilesRenderer } from "3d-tiles-renderer";
Expand Down
4 changes: 4 additions & 0 deletions threejs-3d-tiles-sample/src/sky.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as THREE from "three";

export function createSimpleSky() {
Expand Down
4 changes: 4 additions & 0 deletions threejs-3d-tiles-sample/src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
body {
margin: 0;
}

0 comments on commit 93da124

Please sign in to comment.