text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
---
title: GetPVarType
description: Gets the type (integer, float or string) of a player variable.
tags: ["pvar"]
---
## คำอธิบาย
Gets the type (integer, float or string) of a player variable.
| Name | Description |
| -------- | ---------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPVarType.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPVarType.md",
"repo_id": "openmultiplayer",
"token_count": 782
} | 424 |
---
title: GetPlayerColor
description: Gets the color of the player's name and radar marker.
tags: ["player"]
---
## คำอธิบาย
Gets the color of the player's name and radar marker. Only works after SetPlayerColor.
| Name | Description |
| -------- | ----------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerColor.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerColor.md",
"repo_id": "openmultiplayer",
"token_count": 454
} | 425 |
---
title: GetPlayerObjectModel
description: Retrieve the model ID of a player-object.
tags: ["player"]
---
:::warning
ฟังก์ชั่นนี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!
:::
## คำอธิบาย
Retrieve the model ID of a player-object.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerObjectModel.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerObjectModel.md",
"repo_id": "openmultiplayer",
"token_count": 500
} | 426 |
---
title: GetPlayerVehicleID
description: This function gets the ID of the vehicle the player is currently in.
tags: ["player", "vehicle"]
---
## คำอธิบาย
This function gets the ID of the vehicle the player is currently in. Note: NOT the model id of the vehicle. See GetVehicleModel for that.
| Name | Descriptio... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerVehicleID.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerVehicleID.md",
"repo_id": "openmultiplayer",
"token_count": 434
} | 427 |
---
title: GetServerVarAsBool
description: Get the boolean value of a server variable.
tags: []
---
:::warning
This function, as of 0.3.7 R2, is deprecated. Please see GetConsoleVarAsBool
:::
## คำอธิบาย
Get the boolean value of a server variable.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/GetServerVarAsBool.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetServerVarAsBool.md",
"repo_id": "openmultiplayer",
"token_count": 475
} | 428 |
---
title: GetVehiclePos
description: Gets the position of a vehicle.
tags: ["vehicle"]
---
## คำอธิบาย
Gets the position of a vehicle.
| Name | Description |
| --------- | ------------------------------------------------------------------------- |
|... | openmultiplayer/web/docs/translations/th/scripting/functions/GetVehiclePos.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetVehiclePos.md",
"repo_id": "openmultiplayer",
"token_count": 704
} | 429 |
---
title: IsPlayerAdmin
description: Check if a player is logged in as an RCON admin.
tags: ["administration"]
---
## คำอธิบาย
Check if a player is logged in as an RCON admin.
| Name | Description |
| -------- | ------------------------------ |
| playerid | The ID of the player to check. |
#... | openmultiplayer/web/docs/translations/th/scripting/functions/IsPlayerAdmin.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/IsPlayerAdmin.md",
"repo_id": "openmultiplayer",
"token_count": 386
} | 430 |
---
title: IsVehicleStreamedIn
description: Checks if a vehicle is streamed in for a player.
tags: ["vehicle"]
---
## คำอธิบาย
Checks if a vehicle is streamed in for a player. Only nearby vehicles are streamed in (visible) for a player.
| Name | Description |
| ----------- | --------------... | openmultiplayer/web/docs/translations/th/scripting/functions/IsVehicleStreamedIn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/IsVehicleStreamedIn.md",
"repo_id": "openmultiplayer",
"token_count": 590
} | 431 |
---
title: NetStats_MessagesSent
description: Gets the number of messages the server has sent to the player.
tags: []
---
## คำอธิบาย
Gets the number of messages the server has sent to the player.
| Name | Description |
| -------- | ------------------------------------------ |
| pl... | openmultiplayer/web/docs/translations/th/scripting/functions/NetStats_MessagesSent.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/NetStats_MessagesSent.md",
"repo_id": "openmultiplayer",
"token_count": 735
} | 432 |
---
title: PlayerTextDrawSetPreviewModel
description: Sets a player textdraw 2D preview sprite of a specified model ID.
tags: ["player", "textdraw", "playertextdraw"]
---
## คำอธิบาย
Sets a player textdraw 2D preview sprite of a specified model ID.
| Name | Description |
|... | openmultiplayer/web/docs/translations/th/scripting/functions/PlayerTextDrawSetPreviewModel.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/PlayerTextDrawSetPreviewModel.md",
"repo_id": "openmultiplayer",
"token_count": 817
} | 433 |
---
title: RepairVehicle
description: Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.
tags: ["vehicle"]
---
## คำอธิบาย
Fully repairs a vehicle, including visual damage (bumps, dents, scratches, popped tires etc.).
| Name | Description |
| ------... | openmultiplayer/web/docs/translations/th/scripting/functions/RepairVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/RepairVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 470
} | 434 |
---
title: SetActorPos
description: Set the position of an actor.
tags: []
---
:::warning
ฟังก์ชั่นนี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!
:::
## คำอธิบาย
Set the position of an actor.
| Name | Description |
| ------- | -----------... | openmultiplayer/web/docs/translations/th/scripting/functions/SetActorPos.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetActorPos.md",
"repo_id": "openmultiplayer",
"token_count": 693
} | 435 |
---
title: SetPVarString
description: Saves a string into a player variable.
tags: ["pvar"]
---
## คำอธิบาย
Saves a string into a player variable.
| Name | Description |
| ------------ | ------------------------------------------------------- |
| playerid | The... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPVarString.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPVarString.md",
"repo_id": "openmultiplayer",
"token_count": 582
} | 436 |
---
title: SetPlayerMapIcon
description: Place an icon/marker on a player's map.
tags: ["player"]
---
## คำอธิบาย
Place an icon/marker on a player's map. Can be used to mark locations such as banks and hospitals to players.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerMapIcon.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerMapIcon.md",
"repo_id": "openmultiplayer",
"token_count": 1805
} | 437 |
---
title: SetPlayerTeam
description: Set the team of a player.
tags: ["player"]
---
## คำอธิบาย
Set the team of a player.
| Name | Description |
| -------- | ------------------------------------------------------------------------------ |
| play... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerTeam.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerTeam.md",
"repo_id": "openmultiplayer",
"token_count": 524
} | 438 |
---
title: ShowPlayerNameTagForPlayer
description: This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head.
tags: ["player"]
---
## คำอธิบาย
This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display ... | openmultiplayer/web/docs/translations/th/scripting/functions/ShowPlayerNameTagForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/ShowPlayerNameTagForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 679
} | 439 |
---
title: TextDrawHideForPlayer
description: Hides a textdraw for a specific player.
tags: ["player", "textdraw"]
---
## คำอธิบาย
Hides a textdraw for a specific player.
| Name | Description |
| -------- | ----------------------------------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/TextDrawHideForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/TextDrawHideForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 567
} | 440 |
---
title: TogglePlayerControllable
description: Toggles whether a player can control their character or not.
tags: ["player"]
---
## คำอธิบาย
Toggles whether a player can control their character or not. The player will also be unable to move their camera.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/TogglePlayerControllable.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/TogglePlayerControllable.md",
"repo_id": "openmultiplayer",
"token_count": 516
} | 441 |
---
title: db_field_name
description: Returns the name of a field at a particular index.
tags: ["sqlite"]
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Returns the name of a field at a particular index.
| Name | Description |
| -... | openmultiplayer/web/docs/translations/th/scripting/functions/db_field_name.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/db_field_name.md",
"repo_id": "openmultiplayer",
"token_count": 1203
} | 442 |
---
title: existproperty
description: Check if a property exist.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Check if a property exist.
| Name | Description |
| ------ | -----------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/existproperty.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/existproperty.md",
"repo_id": "openmultiplayer",
"token_count": 466
} | 443 |
---
title: floatpower
description: Raises the given value to the power of the exponent.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Raises the given value to the power of the exponent.
| Name | Description |
... | openmultiplayer/web/docs/translations/th/scripting/functions/floatpower.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/floatpower.md",
"repo_id": "openmultiplayer",
"token_count": 419
} | 444 |
---
title: fwrite
description: Write text into a file.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Write text into a file.
| Name | Description |
| ------ | ------------------------------------------------------- |
| handle | Th... | openmultiplayer/web/docs/translations/th/scripting/functions/fwrite.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/fwrite.md",
"repo_id": "openmultiplayer",
"token_count": 1127
} | 445 |
---
title: uudecode
description: Decode an UU-encoded string.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Decode an UU-encoded string.
| Name | Description |
| -------------- | --------------------------------------------- |
| des... | openmultiplayer/web/docs/translations/th/scripting/functions/uudecode.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/uudecode.md",
"repo_id": "openmultiplayer",
"token_count": 336
} | 446 |
---
title: Camera Modes
---
A list of possible camera modes to be used with [GetPlayerCameraMode](../functions/GetPlayerCameraMode). :::note Note that there might still be more usable IDs hidden away in the game and some IDs are used for more than one situation. :::
- `3` - Train/tram camera.
- `4` - Follow ped (norm... | openmultiplayer/web/docs/translations/th/scripting/resources/cameramode.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/resources/cameramode.md",
"repo_id": "openmultiplayer",
"token_count": 406
} | 447 |
---
title: Record Types
description: Record types to be used with [StartRecordingPlayerData]()../functions/StartRecordingPlayerData.md)
tags: ["player"]
sidebar_label: Record Types
---
Record types to be used with [StartRecordingPlayerData](../functions/StartRecordingPlayerData.md)
| Type | Va... | openmultiplayer/web/docs/translations/th/scripting/resources/recordtypes.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/resources/recordtypes.md",
"repo_id": "openmultiplayer",
"token_count": 180
} | 448 |
---
title: Vehicle Information Types
description: Vehicle Information Type Constants
---
| Vehicle Information Type | Description |
| --------------------------------- | ----------------------------------------------------------------- |
| VEHICLE_MODEL_IN... | openmultiplayer/web/docs/translations/th/scripting/resources/vehicleinformationtypes.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/resources/vehicleinformationtypes.md",
"repo_id": "openmultiplayer",
"token_count": 790
} | 449 |
---
title: OnPlayerClickMap
description: Bu callback oyuncu haritada bir yer işaretlediğinde çağrılır.
tags: ["player"]
---
## Açıklama
Bu callback oyuncu haritada bir yer işaretlediğinde çağrılır.
| Ad | Açıklama |
| -------- | ---------------------------... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerClickMap.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerClickMap.md",
"repo_id": "openmultiplayer",
"token_count": 722
} | 450 |
---
title: OnPlayerGiveDamage
description: This callback is called when a player gives damage to another player.
tags: ["player"]
---
## Açıklama
Bu callback, bir oyuncu başka bir oyuncuya hasar verdiğinde çağırılır.
| İsim | Açıklama |
|-----------------|---... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerGiveDamage.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerGiveDamage.md",
"repo_id": "openmultiplayer",
"token_count": 1091
} | 451 |
---
title: OnPlayerStreamOut
description: Bu fonksiyon, bir oyuncu başka bir oyuncunun istemcisinden stream alanından çıktığında çağrılır.
tags: ["player"]
---
## Açıklama
Bu fonksiyon, bir oyuncu başka bir oyuncunun istemcisinden stream alanından çıktığında çağrılır.
| Parametre | Açıklama ... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 429
} | 452 |
---
title: OnVehicleStreamIn
description: Called when a vehicle is streamed to a player's client.
tags: ["vehicle"]
---
## Açıklama
Bir araç, oyuncunun işlem alanına girdiğinde çağırılıyor.
| İsim | Açıklama |
| ----------- | --------------------------------------... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnVehicleStreamIn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnVehicleStreamIn.md",
"repo_id": "openmultiplayer",
"token_count": 418
} | 453 |
---
title: ApplyActorAnimation
description: Aktörlere animasyon yaptırma.
tags: []
---
<VersionWarnTR version='SA-MP 0.3.7' />
## Açıklama
Bu fonksiyon aktörlere animasyon uygulatmak için kullanılır.
| Parametre | Açıklama ... | openmultiplayer/web/docs/translations/tr/scripting/functions/ApplyActorAnimation.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/ApplyActorAnimation.md",
"repo_id": "openmultiplayer",
"token_count": 1445
} | 454 |
---
title: ChangeVehiclePaintjob
description: Aracın kaplamasını değiştirme. (düz renkler için bkz. ChangeVehicleColor).
tags: ["vehicle"]
---
## Açıklama
Aracın kaplamasını değiştirme. (düz renkler için bkz. ChangeVehicleColor).
| Parametre | Açıklama |
| -------... | openmultiplayer/web/docs/translations/tr/scripting/functions/ChangeVehiclePaintjob.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/ChangeVehiclePaintjob.md",
"repo_id": "openmultiplayer",
"token_count": 693
} | 455 |
---
title: GetPlayerCameraTargetActor
description: Oyuncunun baktığı aktörün (herhangi bir aktörün) ID'sini çekme.
tags: ["player", "camera", "actor"]
---
<VersionWarnTR version='SA-MP 0.3.7' />
## Açıklama
Oyuncunun baktığı aktörün (herhangi bir aktörün) ID'sini çekme.
| Parametre | Açıklama ... | openmultiplayer/web/docs/translations/tr/scripting/functions/GetPlayerCameraTargetActor.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/GetPlayerCameraTargetActor.md",
"repo_id": "openmultiplayer",
"token_count": 1404
} | 456 |
# SA-MP 维基(Wiki) 和 open.mp 文档
欢迎来到由open.mp团队和更加广泛的SA-MP社区共同维护的SA-MP维基!
本站旨在为SA-MP和open.mp提供一个易于访问、易于提交的文档资源。
## SA-MP 维基已经消逝
不幸的是,SA-MP维基在2020年9月下旬关闭——尽管它的大部分内容可以在公共互联网档案中找到。
正因此,我们需要社会各界的帮助,把旧的维基内容搬到它的新家园,这儿!
如有兴趣,请查看[本页](/docs/meta/Contributing)获取更多信息。
如果你没有使用GitHub或转换HTML的经验, 别担心!你可以反馈问题 (通过 [Discord](https:/... | openmultiplayer/web/docs/translations/zh-cn/index.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/index.md",
"repo_id": "openmultiplayer",
"token_count": 794
} | 457 |
---
title: OnNPCExitVehicle
description: 当NPC离开车辆时调用此回调。
tags: []
---
## 描述
当 NPC 离开车辆时调用此回调。
## 相关案例
```c
public OnNPCExitVehicle()
{
print("NPC离开了车辆");
return 1;
}
```
## 相关回调
- [OnNPCEnterVehicle](../callbacks/OnNPCEnterVehicle): 当 NPC 进入车辆时被调用。
| openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnNPCExitVehicle.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnNPCExitVehicle.md",
"repo_id": "openmultiplayer",
"token_count": 215
} | 458 |
---
title: OnPlayerEnterRaceCheckpoint
description: 当玩家进入一个比赛检查点时,这个回调函数被调用。
tags: ["player", "checkpoint", "racecheckpoint"]
---
## 描述
当玩家进入一个比赛检查点时,这个回调函数被调用。
| 参数名 | 描述 |
| -------- | --------------------------- |
| playerid | 进入比赛检查点的玩家的 ID。 |
## 返回值
它在过滤脚本中总是先被调用。
## 案例
```c
public ... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerEnterRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 681
} | 459 |
---
title: OnPlayerSelectObject
description: 当玩家在使用SelectObject之后选择一个物体时,这个回调会被调用。
tags: ["player"]
---
## 描述
当玩家在使用 SelectObject 之后选择一个物体时,这个回调会被调用。
| 参数名 | 描述 |
| -------- | -------------------------------------------- |
| playerid | 选择玩家的玩家 ID |... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerSelectObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerSelectObject.md",
"repo_id": "openmultiplayer",
"token_count": 915
} | 460 |
---
title: OnVehicleDeath
description: 如果载具被摧毁,不管是爆炸还是沉入水中,都会调用这个回调函数。
tags: ["vehicle"]
---
## 描述
如果载具被摧毁,不管是爆炸还是沉入水中,都会调用这个回调函数。
| 参数名 | 描述 |
| --------- | ---------------------------------------------------------------------------... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleDeath.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleDeath.md",
"repo_id": "openmultiplayer",
"token_count": 870
} | 461 |
---
title: AddStaticVehicleEx
description: 在游戏模式中新增一个静态的载具(模型是为玩家预加载的)。
tags: ["vehicle"]
---
## 描述
在游戏模式中新增一个静态的载具(模型是为玩家预加载的)。与 AddStaticVehicle 的区别只有一个: 当载具无人驾驶时,允许设置重生时间。
| 参数名 | 说明 |
| -------------... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/AddStaticVehicleEx.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/AddStaticVehicleEx.md",
"repo_id": "openmultiplayer",
"token_count": 1724
} | 462 |
---
title: CreatePlayer3DTextLabel
description: 只为某个特定的玩家创建一个三维文本标签。
tags: ["player", "3dtextlabel"]
---
## 描述
只为某个特定的玩家创建一个三维文本标签。
| 参数名 | 说明 |
| --------------- | ----------------------------------------------------------------- |
| playerid ... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/CreatePlayer3DTextLabel.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/CreatePlayer3DTextLabel.md",
"repo_id": "openmultiplayer",
"token_count": 1767
} | 463 |
---
title: SetPlayerCameraPos
description: 设置玩家的视角到指定位置。
tags: ["player"]
---
## 描述
设置玩家的视角到指定位置。
| 参数名 | 说明 |
| -------- | ------------- |
| playerid | 玩家 ID。 |
| Float:x | 视角的 X 坐标 |
| Float:y | 视角的 Y 坐标 |
| Float:z | 视角的 Z 坐标 |
## 返回值
1:函数执行成功。
0:函数执行失败。指定的玩家不存在。
## 案例
```c
SetPlayerCameraP... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/SetPlayerCameraPos.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/SetPlayerCameraPos.md",
"repo_id": "openmultiplayer",
"token_count": 550
} | 464 |
---
title: 一些不錯的東西
description: 對製作腳本有幫助的工具、函數庫和插件的列表。
---
## 工具
- **[Community Compiler](https://github.com/pawn-lang/compiler/)** - 一個更好的編譯器,改進和修復了許多地方,非常推薦取代原本的pawn編譯器。
- **[sampctl](http://sampctl.com/)** - 一個軟件包管理器,用於快速安裝函數庫,以及執行伺服器。
- **[Plugin Runner](https://github.com/Zeex/samp-plugin-runner/)** - 一個輕巧簡便的插件執... | openmultiplayer/web/docs/translations/zh-tw/awesome.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-tw/awesome.md",
"repo_id": "openmultiplayer",
"token_count": 8598
} | 465 |
---
title: SA-MP Android (Mobile Version)
date: "2021-01-30T12:46:46"
author: Potassium
---
Stavovi i mišljenja open.mp tima o SA-MPu za Android
Zdravo svima,
Samo smo hteli da napišemo brzi post na blogu o našim pogledima na SA-MP za Android, jer smo dobijali mnogo komentara o tome na našim YouTube video zapisima i... | openmultiplayer/web/frontend/content/bs/blog/samp-mobile.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/bs/blog/samp-mobile.mdx",
"repo_id": "openmultiplayer",
"token_count": 568
} | 466 |
---
title: Forum e Wiki offline
description: Ti stai chiedendo perché il SA-MP Forum e la Wiki sono offline? Leggi qui per informazioni e chiarimenti.
---
# Perché il Forum e la Wiki sono offline?
Il 25 Settembre 2020, i certificati per forum.sa-mp.com e wiki.sa-mp.com sono entrambi scaduti. Molti utenti l'hanno nota... | openmultiplayer/web/frontend/content/it/missing-sites.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/it/missing-sites.mdx",
"repo_id": "openmultiplayer",
"token_count": 782
} | 467 |
<h1>FAQ - Intrebari Frecvente</h1>
<hr />
<h2>Ce este open.mp?</h2>
open.mp (Open Multiplayer, OMP) este un mod multiplayer substitut pentru San Andreas, initiat ca si raspuns la regretabila crestere a numarului de probleme cu actualizarile si administrarea SA:MP. Versiunea din urma lansarii oficiale va inlocui compl... | openmultiplayer/web/frontend/content/ro/faq.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/ro/faq.mdx",
"repo_id": "openmultiplayer",
"token_count": 2522
} | 468 |
---
title: Open.mp'ye taşıma
date: "2024-03-06T14:01:00"
author: Y_Less
---
Uzun bir süredir oldukça açıktır ki Kalcor, SA:MP'yi sürdürme konusunda artık ilgilenmiyordu; ki bu, başlı başına sorun değil, ancak resmi kaynak kodu erişimi olan tek kişi olması, yeni güncellemeler için bir darboğaz oluşturuyordu. YSF ve fix... | openmultiplayer/web/frontend/content/tr/blog/porting.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/tr/blog/porting.mdx",
"repo_id": "openmultiplayer",
"token_count": 5165
} | 469 |
# اوپن ملٹی پلیئر
جی ٹی اے ایس اے کے لئے ایک آنے والا ملٹی پلیئر موڈ جو موجودہ ملٹی پلیئر موڈ سان اینڈریاس ملٹی پلیئر کے ساتھ مکمل طور پر ہم آہنگ ہوگا۔
<br />
اس کے مطلب ہے کہ موجودہ ایس اے ایم پی کلائنٹ اور تمام موجودہ ایس اے ایم پی اسکرپٹس اوپن ایم پی کے ساتھ کام کریں گی، اور اس کے ساتھ ساتھ، سرور سافٹ ویر میں بہت... | openmultiplayer/web/frontend/content/ur/index.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/ur/index.mdx",
"repo_id": "openmultiplayer",
"token_count": 733
} | 470 |
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "eslint --ext .tsx,.ts src/"
},
"dependencies": {
"@babel/core": "^7.14.8",
"@babel/generator": "^7.14.8",
"@babel/parser": "^7.14.8",
... | openmultiplayer/web/frontend/package.json/0 | {
"file_path": "openmultiplayer/web/frontend/package.json",
"repo_id": "openmultiplayer",
"token_count": 1494
} | 471 |
import { NextPage } from "next";
import withAuthRedirect from "./withAuthRedirect";
/**
* Ensures a page is only displayed for users who are authenticated.
*
* @param WrappedComponent Page component.
* @param location location to redirect to if not authenticated.
*/
export function withAuth<P>(
WrappedComponen... | openmultiplayer/web/frontend/src/auth/hoc.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/auth/hoc.tsx",
"repo_id": "openmultiplayer",
"token_count": 215
} | 472 |
const DiscordIcon = ({ width = 32, height = 32, fill = "#7289DA" }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={width}
height={height}
viewBox="0 0 245 240"
>
<path
fill={fill}
d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10... | openmultiplayer/web/frontend/src/components/icons/Discord.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/icons/Discord.tsx",
"repo_id": "openmultiplayer",
"token_count": 868
} | 473 |
// From: https://jonsuh.com/hamburgers/
const Hamburger = ({
className = "",
active,
toggle,
}: {
className?: string;
active: boolean;
toggle: (_: boolean) => void;
}) => (
<>
<button
className={[className, "hamburger", active && "is-active"].join(" ")}
type="button"
aria-label="Men... | openmultiplayer/web/frontend/src/components/site/Hamburger.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/site/Hamburger.tsx",
"repo_id": "openmultiplayer",
"token_count": 1332
} | 474 |
import Admonition from "../../../Admonition";
export default function WarningVersion({
version,
name = "function",
}: {
version: string;
name: string;
}) {
return (
<Admonition type="warning">
<p>
{name} ini telah ditambahkan dalam {version} dan tidak bekerja pada
versi dibawahnya!
... | openmultiplayer/web/frontend/src/components/templates/translations/id/version-warning.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/templates/translations/id/version-warning.tsx",
"repo_id": "openmultiplayer",
"token_count": 149
} | 475 |
/* eslint-disable react-hooks/rules-of-hooks */
import React from "react";
import { mdx, MDXProvider } from "@mdx-js/react";
import { useEffect } from "react";
import { MDX_COMPONENTS } from "./components";
import { MarkdownContent, MarkdownRenderConfig } from "./types";
import "./idle-callback-polyfill";
// Renders ... | openmultiplayer/web/frontend/src/mdx-helpers/csr.ts/0 | {
"file_path": "openmultiplayer/web/frontend/src/mdx-helpers/csr.ts",
"repo_id": "openmultiplayer",
"token_count": 980
} | 476 |
import { useEffect, useState } from "react";
import { NextSeo } from "next-seo";
// import { MDXRemote } from "next-mdx-remote";
// import remarkGfm from "remark-gfm";
import components from "src/components/templates";
// -
// Client side
// -
import { hydrate } from "src/mdx-helpers/csr";
import { DocsSidebar } fro... | openmultiplayer/web/frontend/src/pages/docs/[[...path]].tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/pages/docs/[[...path]].tsx",
"repo_id": "openmultiplayer",
"token_count": 3206
} | 477 |
/*
Notes:
English Grotesque is the primary brand typeface for headings 1, 2, 3 and 4.
Paragraphcs should use the sans serif default stack from `body`.
*/
@import "./fonts.css";
@import "./starry-night.css";
body {
color: #000;
background: #fefefe;
}
/* Necessary to prevent overflow issues in flexbox. */
:... | openmultiplayer/web/frontend/src/styles/base.css/0 | {
"file_path": "openmultiplayer/web/frontend/src/styles/base.css",
"repo_id": "openmultiplayer",
"token_count": 501
} | 478 |
import ISO6391 from "iso-639-1";
const missingLanguages: Record<string, string> = {
"zh-tw": "繁體中文",
"zh-cn": "简体中文",
"ar": "العربية",
"pt-BR": "Português do Brasil"
};
const getLanguageName = (short: string) =>
ISO6391.getNativeName(short) || missingLanguages?.[short] || short;
export default getLanguageN... | openmultiplayer/web/frontend/src/utils/getLanguageName.ts/0 | {
"file_path": "openmultiplayer/web/frontend/src/utils/getLanguageName.ts",
"repo_id": "openmultiplayer",
"token_count": 139
} | 479 |
package infrastructure
import (
"go.uber.org/fx"
"github.com/openmultiplayer/web/internal/cache"
"github.com/openmultiplayer/web/internal/config"
"github.com/openmultiplayer/web/internal/db"
"github.com/openmultiplayer/web/internal/github"
"github.com/openmultiplayer/web/internal/logger"
)
func Build() fx.Opti... | openmultiplayer/web/internal/infrastructure/infrastructure.go/0 | {
"file_path": "openmultiplayer/web/internal/infrastructure/infrastructure.go",
"repo_id": "openmultiplayer",
"token_count": 180
} | 480 |
-- AlterTable
ALTER TABLE "User" ADD COLUMN "deletedAt" TIMESTAMP(3);
| openmultiplayer/web/prisma/migrations/20210821184144_user_deleted_at/migration.sql/0 | {
"file_path": "openmultiplayer/web/prisma/migrations/20210821184144_user_deleted_at/migration.sql",
"repo_id": "openmultiplayer",
"token_count": 30
} | 481 |
# NOTE: changing paths may require updating them in the Makefile too.
node_modules
modules/**/scripts
frontend/js/vendor
modules/**/frontend/js/vendor
public/js
public/minjs
| overleaf/web/.eslintignore/0 | {
"file_path": "overleaf/web/.eslintignore",
"repo_id": "overleaf",
"token_count": 53
} | 482 |
const metrics = require('@overleaf/metrics')
const AnalyticsManager = require('./AnalyticsManager')
const SessionManager = require('../Authentication/SessionManager')
const GeoIpLookup = require('../../infrastructure/GeoIpLookup')
const Features = require('../../infrastructure/Features')
module.exports = {
updateEdi... | overleaf/web/app/src/Features/Analytics/AnalyticsController.js/0 | {
"file_path": "overleaf/web/app/src/Features/Analytics/AnalyticsController.js",
"repo_id": "overleaf",
"token_count": 475
} | 483 |
const { callbackify } = require('util')
const metrics = require('@overleaf/metrics')
const UserUpdater = require('../User/UserUpdater')
async function optIn(userId) {
await UserUpdater.promises.updateUser(userId, { $set: { betaProgram: true } })
metrics.inc('beta-program.opt-in')
}
async function optOut(userId) {... | overleaf/web/app/src/Features/BetaProgram/BetaProgramHandler.js/0 | {
"file_path": "overleaf/web/app/src/Features/BetaProgram/BetaProgramHandler.js",
"repo_id": "overleaf",
"token_count": 223
} | 484 |
/* eslint-disable
node/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implici... | overleaf/web/app/src/Features/Compile/ClsiStateManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/Compile/ClsiStateManager.js",
"repo_id": "overleaf",
"token_count": 1070
} | 485 |
/* eslint-disable
camelcase,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* Fu... | overleaf/web/app/src/Features/Editor/EditorRealTimeController.js/0 | {
"file_path": "overleaf/web/app/src/Features/Editor/EditorRealTimeController.js",
"repo_id": "overleaf",
"token_count": 556
} | 486 |
/* eslint-disable
node/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations... | overleaf/web/app/src/Features/FileStore/FileHashManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/FileStore/FileHashManager.js",
"repo_id": "overleaf",
"token_count": 691
} | 487 |
/* eslint-disable
camelcase,
max-len,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of null checks
* Full docs: https... | overleaf/web/app/src/Features/InactiveData/InactiveProjectController.js/0 | {
"file_path": "overleaf/web/app/src/Features/InactiveData/InactiveProjectController.js",
"repo_id": "overleaf",
"token_count": 478
} | 488 |
/* eslint-disable
camelcase,
node/handle-callback-err,
max-len,
no-cond-assign,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created bec... | overleaf/web/app/src/Features/Metadata/MetaHandler.js/0 | {
"file_path": "overleaf/web/app/src/Features/Metadata/MetaHandler.js",
"repo_id": "overleaf",
"token_count": 1631
} | 489 |
const Features = require('../../infrastructure/Features')
const _ = require('lodash')
const { db, ObjectId } = require('../../infrastructure/mongodb')
const { callbackify } = require('util')
const { Project } = require('../../models/Project')
const { DeletedProject } = require('../../models/DeletedProject')
const Error... | overleaf/web/app/src/Features/Project/ProjectDeleter.js/0 | {
"file_path": "overleaf/web/app/src/Features/Project/ProjectDeleter.js",
"repo_id": "overleaf",
"token_count": 4783
} | 490 |
const OError = require('@overleaf/o-error')
const { User } = require('../../models/User')
const FeaturesUpdater = require('../Subscription/FeaturesUpdater')
module.exports = {
allocate(referalId, newUserId, referalSource, referalMedium, callback) {
if (callback == null) {
callback = function () {}
}
... | overleaf/web/app/src/Features/Referal/ReferalAllocator.js/0 | {
"file_path": "overleaf/web/app/src/Features/Referal/ReferalAllocator.js",
"repo_id": "overleaf",
"token_count": 668
} | 491 |
const { SplitTest } = require('../../models/SplitTest')
const OError = require('@overleaf/o-error')
const _ = require('lodash')
const ALPHA_PHASE = 'alpha'
const BETA_PHASE = 'beta'
const RELEASE_PHASE = 'release'
async function getSplitTests() {
try {
return await SplitTest.find().exec()
} catch (error) {
... | overleaf/web/app/src/Features/SplitTests/SplitTestManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/SplitTests/SplitTestManager.js",
"repo_id": "overleaf",
"token_count": 2578
} | 492 |
/* eslint-disable
camelcase,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of null checks... | overleaf/web/app/src/Features/Subscription/SubscriptionGroupController.js/0 | {
"file_path": "overleaf/web/app/src/Features/Subscription/SubscriptionGroupController.js",
"repo_id": "overleaf",
"token_count": 898
} | 493 |
const { Tag } = require('../../models/Tag')
const { promisifyAll } = require('../../util/promises')
function getAllTags(userId, callback) {
Tag.find({ user_id: userId }, callback)
}
function createTag(userId, name, callback) {
if (!callback) {
callback = function () {}
}
Tag.create({ user_id: userId, name... | overleaf/web/app/src/Features/Tags/TagsHandler.js/0 | {
"file_path": "overleaf/web/app/src/Features/Tags/TagsHandler.js",
"repo_id": "overleaf",
"token_count": 982
} | 494 |
const fs = require('fs')
const Path = require('path')
const { callbackify } = require('util')
const EditorController = require('../Editor/EditorController')
const Errors = require('../Errors/Errors')
const FileTypeManager = require('./FileTypeManager')
const SafePath = require('../Project/SafePath')
const logger = requ... | overleaf/web/app/src/Features/Uploads/FileSystemImportManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/Uploads/FileSystemImportManager.js",
"repo_id": "overleaf",
"token_count": 2428
} | 495 |
const UserGetter = require('./UserGetter')
const UserInfoManager = {
getPersonalInfo(userId, callback) {
UserGetter.getUser(
userId,
{ _id: true, first_name: true, last_name: true, email: true },
callback
)
},
}
module.exports = UserInfoManager
| overleaf/web/app/src/Features/User/UserInfoManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/User/UserInfoManager.js",
"repo_id": "overleaf",
"token_count": 109
} | 496 |
/* eslint-disable
max-len,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of... | overleaf/web/app/src/Features/V1/V1Api.js/0 | {
"file_path": "overleaf/web/app/src/Features/V1/V1Api.js",
"repo_id": "overleaf",
"token_count": 1207
} | 497 |
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const ACE_VERSION = require('ac... | overleaf/web/app/src/infrastructure/PackageVersions.js/0 | {
"file_path": "overleaf/web/app/src/infrastructure/PackageVersions.js",
"repo_id": "overleaf",
"token_count": 231
} | 498 |
const mongoose = require('../infrastructure/Mongoose')
const { Schema } = mongoose
const DeletedFileSchema = new Schema(
{
name: String,
projectId: Schema.ObjectId,
created: {
type: Date,
},
linkedFileData: { type: Schema.Types.Mixed },
hash: {
type: String,
},
deletedAt: ... | overleaf/web/app/src/models/DeletedFile.js/0 | {
"file_path": "overleaf/web/app/src/models/DeletedFile.js",
"repo_id": "overleaf",
"token_count": 194
} | 499 |
const mongoose = require('../infrastructure/Mongoose')
const { Schema } = mongoose
const SamlCacheSchema = new Schema(
{
createdAt: { type: Date },
requestId: { type: String },
},
{
collection: 'samlCache',
}
)
exports.SamlCache = mongoose.model('SamlCache', SamlCacheSchema)
exports.SamlCacheSchem... | overleaf/web/app/src/models/SamlCache.js/0 | {
"file_path": "overleaf/web/app/src/models/SamlCache.js",
"repo_id": "overleaf",
"token_count": 128
} | 500 |
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351"
}
| overleaf/web/app/templates/project_files/test-example-project/sample.bib/0 | {
"file_path": "overleaf/web/app/templates/project_files/test-example-project/sample.bib",
"repo_id": "overleaf",
"token_count": 118
} | 501 |
extends ../layout
block vars
- var suppressNavbar = true
- var suppressFooter = true
- var suppressSkipToContent = true
block content
script(type="template", id="gateway-data")!= StringHelper.stringifyJsonForScript({ params: form_data })
.content.content-alt
.container
.row
.col-md-6.col-md-offset-3
... | overleaf/web/app/views/general/post-gateway.pug/0 | {
"file_path": "overleaf/web/app/views/general/post-gateway.pug",
"repo_id": "overleaf",
"token_count": 186
} | 502 |
header.toolbar.toolbar-header.toolbar-with-labels(
ng-cloak,
ng-hide="state.loading"
)
.toolbar-left
a.btn.btn-full-height(
href,
ng-click="ui.leftMenuShown = true;",
)
i.fa.fa-fw.fa-bars.editor-menu-icon
p.toolbar-label #{translate("menu")}
a.btn.btn-full-height.header-cobranding-logo-container(
... | overleaf/web/app/views/project/editor/header.pug/0 | {
"file_path": "overleaf/web/app/views/project/editor/header.pug",
"repo_id": "overleaf",
"token_count": 1935
} | 503 |
extends ../../layout
block content
main.content.content-alt#main-content
.container
.row
.col-md-8.col-md-offset-2
.card.project-invite-invalid
.page-header.text-centered
h1 #{translate("invite_not_valid")}
.row.text-center
.col-md-12
p
| #{translate("invite_n... | overleaf/web/app/views/project/invite/not-valid.pug/0 | {
"file_path": "overleaf/web/app/views/project/invite/not-valid.pug",
"repo_id": "overleaf",
"token_count": 244
} | 504 |
p
i * !{translate("subject_to_additional_vat")}
if (personalSubscription.recurly.activeCoupons.length > 0)
i * !{translate("coupons_not_included")}:
ul
each coupon in personalSubscription.recurly.activeCoupons
li
i= coupon.description || coupon.name
| overleaf/web/app/views/subscriptions/_price_exceptions.pug/0 | {
"file_path": "overleaf/web/app/views/subscriptions/_price_exceptions.pug",
"repo_id": "overleaf",
"token_count": 102
} | 505 |
extends ../layout
include _plans_page_mixins
include _plans_page_tables
block vars
- metadata = { viewport: true }
block append meta
meta(name="ol-recomendedCurrency" content=recomendedCurrency)
meta(name="ol-groupPlans" data-type="json" content=groupPlans)
block content
main.content.content-alt#main-content
... | overleaf/web/app/views/subscriptions/plans.pug/0 | {
"file_path": "overleaf/web/app/views/subscriptions/plans.pug",
"repo_id": "overleaf",
"token_count": 1708
} | 506 |
extends ../layout
block append meta
meta(name="ol-passwordStrengthOptions" data-type="json" content=settings.passwordStrengthOptions)
block content
main.content.content-alt#main-content
.container
.row
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
.card
.page-header
h1 #{translate("r... | overleaf/web/app/views/user/setPassword.pug/0 | {
"file_path": "overleaf/web/app/views/user/setPassword.pug",
"repo_id": "overleaf",
"token_count": 1021
} | 507 |
const { merge } = require('@overleaf/settings/merge')
let defaultFeatures, siteUrl
// Make time interval config easier.
const seconds = 1000
const minutes = 60 * seconds
// These credentials are used for authenticating api requests
// between services that may need to go over public channels
const httpAuthUser = pro... | overleaf/web/config/settings.defaults.js/0 | {
"file_path": "overleaf/web/config/settings.defaults.js",
"repo_id": "overleaf",
"token_count": 8638
} | 508 |
import _ from 'lodash'
import App from '../base'
App.directive('bookmarkableTabset', $location => ({
restrict: 'A',
require: 'tabset',
link(scope, el, attrs, tabset) {
const _makeActive = function (hash) {
if (hash && hash !== '') {
const matchingTab = _.find(
tabset.tabs,
ta... | overleaf/web/frontend/js/directives/bookmarkableTabset.js/0 | {
"file_path": "overleaf/web/frontend/js/directives/bookmarkableTabset.js",
"repo_id": "overleaf",
"token_count": 712
} | 509 |
import React, { useEffect } from 'react'
import PropTypes from 'prop-types'
import { useTranslation } from 'react-i18next'
import MessageList from './message-list'
import MessageInput from './message-input'
import InfiniteScroll from './infinite-scroll'
import ChatFallbackError from './chat-fallback-error'
import Icon... | overleaf/web/frontend/js/features/chat/components/chat-pane.js/0 | {
"file_path": "overleaf/web/frontend/js/features/chat/components/chat-pane.js",
"repo_id": "overleaf",
"token_count": 1168
} | 510 |
import React, { useCallback } from 'react'
import PropTypes from 'prop-types'
import ToolbarHeader from './toolbar-header'
import { useEditorContext } from '../../../shared/context/editor-context'
import { useChatContext } from '../../chat/context/chat-context'
import { useLayoutContext } from '../../../shared/context/... | overleaf/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js/0 | {
"file_path": "overleaf/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js",
"repo_id": "overleaf",
"token_count": 1645
} | 511 |
import { useTranslation } from 'react-i18next'
import { Alert, Button } from 'react-bootstrap'
import { useFileTreeCreateForm } from '../../contexts/file-tree-create-form'
import { useFileTreeActionable } from '../../contexts/file-tree-actionable'
import { useFileTreeMutable } from '../../contexts/file-tree-mutable'
im... | overleaf/web/frontend/js/features/file-tree/components/file-tree-create/file-tree-modal-create-file-footer.js/0 | {
"file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-create/file-tree-modal-create-file-footer.js",
"repo_id": "overleaf",
"token_count": 923
} | 512 |
import React, { useEffect } from 'react'
import PropTypes from 'prop-types'
import withErrorBoundary from '../../../infrastructure/error-boundary'
import FileTreeContext from './file-tree-context'
import FileTreeDraggablePreviewLayer from './file-tree-draggable-preview-layer'
import FileTreeFolderList from './file-tre... | overleaf/web/frontend/js/features/file-tree/components/file-tree-root.js/0 | {
"file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-root.js",
"repo_id": "overleaf",
"token_count": 1204
} | 513 |
import { useEffect, useState } from 'react'
import { getJSON } from '../../../infrastructure/fetch-json'
import { fileCollator } from '../util/file-collator'
import useAbortController from '../../../shared/hooks/use-abort-controller'
const alphabetical = (a, b) => fileCollator.compare(a.path, b.path)
export function ... | overleaf/web/frontend/js/features/file-tree/hooks/use-project-entities.js/0 | {
"file_path": "overleaf/web/frontend/js/features/file-tree/hooks/use-project-entities.js",
"repo_id": "overleaf",
"token_count": 354
} | 514 |
import { Button, Modal, Row, Col } from 'react-bootstrap'
import PropTypes from 'prop-types'
import { Trans, useTranslation } from 'react-i18next'
import AccessibleModal from '../../../shared/components/accessible-modal'
export default function HotkeysModal({
animation = true,
handleHide,
show,
isMac = false,
... | overleaf/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js/0 | {
"file_path": "overleaf/web/frontend/js/features/hotkeys-modal/components/hotkeys-modal.js",
"repo_id": "overleaf",
"token_count": 3240
} | 515 |
import { useState } from 'react'
import PropTypes from 'prop-types'
import PreviewToolbar from './preview-toolbar'
import PreviewLogsPane from './preview-logs-pane'
import PreviewFirstErrorPopUp from './preview-first-error-pop-up'
import { useTranslation } from 'react-i18next'
function PreviewPane({
compilerState,
... | overleaf/web/frontend/js/features/preview/components/preview-pane.js/0 | {
"file_path": "overleaf/web/frontend/js/features/preview/components/preview-pane.js",
"repo_id": "overleaf",
"token_count": 2305
} | 516 |
import React, {
createContext,
useCallback,
useContext,
useEffect,
useState,
} from 'react'
import PropTypes from 'prop-types'
import ShareProjectModalContent from './share-project-modal-content'
import { useProjectContext } from '../../../shared/context/project-context'
const ShareProjectContext = createCon... | overleaf/web/frontend/js/features/share-project-modal/components/share-project-modal.js/0 | {
"file_path": "overleaf/web/frontend/js/features/share-project-modal/components/share-project-modal.js",
"repo_id": "overleaf",
"token_count": 1222
} | 517 |
import App from '../../../base'
import { react2angular } from 'react2angular'
import SymbolPalette from '../components/symbol-palette'
App.component('symbolPalette', react2angular(SymbolPalette))
| overleaf/web/frontend/js/features/symbol-palette/controllers/symbol-palette-controller.js/0 | {
"file_path": "overleaf/web/frontend/js/features/symbol-palette/controllers/symbol-palette-controller.js",
"repo_id": "overleaf",
"token_count": 61
} | 518 |
import './controllers/ChatButtonController'
import '../../features/chat/controllers/chat-controller'
| overleaf/web/frontend/js/ide/chat/index.js/0 | {
"file_path": "overleaf/web/frontend/js/ide/chat/index.js",
"repo_id": "overleaf",
"token_count": 27
} | 519 |
/* eslint-disable
camelcase,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS001: Remove Babel/TypeScript constructor workaround
* DS101: Remove unnecessary use of Array.from
* DS102: Remove u... | overleaf/web/frontend/js/ide/editor/ShareJsDoc.js/0 | {
"file_path": "overleaf/web/frontend/js/ide/editor/ShareJsDoc.js",
"repo_id": "overleaf",
"token_count": 6500
} | 520 |
import HighlightedWordManager from './HighlightedWordManager'
import 'ace/ace'
const { Range } = ace.require('ace/range')
class SpellCheckAdapter {
constructor(editor) {
this.replaceWord = this.replaceWord.bind(this)
this.editor = editor
this.highlightedWordManager = new HighlightedWordManager(this.edito... | overleaf/web/frontend/js/ide/editor/directives/aceEditor/spell-check/SpellCheckAdapter.js/0 | {
"file_path": "overleaf/web/frontend/js/ide/editor/directives/aceEditor/spell-check/SpellCheckAdapter.js",
"repo_id": "overleaf",
"token_count": 852
} | 521 |
/* eslint-disable
camelcase,
max-len,
no-return-assign,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of ... | overleaf/web/frontend/js/ide/history/HistoryManager.js/0 | {
"file_path": "overleaf/web/frontend/js/ide/history/HistoryManager.js",
"repo_id": "overleaf",
"token_count": 5237
} | 522 |
import App from '../../../base'
export default App.directive('historyDroppableArea', () => ({
scope: {
historyDroppableAreaOnDrop: '&',
historyDroppableAreaOnOver: '&',
historyDroppableAreaOnOut: '&',
},
restrict: 'A',
link(scope, element, attrs) {
element.droppable({
accept: e => '.histo... | overleaf/web/frontend/js/ide/history/directives/historyDroppableArea.js/0 | {
"file_path": "overleaf/web/frontend/js/ide/history/directives/historyDroppableArea.js",
"repo_id": "overleaf",
"token_count": 326
} | 523 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.