refactor: rename package scope from @caldav to @calchat
Rename all workspace packages to reflect the actual project name: - @caldav/client -> @calchat/client - @caldav/server -> @calchat/server - @caldav/shared -> @calchat/shared - Root package: caldav-mono -> calchat-mono Update all import statements across client and server to use the new package names. Update default MongoDB database name and logging service identifier accordingly.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
"expo": {
|
||||
"jsEngine": "hermes",
|
||||
"name": "CalChat",
|
||||
"slug": "caldav",
|
||||
"slug": "calchat",
|
||||
"version": "1.0.0",
|
||||
"orientation": "portrait",
|
||||
"scheme": "caldav",
|
||||
"scheme": "calchat",
|
||||
"userInterfaceStyle": "automatic",
|
||||
"newArchEnabled": true,
|
||||
"ios": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@caldav/client",
|
||||
"name": "@calchat/client",
|
||||
"main": "expo-router/entry",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
@@ -12,7 +12,7 @@
|
||||
"build:apk": "eas build --platform android --profile preview --local"
|
||||
},
|
||||
"dependencies": {
|
||||
"@caldav/shared": "*",
|
||||
"@calchat/shared": "*",
|
||||
"@expo/vector-icons": "^15.0.3",
|
||||
"@react-navigation/bottom-tabs": "^7.4.0",
|
||||
"@react-navigation/elements": "^2.6.3",
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ScrollView,
|
||||
Alert,
|
||||
} from "react-native";
|
||||
import { DAYS, MONTHS, Month, ExpandedEvent } from "@caldav/shared";
|
||||
import { DAYS, MONTHS, Month, ExpandedEvent } from "@calchat/shared";
|
||||
import Header from "../../components/Header";
|
||||
import { EventCard } from "../../components/EventCard";
|
||||
import React, {
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
chatMessageToMessageData,
|
||||
MessageData,
|
||||
} from "../../stores";
|
||||
import { ProposedEventChange } from "@caldav/shared";
|
||||
import { ProposedEventChange } from "@calchat/shared";
|
||||
import { ProposedEventCard } from "../../components/ProposedEventCard";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { View, Pressable } from "react-native";
|
||||
import { ExpandedEvent } from "@caldav/shared";
|
||||
import { ExpandedEvent } from "@calchat/shared";
|
||||
import { Feather } from "@expo/vector-icons";
|
||||
import currentTheme from "../Themes";
|
||||
import { EventCardBase } from "./EventCardBase";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { View, Text, Modal, Pressable } from "react-native";
|
||||
import { CreateEventDTO } from "@caldav/shared";
|
||||
import { CreateEventDTO } from "@calchat/shared";
|
||||
|
||||
type EventConfirmDialogProps = {
|
||||
visible: boolean;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { View, Text, Pressable } from "react-native";
|
||||
import { ProposedEventChange } from "@caldav/shared";
|
||||
import { ProposedEventChange } from "@calchat/shared";
|
||||
import currentTheme from "../Themes";
|
||||
import { EventCardBase } from "./EventCardBase";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LoginDTO, CreateUserDTO, AuthResponse } from "@caldav/shared";
|
||||
import { LoginDTO, CreateUserDTO, AuthResponse } from "@calchat/shared";
|
||||
import { ApiClient } from "./ApiClient";
|
||||
import { useAuthStore } from "../stores";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
CreateEventDTO,
|
||||
UpdateEventDTO,
|
||||
EventAction,
|
||||
} from "@caldav/shared";
|
||||
} from "@calchat/shared";
|
||||
import { ApiClient } from "./ApiClient";
|
||||
|
||||
interface ConfirmEventRequest {
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
CreateEventDTO,
|
||||
UpdateEventDTO,
|
||||
ExpandedEvent,
|
||||
} from "@caldav/shared";
|
||||
} from "@calchat/shared";
|
||||
import { ApiClient } from "./ApiClient";
|
||||
|
||||
export const EventService = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { create } from "zustand";
|
||||
import { Platform } from "react-native";
|
||||
import { User } from "@caldav/shared";
|
||||
import { User } from "@calchat/shared";
|
||||
import * as SecureStore from "expo-secure-store";
|
||||
|
||||
const USER_STORAGE_KEY = "auth_user";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { create } from "zustand";
|
||||
import { ChatMessage, ProposedEventChange } from "@caldav/shared";
|
||||
import { ChatMessage, ProposedEventChange } from "@calchat/shared";
|
||||
|
||||
type BubbleSide = "left" | "right";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { create } from "zustand";
|
||||
import { ExpandedEvent } from "@caldav/shared";
|
||||
import { ExpandedEvent } from "@calchat/shared";
|
||||
|
||||
interface EventsState {
|
||||
events: ExpandedEvent[];
|
||||
|
||||
Reference in New Issue
Block a user