Skip to content

Commit

Permalink
chore: move tabby-ui under ee license. (#667)
Browse files Browse the repository at this point in the history
* chore: introduce tabby-ui EE license.

* update
  • Loading branch information
wsxiaoys authored Oct 29, 2023
1 parent 8c680a7 commit 2ee5dbf
Show file tree
Hide file tree
Showing 97 changed files with 504 additions and 316 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tabby-ui-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test tabby-ui

on:
push:
branches: [ main ]
paths:
- '.github/workflows/tabby-ui-test.yml'
- 'ee/tabby-ui/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/tabby-ui-test.yml'
- 'ee/tabby-ui/**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: yarn
cache-dependency-path: 'yarn.lock'
- name: Install dependencies
working-directory: ./ee/tabby-ui
run: yarn install
- name: Format
working-directory: ./ee/tabby-ui
run: yarn format:check
- name: Lint
working-directory: ./ee/tabby-ui
run: yarn lint
- name: Test build
working-directory: ./ee/tabby-ui
run: yarn build

8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ endif
fix:
cargo clippy --fix --allow-dirty --allow-staged && cargo +nightly fmt

fix-ui:
cd ee/tabby-ui && yarn format:write && yarn lint:fix

update-ui:
cd clients/tabby-ui && yarn build
rm -rf crates/tabby/ui && cp -R clients/tabby-ui/out crates/tabby/ui
cd ee/tabby-ui && yarn build
rm -rf crates/tabby/ui && cp -R ee/tabby-ui/out crates/tabby/ui
cp ee/LICENSE crates/tabby/ui/

bump-version:
cargo ws version --no-git-tag --force "*"
Expand Down
1 change: 0 additions & 1 deletion clients/tabby-ui/.env.development

This file was deleted.

13 changes: 0 additions & 13 deletions clients/tabby-ui/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion clients/tabby-ui/README.md

This file was deleted.

77 changes: 0 additions & 77 deletions clients/tabby-ui/app/page.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions clients/tabby-ui/lib/hooks/use-latest-release.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions clients/tabby-ui/lib/tabby-fetcher.ts

This file was deleted.

71 changes: 0 additions & 71 deletions clients/tabby-ui/lib/tabby-stream.ts

This file was deleted.

2 changes: 1 addition & 1 deletion crates/tabby/ui/404.html

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions crates/tabby/ui/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
The Tabby Enterprise license (the “Enterprise License”)
Copyright (c) 2023 TabbyML, Inc.

With regard to the Tabby Software:

This software and associated documentation files (the "Software") may only be
used in production, if you (and any entity that you represent) have agreed to,
and are in compliance with, the Tabby Subscription Terms of Service, available
at https://tabby.tabbyml.com/terms (the “Enterprise Terms”), or other
agreement governing the use of the Software, as agreed by you and TabbyML,
and otherwise have a valid Tabby Enterprise license for the
correct number of user seats. Subject to the foregoing sentence, you are free to
modify this Software and publish patches to the Software. You agree that TabbyML
and/or its licensors (as applicable) retain all right, title and interest in and
to all such modifications and/or patches, and all such modifications and/or
patches may only be used, copied, modified, displayed, distributed, or otherwise
exploited with a valid Tabby Enterprise license for the correct
number of user seats. Notwithstanding the foregoing, you may copy and modify
the Software for development and testing purposes, without requiring a
subscription. You agree that Tabby and/or its licensors (as applicable) retain
all right, title and interest in and to all such modifications. You are not
granted any other rights beyond what is expressly stated herein. Subject to the
foregoing, it is forbidden to copy, merge, publish, distribute, sublicense,
and/or sell 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.

For all third party components incorporated into the Tabby Software, those
components are licensed under the original license provided by the owner of the
applicable component.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ee5dbf

Please sign in to comment.