Skip to content

Commit 226ca8f

Browse files
committed
chore: Rename mirai to stac
1 parent aef2722 commit 226ca8f

File tree

1,248 files changed

+68806
-68906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,248 files changed

+68806
-68906
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
publish:
1212
defaults:
1313
run:
14-
working-directory: ./packages/mirai
14+
working-directory: ./packages/stac
1515
permissions:
1616
id-token: write # Required for authentication using OIDC
1717
runs-on: ubuntu-latest

CONTRIBUTING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Thank you for your interest in contributing to **Mirai**! We value your time and
99
### 1. **Understand Mirai**
1010
If you are new to Mirai, we recommend you:
1111
- Check out the [README](./README.md) for an overview of the framework.
12-
- Explore the [documentation](https://docs.buildmirai.dev/).
12+
- Explore the [documentation](https://docs.buildstac.dev/).
1313
- Familiarize yourself with the codebase by browsing the repository.
1414

1515
### 2. **Code of Conduct**
@@ -22,24 +22,24 @@ All contributors are expected to adhere to our [Code of Conduct](./CODE_OF_CONDU
2222
### 1. **Reporting Issues**
2323
If you encounter a bug or have a feature request, you can:
2424
- **Search existing issues** to avoid duplicates.
25-
- Open a [new issue](https://github.com/BuildMirai/mirai/issues) with a detailed description.
25+
- Open a [new issue](https://github.com/BuildMirai/stac/issues) with a detailed description.
2626

2727
When reporting bugs, include:
2828
- Steps to reproduce the issue.
2929
- Expected and actual behavior.
3030
- Relevant screenshots or code snippets, if applicable.
3131

3232
### 2. **Suggesting Enhancements**
33-
Have ideas to improve Mirai? Submit a feature request via the [issues page](https://github.com/BuildMirai/mirai/issues). Be as descriptive as possible about the problem your suggestion solves.
33+
Have ideas to improve Mirai? Submit a feature request via the [issues page](https://github.com/BuildMirai/stac/issues). Be as descriptive as possible about the problem your suggestion solves.
3434

3535
### 3. **Contributing Code**
3636

3737
#### Step 1: Fork the Repository
3838
- Click the **Fork** button on the repository to create your own copy.
3939
- Clone your fork locally:
4040
```bash
41-
git clone https://github.com/<your-username>/mirai.git
42-
cd mirai
41+
git clone https://github.com/<your-username>/stac.git
42+
cd stac
4343
```
4444

4545
#### Step 2: Create a Branch
@@ -110,7 +110,7 @@ Have ideas to improve Mirai? Submit a feature request via the [issues page](http
110110
## Community Support
111111

112112
If you have questions or need guidance:
113-
- Join our [community discussions](https://github.com/BuildMirai/mirai/discussions).
113+
- Join our [community discussions](https://github.com/BuildMirai/stac/discussions).
114114
- Reach out to us on our Slack/Discord channel (link provided in the repository).
115115

116116
---
File renamed without changes.
File renamed without changes.

bricks/mirai_parser/LICENSE

-21
This file was deleted.

bricks/mirai_parser/README.md

-7
This file was deleted.

bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/mirai_{{#snakeCase}}{{name}}{{/snakeCase}}_parser.dart

-17
This file was deleted.

bricks/mirai_parser/__brick__/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}/{{#snakeCase}}mirai_{{name}}{{/snakeCase}}.dart

-11
This file was deleted.

bricks/mirai_parser/brick.yaml

-19
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:stac/stac.dart';
3+
4+
class Stac{{#pascalCase}}{{name}}{{/pascalCase}}Parser extends StacParser<Stac{{#pascalCase}}{{name}}{{/pascalCase}}> {
5+
@override
6+
Stac{{#pascalCase}}{{name}}{{/pascalCase}} getModel(Map<String, dynamic> json) => Stac{{#pascalCase}}{{name}}{{/pascalCase}}.fromJson(json);
7+
8+
@override
9+
// TODO: implement type
10+
String get type => throw UnimplementedError();
11+
12+
@override
13+
Widget parse(BuildContext context, Stac{{#pascalCase}}{{name}}{{/pascalCase}} model) {
14+
// TODO: implement widget
15+
throw UnimplementedError();
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'package:freezed_annotation/freezed_annotation.dart';
2+
3+
part '{{#snakeCase}}stac_{{name}}{{/snakeCase}}.freezed.dart';
4+
part '{{#snakeCase}}stac_{{name}}{{/snakeCase}}.g.dart';
5+
6+
@freezed
7+
class Stac{{#pascalCase}}{{name}}{{/pascalCase}} with _$Stac{{#pascalCase}}{{name}}{{/pascalCase}} {
8+
const factory Stac{{#pascalCase}}{{name}}{{/pascalCase}}() = _Stac{{#pascalCase}}{{name}}{{/pascalCase}};
9+
10+
factory Stac{{#pascalCase}}{{name}}{{/pascalCase}}.fromJson(Map<String, dynamic> json) => _$Stac{{#pascalCase}}{{name}}{{/pascalCase}}FromJson(json);
11+
}

bricks/stac_parser/brick.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: stac_parser
2+
description: A new Stac Parser
3+
repository: https://github.com/stac/stac/
4+
# The following defines the version and build number for your brick.
5+
# A version number is three numbers separated by dots, like 1.2.34
6+
# followed by an optional build number (separated by a +).
7+
version: 0.1.0+1
8+
9+
# The following defines the environment for the current brick.
10+
# It includes the version of mason that the brick requires.
11+
environment:
12+
mason: ">=0.1.0-dev.40 <0.1.0"
13+
14+
vars:
15+
name:
16+
type: string
17+
description: Stac Parser name
18+
default: Dash
19+
prompt: What is the Stac Parser name?
File renamed without changes.

bricks/stac_parser/license

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Stac
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

bricks/stac_parser/readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Stac Parser
2+
3+
[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)
4+
5+
A new Stac Parser brick which allows you the generate the parser template for Stac.
6+
7+
_Generated by [mason][1] 🧱_

examples/mirai_gallery/README.md

-16
This file was deleted.

examples/mirai_gallery/android/app/src/main/kotlin/com/mirai/mirai_gallery/MainActivity.kt

-5
This file was deleted.

examples/mirai_gallery/assets/json/refresh_indicator_example.json

-19
This file was deleted.

0 commit comments

Comments
 (0)